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

7
.gitignore vendored
View File

@ -8,10 +8,11 @@
# dependencies
node_modules
package-lock.json
yarn-lock.json
yarn.lock
pnpm-lock.yaml
# IDEs and editors
/.idea
.idea
.project
.classpath
.c9/
@ -50,4 +51,4 @@ Thumbs.db
!packages/core/xml/index.js
# types
ios-typings-prj
ios-typings-prj

View File

@ -4,7 +4,10 @@
"license": "MIT",
"scripts": {
"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",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},