Skip to content

Commit 1ec6e9e

Browse files
committed
build: add nx
1 parent 4a42746 commit 1ec6e9e

Some content is hidden

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

41 files changed

+1912
-1350
lines changed

.browserslistrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

angular.json

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

e2e/protractor.conf.js

Lines changed: 0 additions & 28 deletions
This file was deleted.

e2e/src/app.e2e-spec.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

e2e/src/app.po.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

e2e/tsconfig.e2e.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

package.json

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,18 @@
22
"name": "ngx-http-annotations",
33
"version": "0.7.4-beta.1",
44
"scripts": {
5-
"ng": "ng",
6-
"start": "ng serve",
7-
"build": "ng build",
8-
"test": "ng test",
9-
"lint": "ng lint",
10-
"e2e": "ng e2e",
11-
"build_lib": "ng build ngx-http-annotations --configuration production && npm run copy-readme",
5+
"ng": "nx",
6+
"start": "nx serve",
7+
"build": "nx build",
8+
"test": "nx test",
9+
"lint": "nx lint",
10+
"e2e": "nx e2e",
11+
"build_lib": "nx build ngx-http-annotations --configuration production && npm run copy-readme",
1212
"copy-readme": "copyfiles ./README.md ./dist/ngx-http-annotations",
1313
"npm_pack": "cd dist/ngx-http-annotations && npm pack",
1414
"package": "npm run build_lib && npm run npm_pack",
15-
"publish": "cd dist/ngx-http-annotations && npm publish"
15+
"publish": "cd dist/ngx-http-annotations && npm publish",
16+
"postinstall": "node ./decorate-angular-cli.js"
1617
},
1718
"private": true,
1819
"dependencies": {
@@ -35,6 +36,7 @@
3536
"@angular/cli": "~13.3.8",
3637
"@angular/compiler-cli": "^13.3.11",
3738
"@angular/language-service": "^13.3.11",
39+
"@nrwl/workspace": "14.8.4",
3840
"@types/jasmine": "~3.6.0",
3941
"@types/jasminewd2": "~2.0.3",
4042
"@types/node": "^12.11.1",
@@ -49,9 +51,16 @@
4951
"karma-jasmine": "~4.0.0",
5052
"karma-jasmine-html-reporter": "^1.5.0",
5153
"ng-packagr": "^13.3.1",
54+
"nx": "14.8.4",
55+
"postcss": "^8.4.5",
56+
"postcss-import": "~14.1.0",
57+
"postcss-preset-env": "~7.5.0",
58+
"postcss-url": "~10.1.3",
59+
"prettier": "^2.6.2",
5260
"protractor": "~7.0.0",
5361
"ts-node": "~5.0.1",
5462
"tslint": "~6.1.0",
55-
"typescript": "~4.6.4"
63+
"typescript": "4.8.4"
5664
}
5765
}
66+

projects/ngx-http-annotations/karma.conf.js

Lines changed: 0 additions & 31 deletions
This file was deleted.

projects/ngx-http-annotations/ng-package.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

projects/ngx-http-annotations/ng-package.prod.json

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)