-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommands.txt
44 lines (30 loc) · 1.06 KB
/
commands.txt
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
-- upgrade same major version
ng update @angular/core@13 @angular/cli@13
--require to install npm install -g http-server
ng new workspace --directory ./
ng serve --configuration=production
ng build --configuration=production
--PWA
ng add @angular/pwa
-- Tailwind setup
npm install -D tailwindcss postcss autoprefixer
npx tailwindcss init
// Follow at
https://tailwindcss.com/docs/guides/angular
-- Icon & splash screen Generator
npm install --global pwa-asset-generator
-- One-off execution
npx pwa-asset-generator
-- GIT HUB Pages CI/CD
1: This will create a gh-pages branch, copy over all files from the base path, commit all changes and push to the origin remote.
npm install gh-pages --save-dev
2: Add properties to package.json file, in the existing script property you need to add predeploy and deploy
"scripts": {
// ...
"predeploy": "npm run build",
"deploy": "gh-pages -d dist"
}
3: Go to Settings > Pages > Source > select branch gh-pages and root folder.
4: Now deploy it to Github pages gh-pages branch
pnpm run build or pnpm run predeploy
pnpm run deploy