Skip to content

Commit

Permalink
Cleanup the scripts in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
guidoderooij committed Apr 2, 2024
1 parent 71f6f5f commit 564c271
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 90 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: npm run lint

- name: Build
run: npm run build:build
run: npm run build:prod

- name: Start Application
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ jobs:
id: dev-bump
uses: phips28/[email protected]
with:
tag-prefix: 'v'
tag-prefix: "v"
skip-tag: true
commit-message: '[CI/CD]: bump dev-app to {{version}}'
commit-message: "[CI/CD]: bump dev-app to {{version}}"

- name: Bump lib version
id: lib-bump
uses: phips28/[email protected]
with:
tag-prefix: 'v'
commit-message: '[CI/CD]: bump lib to {{version}}'
tag-prefix: "v"
commit-message: "[CI/CD]: bump lib to {{version}}"
env:
PACKAGEJSON_DIR: projects/politie/ngx-sherlock

Expand Down Expand Up @@ -74,7 +74,7 @@ jobs:
run: npm ci

- name: Build
run: npm run build:ci
run: npm run build:prod

- name: Add token to .npmrc
env:
Expand All @@ -83,6 +83,6 @@ jobs:
# for the four sherlock packages only.
npmToken: ${{ secrets.WORKFLOW_NPM_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=$npmToken" >> .npmrc

- name: Release
run: npm publish ./dist/politie/ngx-sherlock
79 changes: 0 additions & 79 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,85 +104,6 @@
"**/node_modules/**"
]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "ngx-sherlock-dev:serve"
},
"configurations": {
"production": {
"devServerTarget": "ngx-sherlock-dev:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false
}
},
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "ngx-sherlock-dev:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "ngx-sherlock-dev:serve:production"
}
}
}
}
},
"ngx-sherlock-dev-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "ngx-sherlock-dev-e2e:serve",
"watch": true,
"headless": false
},
"configurations": {
"production": {
"devServerTarget": "ngx-sherlock-dev-e2e:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "",
"exclude": [
"**/node_modules/**"
]
}
},
"cypress-run": {
"builder": "@cypress/schematic:cypress",
"options": {
"devServerTarget": "ngx-sherlock-dev-e2e:serve",
"configFile": "e2e//cypress.config.ts"
},
"configurations": {
"production": {
"devServerTarget": "ngx-sherlock-dev-e2e:serve:production"
}
}
},
"cypress-open": {
"builder": "@cypress/schematic:cypress",
"options": {
"watch": true,
"headless": false,
"configFile": "e2e//cypress.config.ts"
}
}
}
},
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
"watch:lib": "ng build @politie/ngx-sherlock --watch",
"watch:app": "sleep 10 && ng serve --open",
"clean": "rimraf coverage dist",
"build": "npm-run-all clean lint test:ci build:build e2e",
"build:ci": "npm-run-all clean lint test:ci build:prod e2e",
"build:build": "ng build @politie/ngx-sherlock",
"build:dev": "ng build @politie/ngx-sherlock",
"build:prod": "ng build @politie/ngx-sherlock --configuration production",
"test": "ng test @politie/ngx-sherlock",
"test:ci": "ng test @politie/ngx-sherlock --no-watch --browsers=ChromeHeadless --code-coverage",
"lint": "ng lint",
"e2e": "export NODE_OPTIONS=--openssl-legacy-provider && ng e2e",
"precommit": "npm-run-all clean lint test:ci build:prod precommit:e2e",
"precommit:e2e": "run-p start:app cypress:run",
"cypress:open": "cypress open --e2e --browser chrome",
"cypress:run": "cypress run --e2e --browser chrome"
},
Expand Down

0 comments on commit 564c271

Please sign in to comment.