-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
package.json
168 lines (168 loc) · 7.12 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
{
"name": "single-spa-angular",
"version": "0.0.0",
"description": "Helpers for building single-spa applications which use Angular 2+",
"repository": {
"type": "git",
"url": "git+https://github.com/single-spa/single-spa-angular.git"
},
"keywords": [
"single-spa",
"angular"
],
"author": "Joel Denning",
"maintainers": [
"Joel Denning",
"Artur Androsovych"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/single-spa/single-spa-angular/issues"
},
"homepage": "https://github.com/single-spa/single-spa-angular#readme",
"private": true,
"scripts": {
"// - BINARIES": "We should not go to .bin folder directly (quick fix)",
"webpack": "./node_modules/.bin/webpack",
"webpack-dev-server": "./node_modules/.bin/webpack-dev-server",
"nx": "nx",
"serve": "NO_UPDATE_CHECK=1 serve",
"prepublishOnly": "yarn build && yarn test",
"clean": "rimraf lib",
"build": "yarn clean && yarn build:single-spa-angular && concurrently yarn:build:schematics yarn:build:webpack",
"test": "yarn clean && jest",
"lint": "eslint apps libs --ext ts",
"// - SINGLE-SPA-ANGULAR": "Scripts for building single-spa-angular",
"build:single-spa-angular": "nx build single-spa-angular --skip-nx-cache && cpx README.md lib",
"// - WEBPACK": "Scripts for building Webpack config transformer",
"build:webpack": "rimraf lib/lib && tsc -p tsconfig.webpack.json",
"// - SCHEMATICS": "Scripts for building schematics and copying its files",
"build:schematics": "rimraf lib/schematics && tsc -p tsconfig.schematics.json && concurrently 'yarn:copy:schematics:*'",
"copy:schematics:json": "cpx schematics/schematics.json lib/schematics",
"copy:schematics:schema": "cpx \"schematics/ng-add/schema*\" lib/schematics/ng-add",
"copy:schematics:files": "cpx \"schematics/ng-add/_files/**/**\" lib/schematics/ng-add/_files",
"format": "prettier './**/*' --write",
"// - INTEGRATION INSTALLS": "Install packages for integration apps",
"serve:app:shop": "yarn nx serve shop --disable-host-check --live-reload false --port 4200",
"serve:app:chat": "yarn nx serve chat --disable-host-check --live-reload false --port 9000",
"serve:app:navbar": "yarn nx serve navbar --disable-host-check --live-reload false --port 4300",
"serve:app:noop-zone": "yarn nx serve noop-zone --disable-host-check --live-reload false --port 8000",
"serve:app:elements": "yarn nx serve elements --disable-host-check --live-reload false --port 4000",
"serve:app:parcel": "yarn nx serve parcel --disable-host-check --live-reload false --port 4400",
"serve:app:standalone": "yarn nx serve standalone --disable-host-check --live-reload false --port 4500",
"serve:app:root-config": "yarn webpack-dev-server --config apps/root-config/webpack.config.js",
"serve:all": "concurrently 'yarn:serve:app:*'",
"// - INTEGRATION BUILDS": "Build apps that are required for E2E testing #requires yarn install:integration",
"build:app:shop": "nx build shop",
"build:app:chat": "nx build chat",
"build:app:navbar": "nx build navbar",
"build:app:noop-zone": "nx build noop-zone",
"build:app:elements": "nx build elements",
"build:app:parcel": "nx build parcel",
"build:app:standalone": "nx build standalone",
"build:app:root-config": "yarn webpack --mode production --config apps/root-config/webpack.config.js",
"build:all": "yarn build:app:root-config && nx run-many --target build --projects=shop,chat,navbar,noop-zone,elements,parcel,standalone --parallel --configuration production",
"// - APPS": "Serve apps that are required for E2E testing #requires yarn build:integration",
"start:all": "concurrently -n w: 'yarn:start:app:*'",
"start:app:shop": "yarn serve dist/apps/shop -s -l 4200 --cors",
"start:app:chat": "yarn serve dist/apps/chat -s -l 9000 --cors",
"start:app:navbar": "yarn serve dist/apps/navbar -s -l 4300 --cors",
"start:app:noop-zone": "yarn serve dist/apps/noop-zone -s -l 8000 --cors",
"start:app:elements": "yarn serve dist/apps/elements -s -l 4000 --cors",
"start:app:parcel": "yarn serve dist/apps/parcel -s -l 4400 --cors",
"start:app:standalone": "yarn serve dist/apps/standalone -s -l 4500 --cors",
"start:app:root-config": "yarn serve dist/apps/root-config -s -l 8080 --cors",
"// - E2E": "E2E testing",
"cy:open": "cypress open",
"cy:run": "cypress run",
"cy:run:chrome": "yarn cy:run --browser chrome",
"cy:run:chromium": "yarn cy:run --browser chromium",
"// - CI": "CI testing #requires yarn start:all",
"test:ci": "jest --run-in-band --silent",
"test:ci:integration": "yarn start-test start:all 8080 cy:run"
},
"devDependencies": {
"@angular-builders/custom-webpack": "18.0.0",
"@angular-devkit/build-angular": "18.2.3",
"@angular-devkit/core": "18.2.3",
"@angular-devkit/schematics": "18.2.3",
"@angular/animations": "18.2.3",
"@angular/cli": "~18.2.0",
"@angular/common": "18.2.3",
"@angular/compiler": "18.2.3",
"@angular/compiler-cli": "18.2.3",
"@angular/core": "18.2.3",
"@angular/elements": "18.2.3",
"@angular/forms": "18.2.3",
"@angular/language-service": "18.2.3",
"@angular/platform-browser": "18.2.3",
"@angular/platform-browser-dynamic": "18.2.3",
"@angular/router": "18.2.3",
"@babel/plugin-proposal-async-generator-functions": "^7.20.7",
"@commitlint/cli": "17.4.0",
"@commitlint/config-conventional": "17.4.0",
"@nx/angular": "19.6.5",
"@nx/workspace": "19.6.5",
"@schematics/angular": "18.2.3",
"@types/jest": "29.4.4",
"@types/karma": "^6.1.0",
"@types/node": "18.19.9",
"@types/react": "^17.0.37",
"@types/react-dom": "^17.0.11",
"@types/single-spa-react": "4.0.0",
"@types/systemjs": "^6.1.1",
"@typescript-eslint/eslint-plugin": "6.10.0",
"@typescript-eslint/parser": "6.10.0",
"autoprefixer": "^10.4.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"concurrently": "^5.1.0",
"cpx": "^1.5.0",
"cypress": "9.5.2",
"eslint": "8.48.0",
"eslint-plugin-prefer-arrow": "1.2.3",
"html-webpack-plugin": "^5.5.0",
"husky": "^7.0.4",
"jest": "29.4.3",
"jest-environment-jsdom": "29.4.3",
"jest-preset-angular": "14.1.1",
"json5": "^2.2.2",
"lint-staged": "^12.1.1",
"ng-packagr": "18.2.1",
"nx": "19.6.5",
"postcss": "^8.3.9",
"postcss-import": "14.1.0",
"postcss-preset-env": "7.5.0",
"postcss-url": "10.1.3",
"prettier": "2.7.1",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"rimraf": "^2.6.2",
"rxjs": "~7.5.0",
"serve": "^14.2.0",
"single-spa-react": "4.6.0",
"start-server-and-test": "1.14.0",
"style-loader": "^3.3.1",
"ts-jest": "29.0.5",
"tslib": "^2.3.0",
"typescript": "5.5.4",
"webpack-cli": "^5.1.4",
"zone.js": "~0.14.10"
},
"dependencies": {
"single-spa": ">= 5.4"
},
"prettier": {
"semi": true,
"singleQuote": true,
"arrowParens": "avoid",
"endOfLine": "lf",
"printWidth": 100,
"trailingComma": "all",
"bracketSpacing": true
},
"lint-staged": {
"*.{ts,html,scss,md,yml}": [
"prettier --write"
]
}
}