Skip to content

Commit de2a3d8

Browse files
committed
Move editor to separate project
1 parent 7790570 commit de2a3d8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+12814
-67
lines changed

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

+38
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,41 @@ typings/
5959

6060
# next.js build output
6161
.next
62+
63+
# compiled output
64+
/dist
65+
/tmp
66+
/out-tsc
67+
68+
# dependencies
69+
/node_modules
70+
71+
# IDEs and editors
72+
/.idea
73+
.project
74+
.classpath
75+
.c9/
76+
*.launch
77+
.settings/
78+
*.sublime-workspace
79+
80+
# IDE - VSCode
81+
.vscode/*
82+
!.vscode/settings.json
83+
!.vscode/tasks.json
84+
!.vscode/launch.json
85+
!.vscode/extensions.json
86+
87+
# misc
88+
/.sass-cache
89+
/connect.lock
90+
/coverage
91+
/libpeerconnection.log
92+
npm-debug.log
93+
yarn-error.log
94+
testem.log
95+
/typings
96+
97+
# System Files
98+
.DS_Store
99+
Thumbs.db

angular.json

+154
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,154 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"angular-editor": {
7+
"projectType": "library",
8+
"root": "projects/angular-editor",
9+
"sourceRoot": "projects/angular-editor/src",
10+
"prefix": "lib",
11+
"architect": {
12+
"build": {
13+
"builder": "@angular-devkit/build-ng-packagr:build",
14+
"options": {
15+
"tsConfig": "projects/angular-editor/tsconfig.lib.json",
16+
"project": "projects/angular-editor/ng-package.json"
17+
}
18+
},
19+
"test": {
20+
"builder": "@angular-devkit/build-angular:karma",
21+
"options": {
22+
"main": "projects/angular-editor/src/test.ts",
23+
"tsConfig": "projects/angular-editor/tsconfig.spec.json",
24+
"karmaConfig": "projects/angular-editor/karma.conf.js"
25+
}
26+
},
27+
"lint": {
28+
"builder": "@angular-devkit/build-angular:tslint",
29+
"options": {
30+
"tsConfig": [
31+
"projects/angular-editor/tsconfig.lib.json",
32+
"projects/angular-editor/tsconfig.spec.json"
33+
],
34+
"exclude": [
35+
"**/node_modules/**"
36+
]
37+
}
38+
}
39+
}
40+
},
41+
"angular-editor-app": {
42+
"projectType": "application",
43+
"schematics": {},
44+
"root": "projects/angular-editor-app",
45+
"sourceRoot": "projects/angular-editor-app/src",
46+
"prefix": "app",
47+
"architect": {
48+
"build": {
49+
"builder": "@angular-devkit/build-angular:browser",
50+
"options": {
51+
"outputPath": "dist/angular-editor-app",
52+
"index": "projects/angular-editor-app/src/index.html",
53+
"main": "projects/angular-editor-app/src/main.ts",
54+
"polyfills": "projects/angular-editor-app/src/polyfills.ts",
55+
"tsConfig": "projects/angular-editor-app/tsconfig.app.json",
56+
"assets": [
57+
"projects/angular-editor-app/src/favicon.ico",
58+
"projects/angular-editor-app/src/assets"
59+
],
60+
"styles": [
61+
"projects/angular-editor-app/src/styles.scss"
62+
],
63+
"scripts": []
64+
},
65+
"configurations": {
66+
"production": {
67+
"fileReplacements": [
68+
{
69+
"replace": "projects/angular-editor-app/src/environments/environment.ts",
70+
"with": "projects/angular-editor-app/src/environments/environment.prod.ts"
71+
}
72+
],
73+
"optimization": true,
74+
"outputHashing": "all",
75+
"sourceMap": false,
76+
"extractCss": true,
77+
"namedChunks": false,
78+
"aot": true,
79+
"extractLicenses": true,
80+
"vendorChunk": false,
81+
"buildOptimizer": true,
82+
"budgets": [
83+
{
84+
"type": "initial",
85+
"maximumWarning": "2mb",
86+
"maximumError": "5mb"
87+
}
88+
]
89+
}
90+
}
91+
},
92+
"serve": {
93+
"builder": "@angular-devkit/build-angular:dev-server",
94+
"options": {
95+
"browserTarget": "angular-editor-app:build"
96+
},
97+
"configurations": {
98+
"production": {
99+
"browserTarget": "angular-editor-app:build:production"
100+
}
101+
}
102+
},
103+
"extract-i18n": {
104+
"builder": "@angular-devkit/build-angular:extract-i18n",
105+
"options": {
106+
"browserTarget": "angular-editor-app:build"
107+
}
108+
},
109+
"test": {
110+
"builder": "@angular-devkit/build-angular:karma",
111+
"options": {
112+
"main": "projects/angular-editor-app/src/test.ts",
113+
"polyfills": "projects/angular-editor-app/src/polyfills.ts",
114+
"tsConfig": "projects/angular-editor-app/tsconfig.spec.json",
115+
"karmaConfig": "projects/angular-editor-app/karma.conf.js",
116+
"assets": [
117+
"projects/angular-editor-app/src/favicon.ico",
118+
"projects/angular-editor-app/src/assets"
119+
],
120+
"styles": [
121+
"projects/angular-editor-app/src/styles.css"
122+
],
123+
"scripts": []
124+
}
125+
},
126+
"lint": {
127+
"builder": "@angular-devkit/build-angular:tslint",
128+
"options": {
129+
"tsConfig": [
130+
"projects/angular-editor-app/tsconfig.app.json",
131+
"projects/angular-editor-app/tsconfig.spec.json",
132+
"projects/angular-editor-app/e2e/tsconfig.json"
133+
],
134+
"exclude": [
135+
"**/node_modules/**"
136+
]
137+
}
138+
},
139+
"e2e": {
140+
"builder": "@angular-devkit/build-angular:protractor",
141+
"options": {
142+
"protractorConfig": "projects/angular-editor-app/e2e/protractor.conf.js",
143+
"devServerTarget": "angular-editor-app:serve"
144+
},
145+
"configurations": {
146+
"production": {
147+
"devServerTarget": "angular-editor-app:serve:production"
148+
}
149+
}
150+
}
151+
}
152+
}},
153+
"defaultProject": "angular-editor-app"
154+
}

ng-package.json

-8
This file was deleted.

ng-package.prod.json

-7
This file was deleted.

0 commit comments

Comments
 (0)