Skip to content

Commit

Permalink
fix(project): enhanced the npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
AnthonyNahas committed Nov 14, 2019
1 parent 027dc4f commit 6ee590d
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"scripts": {
"build": "../../../node_modules/.bin/ng build @angular-material-extensions/select-country",
"build:schematics": "../../../node_modules/.bin/tsc -p tsconfig.schematics.json",
"clean": "rm -rf ../../../dist",
"resync:schematics": "rsync -a schematics/collection.json ../../../dist/angular-material-extensions/select-country/schematics/",
"resync:readme": "rsync -a ../../../README.md ../../../dist/angular-material-extensions/select-country/",
"postbuild": "npm run build:schematics && npm run resync:readme && npm run resync:schematics",
Expand Down Expand Up @@ -69,6 +70,9 @@
}
},
"hooks": {
"before:init": [
"npm run clean"
],
"after:bump": "echo \"building lib v${version}... \" && npm run build",
"after:git:release": "echo \"Updating CHANGELOG.md for v${version} \" && git commit -a -m \"Updating CHANGELOG.md for v${version} \" && git push",
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}.",
Expand Down

0 comments on commit 6ee590d

Please sign in to comment.