feat: add npm scripts for different package managers, ie: yarn, pnpm (#9230)

This commit is contained in:
Igor Randjelovic
2021-02-20 19:40:12 +01:00
committed by GitHub
parent ebbc07040c
commit d7b2c84da8
2 changed files with 8 additions and 4 deletions

5
.gitignore vendored
View File

@ -8,10 +8,11 @@
# dependencies # dependencies
node_modules node_modules
package-lock.json package-lock.json
yarn-lock.json yarn.lock
pnpm-lock.yaml
# IDEs and editors # IDEs and editors
/.idea .idea
.project .project
.classpath .classpath
.c9/ .c9/

View File

@ -4,7 +4,10 @@
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"clean": "git clean -f -X -d", "clean": "git clean -f -X -d",
"setup": "npm run clean && npm i && ts-patch install && nx run core:setup", "setup": "npm run clean && npm install",
"setup:yarn": "yarn run clean && yarn",
"setup:pnpm": "pnpm run clean && pnpm install",
"postinstall": "ts-patch install && nx run core:setup",
"start": "nps", "start": "nps",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s" "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
}, },