From 8ea1bd90c296181245eab0de8ff8e931da8df9cf Mon Sep 17 00:00:00 2001 From: Jon Rohan Date: Thu, 28 Jun 2018 16:20:51 -0700 Subject: [PATCH] Adding notify script to the rest of the modules --- modules/primer-avatars/package.json | 4 +++- modules/primer-base/package.json | 4 +++- modules/primer-blankslate/package.json | 4 +++- modules/primer-box/package.json | 4 +++- modules/primer-branch-name/package.json | 4 +++- modules/primer-breadcrumb/package.json | 4 +++- modules/primer-buttons/package.json | 4 +++- modules/primer-core/package.json | 4 +++- modules/primer-forms/package.json | 4 +++- modules/primer-labels/package.json | 4 +++- modules/primer-layout/package.json | 4 +++- modules/primer-markdown/package.json | 4 +++- modules/primer-marketing-buttons/package.json | 4 +++- modules/primer-marketing-support/package.json | 4 +++- modules/primer-marketing-type/package.json | 4 +++- modules/primer-marketing-utilities/package.json | 4 +++- modules/primer-marketing/package.json | 4 +++- modules/primer-navigation/package.json | 4 +++- modules/primer-page-headers/package.json | 4 +++- modules/primer-page-sections/package.json | 4 +++- modules/primer-pagination/package.json | 4 +++- modules/primer-popover/package.json | 4 +++- modules/primer-product/package.json | 4 +++- modules/primer-subhead/package.json | 4 +++- modules/primer-support/package.json | 4 +++- modules/primer-table-object/package.json | 4 +++- modules/primer-tables/package.json | 4 +++- modules/primer-tooltips/package.json | 4 +++- modules/primer-truncate/package.json | 4 +++- modules/primer-utilities/package.json | 4 +++- tools/generator-primer-module/app/templates/package.json | 4 +++- tools/primer-module-build/package.json | 4 +++- tools/stylelint-config-primer/package.json | 4 +++- tools/stylelint-selector-no-utility/package.json | 4 +++- 34 files changed, 102 insertions(+), 34 deletions(-) diff --git a/modules/primer-avatars/package.json b/modules/primer-avatars/package.json index c7a0cad3..72206a85 100644 --- a/modules/primer-avatars/package.json +++ b/modules/primer-avatars/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-base/package.json b/modules/primer-base/package.json index 8d5e5f48..93d88229 100644 --- a/modules/primer-base/package.json +++ b/modules/primer-base/package.json @@ -29,7 +29,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-blankslate/package.json b/modules/primer-blankslate/package.json index bd7e79da..81c0fdb8 100644 --- a/modules/primer-blankslate/package.json +++ b/modules/primer-blankslate/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-box/package.json b/modules/primer-box/package.json index e99a1af2..5e3a7e64 100644 --- a/modules/primer-box/package.json +++ b/modules/primer-box/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-branch-name/package.json b/modules/primer-branch-name/package.json index e13739ff..14a6282f 100644 --- a/modules/primer-branch-name/package.json +++ b/modules/primer-branch-name/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-breadcrumb/package.json b/modules/primer-breadcrumb/package.json index 53543337..81c9af64 100644 --- a/modules/primer-breadcrumb/package.json +++ b/modules/primer-breadcrumb/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-buttons/package.json b/modules/primer-buttons/package.json index e649fbf3..8d094eab 100644 --- a/modules/primer-buttons/package.json +++ b/modules/primer-buttons/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-core/package.json b/modules/primer-core/package.json index 03dcebac..0d41ed35 100644 --- a/modules/primer-core/package.json +++ b/modules/primer-core/package.json @@ -24,7 +24,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "test": "npm run build", - "lint": "../../script/lint-scss" + "lint": "../../script/lint-scss", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-base": "1.7.2", diff --git a/modules/primer-forms/package.json b/modules/primer-forms/package.json index e96f393a..b361c03a 100644 --- a/modules/primer-forms/package.json +++ b/modules/primer-forms/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-labels/package.json b/modules/primer-labels/package.json index 0b806080..04c60038 100644 --- a/modules/primer-labels/package.json +++ b/modules/primer-labels/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-layout/package.json b/modules/primer-layout/package.json index 4fa13956..ea0e46fe 100644 --- a/modules/primer-layout/package.json +++ b/modules/primer-layout/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-markdown/package.json b/modules/primer-markdown/package.json index aeda7761..0ba3ec84 100644 --- a/modules/primer-markdown/package.json +++ b/modules/primer-markdown/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-marketing-buttons/package.json b/modules/primer-marketing-buttons/package.json index 8f773ecb..51563e7b 100644 --- a/modules/primer-marketing-buttons/package.json +++ b/modules/primer-marketing-buttons/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-marketing-support/package.json b/modules/primer-marketing-support/package.json index 82478e9b..f506edf9 100644 --- a/modules/primer-marketing-support/package.json +++ b/modules/primer-marketing-support/package.json @@ -22,7 +22,9 @@ "scripts": { "lint": "../../script/lint-scss", "test": "npm run lint", - "build": "../../script/npm-run primer-module-build index.scss" + "build": "../../script/npm-run primer-module-build index.scss", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "keywords": [ "primer", diff --git a/modules/primer-marketing-type/package.json b/modules/primer-marketing-type/package.json index e2bb7887..a79f39f2 100644 --- a/modules/primer-marketing-type/package.json +++ b/modules/primer-marketing-type/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-support": "1.5.2", diff --git a/modules/primer-marketing-utilities/package.json b/modules/primer-marketing-utilities/package.json index 656f0c08..0c2a2ba0 100644 --- a/modules/primer-marketing-utilities/package.json +++ b/modules/primer-marketing-utilities/package.json @@ -30,7 +30,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-support": "1.5.2", diff --git a/modules/primer-marketing/package.json b/modules/primer-marketing/package.json index 6d795013..e319073a 100644 --- a/modules/primer-marketing/package.json +++ b/modules/primer-marketing/package.json @@ -24,7 +24,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "test": "npm run build", - "lint": "../../script/lint-scss" + "lint": "../../script/lint-scss", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-buttons": "1.0.6", diff --git a/modules/primer-navigation/package.json b/modules/primer-navigation/package.json index 2f570b4f..2b35be20 100644 --- a/modules/primer-navigation/package.json +++ b/modules/primer-navigation/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-page-headers/package.json b/modules/primer-page-headers/package.json index 1a67f087..03412556 100644 --- a/modules/primer-page-headers/package.json +++ b/modules/primer-page-headers/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-support": "1.5.2", diff --git a/modules/primer-page-sections/package.json b/modules/primer-page-sections/package.json index c97eed48..af11fc2b 100644 --- a/modules/primer-page-sections/package.json +++ b/modules/primer-page-sections/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-support": "1.5.2", diff --git a/modules/primer-pagination/package.json b/modules/primer-pagination/package.json index cf52c73f..e03cc6f4 100644 --- a/modules/primer-pagination/package.json +++ b/modules/primer-pagination/package.json @@ -21,7 +21,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-popover/package.json b/modules/primer-popover/package.json index c3dca462..336417a9 100644 --- a/modules/primer-popover/package.json +++ b/modules/primer-popover/package.json @@ -21,7 +21,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-product/package.json b/modules/primer-product/package.json index d01e2aa3..7126abe0 100644 --- a/modules/primer-product/package.json +++ b/modules/primer-product/package.json @@ -24,7 +24,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "test": "npm run build", - "lint": "../../script/lint-scss" + "lint": "../../script/lint-scss", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-alerts": "1.5.7", diff --git a/modules/primer-subhead/package.json b/modules/primer-subhead/package.json index 8de26559..5c6a5e56 100644 --- a/modules/primer-subhead/package.json +++ b/modules/primer-subhead/package.json @@ -21,7 +21,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-support/package.json b/modules/primer-support/package.json index 9e961d46..3e5950be 100644 --- a/modules/primer-support/package.json +++ b/modules/primer-support/package.json @@ -23,7 +23,9 @@ "scripts": { "lint": "../../script/lint-scss", "test": "npm run lint", - "build": "../../script/npm-run primer-module-build index.scss" + "build": "../../script/npm-run primer-module-build index.scss", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "keywords": [ "primer", diff --git a/modules/primer-table-object/package.json b/modules/primer-table-object/package.json index 511ac34a..82818e20 100644 --- a/modules/primer-table-object/package.json +++ b/modules/primer-table-object/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-tables/package.json b/modules/primer-tables/package.json index f83194c8..2f7bcb6f 100644 --- a/modules/primer-tables/package.json +++ b/modules/primer-tables/package.json @@ -25,7 +25,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-marketing-support": "1.5.2", diff --git a/modules/primer-tooltips/package.json b/modules/primer-tooltips/package.json index 5c614461..e208d627 100644 --- a/modules/primer-tooltips/package.json +++ b/modules/primer-tooltips/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-truncate/package.json b/modules/primer-truncate/package.json index df70d308..d0872168 100644 --- a/modules/primer-truncate/package.json +++ b/modules/primer-truncate/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/modules/primer-utilities/package.json b/modules/primer-utilities/package.json index cd59d10d..6ce8a630 100644 --- a/modules/primer-utilities/package.json +++ b/modules/primer-utilities/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint" + "test": "../../script/npm-run-all build lint", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "4.5.4" diff --git a/tools/generator-primer-module/app/templates/package.json b/tools/generator-primer-module/app/templates/package.json index 56743830..2f404491 100644 --- a/tools/generator-primer-module/app/templates/package.json +++ b/tools/generator-primer-module/app/templates/package.json @@ -26,7 +26,9 @@ "build": "../../script/npm-run primer-module-build index.scss", "prepare": "npm run build", "lint": "../../script/lint-scss", - "test": "../../script/npm-run-all build lint test-docs" + "test": "../../script/npm-run-all build lint test-docs", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "dependencies": { "primer-support": "<%= dependencies['primer-support'].version %>" diff --git a/tools/primer-module-build/package.json b/tools/primer-module-build/package.json index a0dac2cb..93cb5220 100644 --- a/tools/primer-module-build/package.json +++ b/tools/primer-module-build/package.json @@ -24,7 +24,9 @@ "scripts": { "ava": "../../script/npm-run ava --verbose \"tests/**/*.js\"", "lint": "../../script/npm-run eslint lib/**/*.js *.js tests/**/*.js", - "test": "../../script/npm-run-all lint ava" + "test": "../../script/npm-run-all lint ava", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "keywords": [ "primer", diff --git a/tools/stylelint-config-primer/package.json b/tools/stylelint-config-primer/package.json index 09cc5813..39fcf3cb 100644 --- a/tools/stylelint-config-primer/package.json +++ b/tools/stylelint-config-primer/package.json @@ -12,7 +12,9 @@ "scripts": { "ava": "ava --verbose \"tests/**/*.js\"", "lint": "eslint **/*.js", - "test": "../../script/npm-run-all lint ava" + "test": "../../script/npm-run-all lint ava", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "repository": "https://github.com/primer/primer/tree/master/tools/stylelint-config-primer", "dependencies": { diff --git a/tools/stylelint-selector-no-utility/package.json b/tools/stylelint-selector-no-utility/package.json index 41f5a94a..ebd547f5 100644 --- a/tools/stylelint-selector-no-utility/package.json +++ b/tools/stylelint-selector-no-utility/package.json @@ -6,7 +6,9 @@ "scripts": { "lint": "eslint .", "tape": "node test/index.js", - "test": "../../script/npm-run-all lint tape" + "test": "../../script/npm-run-all lint tape", + "prepublishOnly": "../../script/notify pending", + "publish": "../../script/notify success" }, "keywords": [ "stylelint-rule",