Skip to content

Instantly share code, notes, and snippets.

@alexdiliberto
Created July 25, 2017 22:42
Show Gist options
  • Save alexdiliberto/3549dade0b316ef1bf254b83323b3d6c to your computer and use it in GitHub Desktop.
Save alexdiliberto/3549dade0b316ef1bf254b83323b3d6c to your computer and use it in GitHub Desktop.
Lerna package.json scripts
{
"name": "my-lerna-project",
"private": true,
"devDependencies": {
"bower": "^1.8.0",
"lerna": "^2.0.0",
"lerna-wizard": "^1.0.9",
"rimraf": "^2.6.1"
},
"scripts": {
"bootstrap": "lerna bootstrap",
"bower": "lerna exec --parallel --concurrency 4 --bail false -- bower install",
"cleanup": "yarn cleanup:build && yarn cleanup:caches && yarn cleanup:deps",
"cleanup:build": "rimraf packages/*/dist && rimraf packages/*/tmp",
"cleanup:deps": "rimraf packages/*/bower_components && lerna clean --yes && rimraf node_modules",
"cleanup:caches": "yarn cache clean & bower cache clean",
"lerna": "lerna",
"lerna-wizard": "lerna-wizard",
"lint:fix": "lerna run --parallel lint -- -- --fix --quiet",
"postinstall": "yarn bower && yarn bootstrap",
"release": "lerna publish",
"start": "cd packages/dashboard && yarn start",
"build": "cd packages/dashboard && yarn build:prod"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment