Skip to content

Commit

Permalink
build(root): 🔧 improve lerna/npm - release/publish/tag scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymichel committed Nov 25, 2019
1 parent f6bb536 commit 8439767
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,12 @@
"lint": "tslint packages/**/src/**",
"ls": "lerna ls",
"prepublish": "yarn run build",
"release": "lerna publish && npm run release:next",
"release:next": "lerna run release:next --npm-client=npm",
"release": "lerna publish && npm run tag:next",
"release:next": "lerna publish --dist-tag next",
"report": "lerna run report",
"size": "lerna run size",
"tag:latest": "lerna run tag:latest --npm-client=npm",
"tag:next": "lerna run tag:next --npm-client=npm",
"test": "npm-run-all lint build unit e2e",
"unit": "yarn jest --coverage",
"unit:ci": "yarn jest --coverage --maxWorkers=2",
Expand Down
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
"clear": "rimraf dist",
"lint": "tslint src/**",
"precommit": "lint-staged",
"release:next": "npm dist-tag add @barba/core@$npm_package_version next",
"report": "source-map-explorer --html ./dist/barba.umd.js > report.html",
"size": "echo '📦 router' && gzip-size ./dist/barba.umd.js"
"size": "echo '📦 router' && gzip-size ./dist/barba.umd.js",
"tag:latest": "npm dist-tag add @barba/core@$npm_package_version latest",
"tag:next": "npm dist-tag add @barba/core@$npm_package_version next"
},
"dependencies": {
"is-promise": "^2.1.0",
Expand Down
5 changes: 3 additions & 2 deletions packages/css/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
"clear": "rimraf dist",
"lint": "tslint src/**",
"precommit": "lint-staged",
"release:next": "npm dist-tag add @barba/css@$npm_package_version next",
"size": "echo '💄 css' && gzip-size ./dist/barba-css.umd.js"
"size": "echo '💄 css' && gzip-size ./dist/barba-css.umd.js",
"tag:latest": "npm dist-tag add @barba/css@$npm_package_version latest",
"tag:next": "npm dist-tag add @barba/css@$npm_package_version next"
},
"gitHead": "33c213bc36a0996f6333185dfc695fcd0d37c9d9"
}
5 changes: 3 additions & 2 deletions packages/prefetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@
"clear": "rimraf dist",
"lint": "tslint src/**",
"precommit": "lint-staged",
"release:next": "npm dist-tag add @barba/prefetch@$npm_package_version next",
"report": "source-map-explorer --html ./dist/barba-prefetch.umd.js > report.html",
"size": "echo '🚀 prefetch' && gzip-size ./dist/barba-prefetch.umd.js"
"size": "echo '🚀 prefetch' && gzip-size ./dist/barba-prefetch.umd.js",
"tag:latest": "npm dist-tag add @barba/prefetch@$npm_package_version latest",
"tag:next": "npm dist-tag add @barba/prefetch@$npm_package_version next"
},
"gitHead": "33c213bc36a0996f6333185dfc695fcd0d37c9d9"
}
5 changes: 3 additions & 2 deletions packages/router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@
"clear": "rimraf dist",
"lint": "tslint src/**",
"precommit": "lint-staged",
"release:next": "npm dist-tag add @barba/router@$npm_package_version next",
"size": "echo '🚦 router' && gzip-size ./dist/barba-router.umd.js"
"size": "echo '🚦 router' && gzip-size ./dist/barba-router.umd.js",
"tag:latest": "npm dist-tag add @barba/router@$npm_package_version latest",
"tag:next": "npm dist-tag add @barba/router@$npm_package_version next"
},
"gitHead": "33c213bc36a0996f6333185dfc695fcd0d37c9d9"
}

0 comments on commit 8439767

Please sign in to comment.