Skip to content

Commit

Permalink
build: add demo build
Browse files Browse the repository at this point in the history
  • Loading branch information
huanhuanwa committed Jul 19, 2024
1 parent 195aae5 commit b0449c8
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
26 changes: 14 additions & 12 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"build": {
"builder": "@angular-devkit/build-angular:application",
"options": {
"outputPath": "dist/ai-table",
"outputPath": "dist/demo",
"index": "src/index.html",
"browser": "src/main.ts",
"polyfills": ["zone.js"],
Expand All @@ -39,19 +39,23 @@
},
"configurations": {
"production": {
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"extractLicenses": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "500kB",
"maximumError": "1MB"
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "2kB",
"maximumError": "4kB"
}
],
"outputHashing": "all"
]
},
"development": {
"optimization": false,
Expand All @@ -62,6 +66,9 @@
"defaultConfiguration": "production"
},
"serve": {
"options": {
"port": 6100
},
"builder": "@angular-devkit/build-angular:dev-server",
"configurations": {
"production": {
Expand Down Expand Up @@ -102,18 +109,13 @@
"tsConfig": "packages/grid/tsconfig.spec.json",
"karmaConfig": "packages/grid/karma.conf.js",
"codeCoverage": true,
"codeCoverageExclude": [
"packages/grid/testing/**/*"
]
"codeCoverageExclude": ["packages/grid/testing/**/*"]
}
},
"lint": {
"builder": "@angular-eslint/builder:lint",
"options": {
"lintFilePatterns": [
"packages/store/**/*.ts",
"packages/store/**/*.html"
]
"lintFilePatterns": ["packages/store/**/*.ts", "packages/store/**/*.html"]
}
}
}
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
],
"scripts": {
"ng": "ng",
"start": "ng serve",
"start": "ng serve demo",
"build": "npm run build:grid",
"build:demo": "ng build demo --configuration production",
"build:grid": "ng build grid && cpx \"./packages/grid/src/**/*.scss\" ./dist/grid/",
"release": "npm run build && wpm release --release-branch-format release-auto-v{{version}}",
"release-next": "npm run build && wpm release --release-branch-format release-auto-next-v{{version}}",
Expand Down
11 changes: 7 additions & 4 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
"outDir": "./out-tsc/app",
"types": [],
"paths": {
"@ai-table/grid": ["./packages/grid/src/index"]
}
"@ai-table/grid": ["./packages/grid/src/index"]
},
"moduleResolution": "node",
"importHelpers": true,
"module": "es2020",
"lib": ["es2018", "dom"]
},
"files": ["src/main.ts"],
"include": ["src/**/*.d.ts"],

"include": ["src/**/*.d.ts"]
}

0 comments on commit b0449c8

Please sign in to comment.