diff --git a/lerna.json b/lerna.json index 13ef3c543c..3840f835b4 100644 --- a/lerna.json +++ b/lerna.json @@ -1,4 +1,4 @@ { - "packages": ["packages/**/*"], + "packages": ["packages/**/*", "src/angular/projects/**/*"], "version": "independent" } diff --git a/package.json b/package.json index 7e7ff588b5..db8309fa1f 100644 --- a/package.json +++ b/package.json @@ -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": [ diff --git a/packages/spark-core/package.json b/packages/spark-core/package.json index 8045981fe8..5021ddb1e3 100644 --- a/packages/spark-core/package.json +++ b/packages/spark-core/package.json @@ -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" diff --git a/packages/spark-extras/components/card/package.json b/packages/spark-extras/components/card/package.json index 1eeb7363f6..206ed256af 100644 --- a/packages/spark-extras/components/card/package.json +++ b/packages/spark-extras/components/card/package.json @@ -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" diff --git a/packages/spark-extras/components/dictionary/package.json b/packages/spark-extras/components/dictionary/package.json index 6a889b15f5..65f9c309ce 100644 --- a/packages/spark-extras/components/dictionary/package.json +++ b/packages/spark-extras/components/dictionary/package.json @@ -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" diff --git a/packages/spark-extras/components/highlight-board/package.json b/packages/spark-extras/components/highlight-board/package.json index 42a5f215a5..b5e065555f 100644 --- a/packages/spark-extras/components/highlight-board/package.json +++ b/packages/spark-extras/components/highlight-board/package.json @@ -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" diff --git a/packages/spark-extras/package.json b/packages/spark-extras/package.json index c5227286ad..2af4bb8ab8 100644 --- a/packages/spark-extras/package.json +++ b/packages/spark-extras/package.json @@ -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", diff --git a/src/angular/projects/spark-core-angular/package.json b/src/angular/projects/spark-core-angular/package.json index 4b0a31fb0e..57b5848b16 100644 --- a/src/angular/projects/spark-core-angular/package.json +++ b/src/angular/projects/spark-core-angular/package.json @@ -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", diff --git a/src/angular/projects/spark-extras-angular-award/package.json b/src/angular/projects/spark-extras-angular-award/package.json index ae156f41a6..3bcbf635a8 100644 --- a/src/angular/projects/spark-extras-angular-award/package.json +++ b/src/angular/projects/spark-extras-angular-award/package.json @@ -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", diff --git a/src/angular/projects/spark-extras-angular-card/package.json b/src/angular/projects/spark-extras-angular-card/package.json index 7d48276d04..9b44bd7eb1 100644 --- a/src/angular/projects/spark-extras-angular-card/package.json +++ b/src/angular/projects/spark-extras-angular-card/package.json @@ -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", diff --git a/src/angular/projects/spark-extras-angular-dictionary/package.json b/src/angular/projects/spark-extras-angular-dictionary/package.json index 1a392ca38b..ce9a243fb5 100644 --- a/src/angular/projects/spark-extras-angular-dictionary/package.json +++ b/src/angular/projects/spark-extras-angular-dictionary/package.json @@ -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", diff --git a/src/angular/projects/spark-extras-angular-highlight-board/package.json b/src/angular/projects/spark-extras-angular-highlight-board/package.json index 2b9ea57d98..05f539dc92 100644 --- a/src/angular/projects/spark-extras-angular-highlight-board/package.json +++ b/src/angular/projects/spark-extras-angular-highlight-board/package.json @@ -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",