Skip to content

Commit 41b7974

Browse files
authored
chore: ♻️ Introduce WireIt and update deps (#370)
1 parent eb1749f commit 41b7974

5 files changed

Lines changed: 1357 additions & 2131 deletions

File tree

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ jobs:
3030
- name: Install dependencies
3131
run: yarn
3232
- name: Run tests
33-
run: yarn cypress_ci
33+
run: yarn test_ci

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,4 @@ testem.log
4040
# System Files
4141
.DS_Store
4242
Thumbs.db
43+
.wireit

angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,5 +78,8 @@
7878
}
7979
}
8080
}
81+
},
82+
"cli": {
83+
"analytics": "4af3d67b-15ea-40d9-8c3a-998fb02958b9"
8184
}
8285
}

package.json

Lines changed: 124 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,37 +2,30 @@
22
"name": "angular-split-app",
33
"version": "0.0.0",
44
"scripts": {
5-
"ng": "ng",
6-
"start": "ng serve",
7-
"lib-start": "ng build angular-split --watch",
8-
"lint": "ng lint",
9-
"app_build": "yarn lib_build && ng build --configuration production --base-href /angular-split/",
10-
"app_analyze": "yarn lib_build && ng build --configuration production --stats-json && webpack-bundle-analyzer dist/angular-split-app/stats.json",
5+
"app_analyze": "yarn build && ng build --configuration production --stats-json && webpack-bundle-analyzer dist/angular-split-app/stats.json",
6+
"build": "wireit",
7+
"test_live": "wireit",
8+
"test_prod": "wireit",
9+
"test_ci": "wireit",
1110
"deploy": "ng deploy angular-split-app --branch main --base-href 'https://angular-split.github.io/' --repo https://github.com/angular-split/angular-split.github.io.git",
12-
"lib_build": "ng build angular-split && yarn lib_copy",
13-
"lib_copy": "cp ./LICENSE ./README.md ./dist/angular-split",
14-
"lib_tgz": "yarn lib_build && cd dist/angular-split && npm pack",
15-
"lib_pub_next": "yarn lib_build && npm publish --tag next ./dist/angular-split",
16-
"lib_pub_latest": "yarn lib_build && npm publish --tag latest ./dist/angular-split",
17-
"cypress_dev": "yarn lib_build && ng build --configuration production && concurrently \"ng serve --port 4242\" \"cypress open\"",
18-
"cypress_prod": "yarn cypress_build && run-p --race cypress_serve cypress_open",
19-
"cypress_ci": "yarn cypress_build && run-p --race cypress_serve cypress_run",
20-
"cypress_build": "yarn lib_build && ng build angular-split-app --configuration production",
21-
"cypress_serve": "serve -s -l 4242 ./dist/angular-split-app",
22-
"cypress_open": "cypress open --config baseUrl=http://localhost:4242/",
23-
"cypress_run": "cypress run --config baseUrl=http://localhost:4242/",
24-
"format": "prettier --write '**/*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}'"
11+
"format": "prettier --write '**/*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}'",
12+
"lib_pub_latest": "wireit",
13+
"lib_pub_next": "wireit",
14+
"lib_tgz": "wireit",
15+
"lint": "ng lint",
16+
"ng": "ng",
17+
"start": "wireit"
2518
},
2619
"private": true,
2720
"dependencies": {
28-
"@angular/animations": "^17.0.2",
29-
"@angular/common": "^17.0.2",
30-
"@angular/compiler": "^17.0.2",
31-
"@angular/core": "^17.0.2",
32-
"@angular/forms": "^17.0.2",
33-
"@angular/platform-browser": "^17.0.2",
34-
"@angular/platform-browser-dynamic": "^17.0.2",
35-
"@angular/router": "^17.0.2",
21+
"@angular/animations": "^17.1.0",
22+
"@angular/common": "^17.1.0",
23+
"@angular/compiler": "^17.1.0",
24+
"@angular/core": "^17.1.0",
25+
"@angular/forms": "^17.1.0",
26+
"@angular/platform-browser": "^17.1.0",
27+
"@angular/platform-browser-dynamic": "^17.1.0",
28+
"@angular/router": "^17.1.0",
3629
"angular-cli-ghpages": "^1.0.6",
3730
"bootstrap": "5.3.1",
3831
"core-js": "3.32.1",
@@ -46,13 +39,13 @@
4639
"zone.js": "~0.14.2"
4740
},
4841
"devDependencies": {
49-
"@angular-devkit/architect": "^0.1700.0",
50-
"@angular-devkit/build-angular": "^17.0.0",
51-
"@angular-devkit/core": "^17.0.0",
52-
"@angular-devkit/schematics": "^17.0.0",
53-
"@angular/cli": "^17.0.0",
54-
"@angular/compiler-cli": "^17.0.2",
55-
"@angular/language-service": "^17.0.2",
42+
"@angular-devkit/architect": "^0.1701.0",
43+
"@angular-devkit/build-angular": "^17.1.0",
44+
"@angular-devkit/core": "^17.1.0",
45+
"@angular-devkit/schematics": "^17.1.0",
46+
"@angular/cli": "^17.1.0",
47+
"@angular/compiler-cli": "^17.1.0",
48+
"@angular/language-service": "^17.1.0",
5649
"@types/marked": "^5.0.1",
5750
"@types/node": "20.5.4",
5851
"codelyzer": "^6.0.2",
@@ -66,11 +59,106 @@
6659
"tslib": "^2.6.2",
6760
"tslint": "~6.1.3",
6861
"typescript": "5.2.2",
69-
"webpack-bundle-analyzer": "4.9.0"
62+
"webpack-bundle-analyzer": "4.9.0",
63+
"wireit": "^0.14.3"
7064
},
7165
"lint-staged": {
7266
"*.{js,json,css,scss,less,md,ts,tsx,html,component.html,graphql}": [
7367
"prettier --write"
7468
]
69+
},
70+
"wireit": {
71+
"app_build_dev": {
72+
"command": "yarn app_build -- --base-href /angular-split/"
73+
},
74+
"app_build": {
75+
"command": "ng build angular-split-app --configuration production",
76+
"dependencies": [
77+
"lib_build"
78+
],
79+
"files": [
80+
"src/"
81+
],
82+
"output": [
83+
"dist/angular-split-app"
84+
]
85+
},
86+
"build": {
87+
"dependencies": [
88+
"app_build",
89+
"lib_build"
90+
]
91+
},
92+
"test_ci": {
93+
"dependencies": [
94+
"cypress_run",
95+
"cypress_serve"
96+
]
97+
},
98+
"ng_serve": {
99+
"command": "ng serve --port 4242",
100+
"service": true
101+
},
102+
"test_live": {
103+
"command": "cypress open --config baseUrl=http://localhost:4242/",
104+
"dependencies": [
105+
"ng_serve"
106+
],
107+
"service": true
108+
},
109+
"test_prod": {
110+
"command": "cypress open --config baseUrl=http://localhost:4242/",
111+
"dependencies": [
112+
"build",
113+
"cypress_serve"
114+
],
115+
"service": true
116+
},
117+
"cypress_run": {
118+
"command": "cypress run --config baseUrl=http://localhost:4242/",
119+
"dependencies": [
120+
"cypress_serve"
121+
]
122+
},
123+
"cypress_serve": {
124+
"command": "serve -s -l 4242 ./dist/angular-split-app",
125+
"service": true,
126+
"dependencies": [
127+
"build"
128+
]
129+
},
130+
"lib_build": {
131+
"command": "ng build angular-split && cp ./LICENSE ./README.md ./dist/angular-split",
132+
"files": [
133+
"projects/angular-split/"
134+
],
135+
"output": [
136+
"dist/angular-split"
137+
]
138+
},
139+
"lib_pub_latest": {
140+
"command": "npm publish --tag latest ./dist/angular-split",
141+
"dependencies": [
142+
"lib_build"
143+
]
144+
},
145+
"lib_pub_next": {
146+
"command": "npm publish --tag next ./dist/angular-split",
147+
"dependencies": [
148+
"lib_build"
149+
]
150+
},
151+
"lib_tgz": {
152+
"command": "cd dist/angular-split && npm pack",
153+
"dependencies": [
154+
"lib_build"
155+
]
156+
},
157+
"start": {
158+
"command": "ng serve",
159+
"dependencies": [
160+
"lib_build"
161+
]
162+
}
75163
}
76-
}
164+
}

0 commit comments

Comments
 (0)