Skip to content

Commit

Permalink
adding a script for each package to publish itself
Browse files Browse the repository at this point in the history
  • Loading branch information
RCopeland committed Jan 8, 2019
1 parent 81343ed commit 7e70091
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 10 deletions.
2 changes: 1 addition & 1 deletion lerna.json
@@ -1,4 +1,4 @@
{
"packages": ["packages/**/*"],
"packages": ["packages/**/*", "src/angular/projects/**/*"],
"version": "independent"
}
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -79,7 +79,8 @@
"unlink-dependencies": "npm unlink --prefix ./packages/spark-core && npm unlink --prefix ./packages/spark-extras && npm unlink @sparkdesignsystem/spark-core --prefix ./src/angular && npm unlink @sparkdesignsystem/spark-extras --prefix ./src/angular",
"link-dependencies": "npm link --prefix ./packages/spark-core && npm link --prefix ./packages/spark-extras && npm link @sparkdesignsystem/spark-core --prefix ./src/angular && npm link @sparkdesignsystem/spark-extras --prefix ./src/angular",
"build-angular": "cd src/angular && ng build spark-core-angular && cd ../..",
"link-spark-core-angular": "npm link --prefix ./src/angular/dist/spark-core-angular && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-award && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-card && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-dictionary && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-highlight-board"
"link-spark-core-angular": "npm link --prefix ./src/angular/dist/spark-core-angular && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-award && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-card && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-dictionary && npm link @sparkdesignsystem/spark-core-angular --prefix ./src/angular/projects/spark-extras-angular-highlight-board",
"lerna-publish": "lerna bootstrap && lerna version"
},
"lint-staged": {
"*.scss": [
Expand Down
3 changes: 2 additions & 1 deletion packages/spark-core/package.json
Expand Up @@ -7,7 +7,8 @@
"test": "mocha --require babel-core/register --require \"./tests/_setup.js\" \"./tests/*.tests.js\"",
"coverage": "nyc npm test",
"build": "webpack",
"prepare": "npm run build"
"prepare": "npm run build",
"lerna-publish": "npm publish"
},
"nyc": {
"exclude": "tests/*.js"
Expand Down
3 changes: 3 additions & 0 deletions packages/spark-extras/components/card/package.json
Expand Up @@ -3,6 +3,9 @@
"version": "4.0.1",
"description": "Spark Card is a package that is part of Spark Extras, a supplementary package that adds additional components that are not part of Spark Core.",
"main": "_card.scss",
"scripts": {
"lerna-publish": "npm publish"
},
"repository": {
"type": "git",
"url": "https://github.com/sparkdesignsystem/spark-design-system"
Expand Down
3 changes: 3 additions & 0 deletions packages/spark-extras/components/dictionary/package.json
Expand Up @@ -3,6 +3,9 @@
"version": "3.1.8",
"description": "Spark Description Table is a package that is part of Spark Extras, a supplementary package that adds additional components that are not part of Spark Core.",
"main": "_description-table.scss",
"scripts": {
"lerna-publish": "npm publish"
},
"repository": {
"type": "git",
"url": "https://github.com/sparkdesignsystem/spark-design-system"
Expand Down
Expand Up @@ -6,7 +6,8 @@
"test": "mocha --require babel-core/register --require \"./tests/_setup.js\" \"./tests/*.tests.js\"",
"coverage": "nyc npm test",
"build": "webpack",
"prepare": "npm run build"
"prepare": "npm run build",
"lerna-publish": "npm publish"
},
"nyc": {
"exclude": "tests/*.js"
Expand Down
3 changes: 2 additions & 1 deletion packages/spark-extras/package.json
Expand Up @@ -4,7 +4,8 @@
"description": "Spark Extras is a supplementary package that adds additional components that are not part of Spark Core. Many sites will use these components, but they aren't necessary for every Quicken Loans Fintech product.",
"scripts": {
"test": "mocha --require babel-core/register --require \"./tests/_setup.js\" \"./tests/*.tests.js\"",
"coverage": "nyc npm test"
"coverage": "nyc npm test",
"lerna-publish": "npm publish"
},
"repository": {
"type": "git",
Expand Down
3 changes: 2 additions & 1 deletion src/angular/projects/spark-core-angular/package.json
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "ng lint spark-core-angular",
"test": "ng test spark-core-angular --watch=false",
"build": "ng build spark-core-angular"
"build": "ng build spark-core-angular",
"lerna-publish": "cd ../../dist/spark-core-angular && npm publish"
},
"peerDependencies": {
"@angular/animations": "^6.1.4",
Expand Down
3 changes: 2 additions & 1 deletion src/angular/projects/spark-extras-angular-award/package.json
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "ng lint spark-extras-angular-award",
"test": "ng test spark-extras-angular-award --watch=false",
"build": "ng build spark-extras-angular-award"
"build": "ng build spark-extras-angular-award",
"lerna-publish": "cd ../../dist/spark-extras-angular-award && npm publish"
},
"peerDependencies": {
"@angular/animations": "^6.1.4",
Expand Down
3 changes: 2 additions & 1 deletion src/angular/projects/spark-extras-angular-card/package.json
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "ng lint spark-extras-angular-card",
"test": "ng test spark-extras-angular-card --watch=false",
"build": "ng build spark-extras-angular-card"
"build": "ng build spark-extras-angular-card",
"lerna-publish": "cd ../../dist/spark-extras-angular-card && npm publish"
},
"peerDependencies": {
"@angular/animations": "^6.1.4",
Expand Down
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "ng lint spark-extras-angular-dictionary",
"test": "ng test spark-extras-angular-dictionary --watch=false",
"build": "ng build spark-extras-angular-dictionary"
"build": "ng build spark-extras-angular-dictionary",
"lerna-publish": "cd ../../dist/spark-extras-angular-dictionary && npm publish"
},
"peerDependencies": {
"@angular/animations": "^6.1.4",
Expand Down
Expand Up @@ -5,7 +5,8 @@
"scripts": {
"lint": "ng lint spark-extras-angular-highlight-board",
"test": "ng test spark-extras-angular-highlight-board --watch=false",
"build": "ng build spark-extras-angular-highlight-board"
"build": "ng build spark-extras-angular-highlight-board",
"lerna-publish": "cd ../../dist/spark-extras-angular-highlight-board && npm publish"
},
"peerDependencies": {
"@angular/animations": "^6.1.4",
Expand Down

0 comments on commit 7e70091

Please sign in to comment.