Skip to content

Commit

Permalink
Merge pull request #3 from msamprz/monorepo-prep
Browse files Browse the repository at this point in the history
Added lerna command shorteners to root npm package
  • Loading branch information
Mahboobeh-binary committed Jul 9, 2019
2 parents 4d17db8 + 7d9b5a0 commit f1d134e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,18 @@
"private": true,
"devDependencies": {
"lerna": "^3.15.0"
},
"scripts": {
"bootstrap": "lerna bootstrap --scope",
"hoist": "lerna bootstrap --hoist --nohoist=jsdom* --nohoist=mochapack",
"start": "f () { lerna exec --scope ${1:-'*'} -- npm run start ;}; f",
"serve": "f () { lerna exec --scope ${1:-'*'} -- npm run serve ;}; f",
"build": "f () { lerna exec --scope ${1:-'*'} -- npm run build ${@:2} ;}; f",
"test": "f () { lerna exec --scope ${1:-'*'} -- npm run test ;}; f",
"deploy": "f () { lerna exec --scope ${1:-'*'} -- npm run deploy ;}; f",
"deploy:clean": "f () { lerna exec --scope ${1:-'*'} -- npm run deploy:clean ;}; f",
"deploy:folder": "f () { lerna exec --scope ${1:-'*'} -- npm run deploy:folder ${@:2} ;}; f",
"deploy:staging": "f () { lerna exec --scope ${1:-'*'} -- npm run deploy:staging ;}; f",
"deploy:production": "f () { lerna exec --scope ${1:-'*'} -- npm run deploy:production ;}; f"
}
}

0 comments on commit f1d134e

Please sign in to comment.