Skip to content

Commit 5302a82

Browse files
committed
andular run sample provided
1 parent 62b63af commit 5302a82

File tree

15 files changed

+14360
-4
lines changed

15 files changed

+14360
-4
lines changed

.github/workflows/publish.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Node.js Package
2+
on:
3+
release:
4+
types: [created]
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
# Setup .npmrc file to publish to npm
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: '12.x'
14+
registry-url: 'https://registry.npmjs.org'
15+
- run: npm install
16+
# Build
17+
- run: npm run build
18+
# Publish to npm
19+
- run: npm publish --access public
20+
env:
21+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
# Setup .npmrc file to publish to GitHub Packages
23+
- uses: actions/setup-node@v1
24+
with:
25+
registry-url: 'https://npm.pkg.github.com'
26+
# Defaults to the user or organization that owns the workflow file
27+
scope: '@revolist'
28+
# Publish to GitHub Packages
29+
- run: npm publish
30+
env:
31+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

angular.json

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"my-app": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "public",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/my-app",
17+
"index": "public/index.html",
18+
"main": "public/main.ts",
19+
"polyfills": "public/polyfills.ts",
20+
"tsConfig": "tsconfig.app.json",
21+
"aot": true,
22+
"assets": [
23+
"public/favicon.ico",
24+
"public/assets"
25+
],
26+
"styles": [
27+
"public/styles.css"
28+
],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"optimization": true,
34+
"outputHashing": "all",
35+
"sourceMap": false,
36+
"namedChunks": false,
37+
"extractLicenses": true,
38+
"vendorChunk": false,
39+
"buildOptimizer": true,
40+
"budgets": [
41+
{
42+
"type": "initial",
43+
"maximumWarning": "2mb",
44+
"maximumError": "5mb"
45+
},
46+
{
47+
"type": "anyComponentStyle",
48+
"maximumWarning": "6kb",
49+
"maximumError": "10kb"
50+
}
51+
]
52+
}
53+
}
54+
},
55+
"serve": {
56+
"builder": "@angular-devkit/build-angular:dev-server",
57+
"options": {
58+
"browserTarget": "my-app:build"
59+
},
60+
"configurations": {
61+
"production": {
62+
"browserTarget": "my-app:build:production"
63+
}
64+
}
65+
}
66+
}
67+
}
68+
},
69+
"defaultProject": "my-app"
70+
}

0 commit comments

Comments
 (0)