Skip to content

Commit

Permalink
distribute scripts to workspaces
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed Sep 18, 2023
1 parent 655f80b commit c45c9df
Show file tree
Hide file tree
Showing 9 changed files with 8,043 additions and 24,268 deletions.
32,286 changes: 8,028 additions & 24,258 deletions package-lock.json

Large diffs are not rendered by default.

15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,20 +25,19 @@
"prestart": "npm run prestart --workspace=packages --if-present",
"start": "ng serve --hmr --proxy-config proxy.conf.json",
"build": "ng build",
"format": "npm run format.libs && npm run format.demo && npm run format.scripts",
"format.libs": "prettier --write ./packages/*/src/**/*.{ts,js,html,scss,css,json}",
"format.demo": "prettier --write ./demo/src/**/*.{ts,js,html,scss,css,json}",
"format.scripts": "prettier --write ./scripts/src/**/*.{ts,js,json}",
"lint": "ng lint",
"lint.fix": "ng lint --fix",
"e2e": "npm run prestart && ng run demo:e2e:production",
"e2e.local": "ng run demo:e2e:local",
"build.all": "npm run build.libs && npm run build.demo",
"build.libs": "ts-node scripts/src/build-library.ts",
"build.demo": "ng build demo --configuration=production",
"build.ghpages": "ng build demo --configuration=production --output-path ./dist/ghpages --base-href /igo2-lib/",
"build.doc": "compodoc -p tsconfig.json --disablePrivate --disableProtected --disableInternal --disableLifeCycleHooks --theme material",
"copy": "copy-newer --cwd dist ** \"..\\igo2\\node_modules\\@igo2\"",
"format": "npm run format --workspace=packages --if-present && npm run format.demo && npm run format.scripts",
"format.demo": "prettier --write ./demo/src/**/*.{ts,js,html,scss,css,json}",
"format.scripts": "prettier --write ./scripts/src/**/*.{ts,js,json}",
"lint": "ng lint",
"lint.fix": "ng lint --fix",
"e2e": "npm run prestart && ng run demo:e2e:production",
"e2e.local": "ng run demo:e2e:local",
"doc": "npm run build.doc && compodoc -s --port 4220",
"test": "ng test --watch=false --browsers=ChromeHeadless",
"test.watch": "ng test",
Expand Down
3 changes: 2 additions & 1 deletion packages/auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build auth --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"publish": "npm publish ../../dist/auth",
"test": "ng test auth --watch=false",
"watch": "ng build auth --watch"
Expand All @@ -43,7 +44,7 @@
"@azure/msal-browser": "^3.0.4",
"@igo2/core": "*",
"@igo2/utils": "*",
"rxjs": "^7.5.6",
"rxjs": "^7.8.0"
},
"engines": {
"node": ">=18.10.0"
Expand Down
1 change: 1 addition & 0 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build common --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"postbuild": "ts-node ../../scripts/src/common/postbuild-common.ts",
"publish": "npm publish ../../dist/common",
"test": "ng test common --watch=false",
Expand Down
2 changes: 1 addition & 1 deletion packages/context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build context --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"publish": "npm publish ../../dist/context",
"test": "ng test context --watch=false",
"watch": "ng build context --watch"
Expand All @@ -39,7 +40,6 @@
"@igo2/geo": "*",
"@igo2/utils": "*",
"ol": "^8.1.0",
"ol-mapbox-style": "^12.0.0",
"rxjs": "^7.8.0"
},
"dependencies": {
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"scripts": {
"prestart": "ts-node ../../scripts/src/core/prestart-core.ts",
"build": "ng build core --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"postbuild": "ts-node ../../scripts/src/core/postbuild-core.ts",
"publish": "npm publish ../../dist/core --dry-run",
"test": "ng test core --watch=false",
Expand Down
1 change: 1 addition & 0 deletions packages/geo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build geo --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"postbuild": "ts-node ../../scripts/src/geo/postbuild-geo.ts",
"publish": "npm publish ../../dist/geo",
"test": "ng test geo --watch=false",
Expand Down
1 change: 1 addition & 0 deletions packages/integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build integration --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"publish": "npm publish ../../dist/integration",
"test": "",
"watch": "ng build integration --watch"
Expand Down
1 change: 1 addition & 0 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
},
"scripts": {
"build": "ng build utils --configuration production",
"format": "prettier --write ./src/**/*.{ts,js,html,scss,css,json}",
"publish": "npm publish ../../dist/utils",
"test": "ng test utils --watch=false",
"watch": "ng build utils --watch"
Expand Down

0 comments on commit c45c9df

Please sign in to comment.