From 1d37217709e6ebb7507ed04c40acb8baaac68348 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 11:38:02 -0800 Subject: [PATCH 01/13] chore: npm uninstall eslint-plugin-prettier lerna-changelog --- lib/extract-packages-json.js | 44 --- package-lock.json | 502 +++-------------------------------- package.json | 2 - 3 files changed, 30 insertions(+), 518 deletions(-) delete mode 100644 lib/extract-packages-json.js diff --git a/lib/extract-packages-json.js b/lib/extract-packages-json.js deleted file mode 100644 index 77b148c3..00000000 --- a/lib/extract-packages-json.js +++ /dev/null @@ -1,44 +0,0 @@ -module.exports = {extractPackages, writePackagesJSON} - -function extractPackages(options = {}) { - return (files, metal, done) => { - const packages = {} - for (const key of Object.keys(files)) { - if (key.endsWith('package.json')) { - const file = files[key] - const pkg = JSON.parse(String(file.contents)) - const plucked = pluck(pkg, [ - 'name', - 'description', - 'version' - ]) - plucked.dependencies = pkg.dependencies - ? Object.keys(pkg.dependencies) - : [] - packages[pkg.name] = plucked - } - } - const meta = metal.metadata() - Object.assign(meta, {packages}) - done() - } -} - -function writePackagesJSON(options = {}) { - const {path = 'packages.json'} = options - return (files, metal, done) => { - const {packages} = metal.metadata() - files[path] = { - contents: JSON.stringify(packages, null, 2) - } - done() - } -} - -function pluck(obj, keys) { - const plucked = {} - for (const key of keys) { - plucked[key] = obj[key] - } - return plucked -} diff --git a/package-lock.json b/package-lock.json index d8efcff9..22eb6929 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2753,24 +2753,6 @@ "integrity": "sha512-z55ocwKBRLryBs394Sm3ushTtBeg6VAeuku7utSoSnsJKvKcnXFIyC6vh27n3rXyxSgkJBBCAvyOn7gSUcTYjg==", "dev": true }, - "agent-base": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.2.1.tgz", - "integrity": "sha512-JVwXMr9nHYTUXsBFKUqhJwvlcYU/blreOEUkhNR2eXZIvwd+c+o5V4MgDPKWnMS/56awN3TRzIP+KoPn+roQtg==", - "dev": true, - "requires": { - "es6-promisify": "^5.0.0" - } - }, - "agentkeepalive": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-3.5.2.tgz", - "integrity": "sha512-e0L/HNe6qkQ7H19kTlRRqUibEAwDK5AFk6y3PtMsuut2VAH6+Q4xZml1tNDJD7kSAyqmbG/K08K5WEJYtUrSlQ==", - "dev": true, - "requires": { - "humanize-ms": "^1.2.1" - } - }, "airbnb-js-shims": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/airbnb-js-shims/-/airbnb-js-shims-1.7.1.tgz", @@ -8808,12 +8790,6 @@ "integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=", "dev": true }, - "err-code": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/err-code/-/err-code-1.1.2.tgz", - "integrity": "sha1-BuARbTAo9q70gGhJ6w6mp0iuaWA=", - "dev": true - }, "errno": { "version": "0.1.7", "resolved": "https://registry.npmjs.org/errno/-/errno-0.1.7.tgz", @@ -8920,23 +8896,6 @@ "event-emitter": "~0.3.5" } }, - "es6-promisify": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", - "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", - "dev": true, - "requires": { - "es6-promise": "^4.0.3" - }, - "dependencies": { - "es6-promise": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.5.tgz", - "integrity": "sha512-n6wvpdE43VFtJq+lUDYDBFUwV8TZbuGXLV4D6wKafg13ldznKsyEvatubnmUe31zcvelSzOHF+XbaT+Bl9ObDg==", - "dev": true - } - } - }, "es6-set": { "version": "0.1.5", "resolved": "https://registry.npmjs.org/es6-set/-/es6-set-0.1.5.tgz", @@ -10514,7 +10473,8 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -10538,13 +10498,15 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -10561,19 +10523,22 @@ "version": "1.1.0", "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -10704,7 +10669,8 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -10718,6 +10684,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -10734,6 +10701,7 @@ "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -10742,13 +10710,15 @@ "version": "0.0.8", "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.3.5.tgz", "integrity": "sha512-Gi1W4k059gyRbyVUZQ4mEqLm0YIUiGYfvxhF6SIlk3ui1WVxMTGfGdQ2SInh3PDrRTVvPKgULkpJtT4RH10+VA==", "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -10769,6 +10739,7 @@ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -10857,7 +10828,8 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -10871,6 +10843,7 @@ "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -10966,7 +10939,8 @@ "version": "5.1.2", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -11008,6 +10982,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -11029,6 +11004,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -11077,13 +11053,15 @@ "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.3.tgz", "integrity": "sha512-S+Zk8DEWE6oKpV+vI3qWkaK+jSbIK86pCwe2IF/xwIpQ8jEuxpw9NyaGjmp9+BoJv5FV2piqCDcoCtStppiq2A==", - "dev": true + "dev": true, + "optional": true } } }, @@ -12604,12 +12582,6 @@ } } }, - "http-cache-semantics": { - "version": "3.8.1", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz", - "integrity": "sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w==", - "dev": true - }, "http-equiv-refresh": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/http-equiv-refresh/-/http-equiv-refresh-1.0.0.tgz", @@ -12634,27 +12606,6 @@ "integrity": "sha512-cZdEF7r4gfRIq7ezX9J0T+kQmJNOub71dWbgAXVHDct80TKP4MCETtZQ31xyv38UwgzkWPYF/Xc0ge55dW9Z9w==", "dev": true }, - "http-proxy-agent": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-2.1.0.tgz", - "integrity": "sha512-qwHbBLV7WviBl0rQsOzH6o5lwyOIvwp/BdFnvVxXORldu5TmjFfjzBcWUWS5kWAZhmv+JtiDhSuQCp4sBfbIgg==", - "dev": true, - "requires": { - "agent-base": "4", - "debug": "3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.1.0.tgz", - "integrity": "sha512-OX8XqP7/1a9cqkxYw2yXss15f26NKWBpDXQd0/uK/KPqdQhxbPa994hnzjcE2VqQpDslf55723cKPUOGSmMY3g==", - "dev": true, - "requires": { - "ms": "2.0.0" - } - } - } - }, "http-signature": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", @@ -12678,33 +12629,6 @@ "integrity": "sha1-7AbBDgo0wPL68Zn3/X/Hj//QPHM=", "dev": true }, - "https-proxy-agent": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz", - "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==", - "dev": true, - "requires": { - "agent-base": "^4.1.0", - "debug": "^3.1.0" - }, - "dependencies": { - "debug": { - "version": "3.2.6", - "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", - "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", - "dev": true, - "requires": { - "ms": "^2.1.1" - } - }, - "ms": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", - "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", - "dev": true - } - } - }, "hullabaloo-config-manager": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/hullabaloo-config-manager/-/hullabaloo-config-manager-1.1.1.tgz", @@ -12733,15 +12657,6 @@ "integrity": "sha512-9em7CXFa0my1DF3aIQg0sTRyAX2znEOMHolUvu9nSTUjS+bRD32y0MH+Hnm3Xu0cSWrxpYb2isXSfH9pF2LP8g==", "dev": true }, - "humanize-ms": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", - "integrity": "sha1-xG4xWaKT9riW2ikxbYtv6Lt5u+0=", - "dev": true, - "requires": { - "ms": "^2.0.0" - } - }, "humanize-url": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/humanize-url/-/humanize-url-1.0.1.tgz", @@ -13000,12 +12915,6 @@ "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", "dev": true }, - "ip": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/ip/-/ip-1.1.5.tgz", - "integrity": "sha1-vd7XARQpCCjAoDnnLvJfWq7ENUo=", - "dev": true - }, "ipaddr.js": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-1.8.0.tgz", @@ -15182,243 +15091,6 @@ "integrity": "sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==", "dev": true }, - "lerna-changelog": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/lerna-changelog/-/lerna-changelog-0.7.0.tgz", - "integrity": "sha512-ALEBSyDaXnaCnxBk/8/0nnfxMU0l31OgHfd3s6vdHGQUE4v/0PY2zLD3DO70PXoSVaZpSmWq7z5R0ai6ae9jTg==", - "dev": true, - "requires": { - "chalk": "^1.1.3", - "execa": "^0.6.3", - "fs-extra": "^2.0.0", - "make-fetch-happen": "^2.4.13", - "normalize-git-url": "^3.0.2", - "p-map": "^1.1.1", - "progress": "^1.1.8", - "string.prototype.padend": "^3.0.0", - "yargs": "^6.6.0" - }, - "dependencies": { - "ansi-styles": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", - "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", - "dev": true - }, - "camelcase": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-3.0.0.tgz", - "integrity": "sha1-MvxLn82vhF/N9+c7uXysImHwqwo=", - "dev": true - }, - "chalk": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", - "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", - "dev": true, - "requires": { - "ansi-styles": "^2.2.1", - "escape-string-regexp": "^1.0.2", - "has-ansi": "^2.0.0", - "strip-ansi": "^3.0.0", - "supports-color": "^2.0.0" - } - }, - "cliui": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-3.2.0.tgz", - "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", - "dev": true, - "requires": { - "string-width": "^1.0.1", - "strip-ansi": "^3.0.1", - "wrap-ansi": "^2.0.0" - } - }, - "execa": { - "version": "0.6.3", - "resolved": "https://registry.npmjs.org/execa/-/execa-0.6.3.tgz", - "integrity": "sha1-V7aaWU8IF1nGnlNw8NF7nLEWWP4=", - "dev": true, - "requires": { - "cross-spawn": "^5.0.1", - "get-stream": "^3.0.0", - "is-stream": "^1.1.0", - "npm-run-path": "^2.0.0", - "p-finally": "^1.0.0", - "signal-exit": "^3.0.0", - "strip-eof": "^1.0.0" - } - }, - "find-up": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-1.1.2.tgz", - "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", - "dev": true, - "requires": { - "path-exists": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "fs-extra": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-2.1.2.tgz", - "integrity": "sha1-BGxwFjzvmq1GsOSn+kZ/si1x3jU=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "jsonfile": "^2.1.0" - } - }, - "jsonfile": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", - "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.6" - } - }, - "load-json-file": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", - "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "parse-json": "^2.2.0", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0", - "strip-bom": "^2.0.0" - } - }, - "os-locale": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", - "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", - "dev": true, - "requires": { - "lcid": "^1.0.0" - } - }, - "parse-json": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", - "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", - "dev": true, - "requires": { - "error-ex": "^1.2.0" - } - }, - "path-exists": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", - "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", - "dev": true, - "requires": { - "pinkie-promise": "^2.0.0" - } - }, - "path-type": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", - "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", - "dev": true, - "requires": { - "graceful-fs": "^4.1.2", - "pify": "^2.0.0", - "pinkie-promise": "^2.0.0" - } - }, - "pinkie": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", - "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", - "dev": true - }, - "pinkie-promise": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", - "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", - "dev": true, - "requires": { - "pinkie": "^2.0.0" - } - }, - "read-pkg": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", - "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", - "dev": true, - "requires": { - "load-json-file": "^1.0.0", - "normalize-package-data": "^2.3.2", - "path-type": "^1.0.0" - } - }, - "read-pkg-up": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", - "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", - "dev": true, - "requires": { - "find-up": "^1.0.0", - "read-pkg": "^1.0.0" - } - }, - "strip-bom": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", - "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", - "dev": true, - "requires": { - "is-utf8": "^0.2.0" - } - }, - "supports-color": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", - "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", - "dev": true - }, - "which-module": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", - "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", - "dev": true - }, - "yargs": { - "version": "6.6.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-6.6.0.tgz", - "integrity": "sha1-eC7CHvQDNF+DCoCMo9UTr1YGUgg=", - "dev": true, - "requires": { - "camelcase": "^3.0.0", - "cliui": "^3.2.0", - "decamelize": "^1.1.1", - "get-caller-file": "^1.0.1", - "os-locale": "^1.4.0", - "read-pkg-up": "^1.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^1.0.1", - "set-blocking": "^2.0.0", - "string-width": "^1.0.2", - "which-module": "^1.0.0", - "y18n": "^3.2.1", - "yargs-parser": "^4.2.0" - } - }, - "yargs-parser": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-4.2.1.tgz", - "integrity": "sha1-KczqwNxPA8bIe0qfIX3RjJ90hxw=", - "dev": true, - "requires": { - "camelcase": "^3.0.0" - } - } - } - }, "leven": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/leven/-/leven-2.1.0.tgz", @@ -15860,55 +15532,6 @@ "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", "dev": true }, - "make-fetch-happen": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-2.6.0.tgz", - "integrity": "sha512-FFq0lNI0ax+n9IWzWpH8A4JdgYiAp2DDYIZ3rsaav8JDe8I+72CzK6PQW/oom15YDZpV5bYW/9INd6nIJ2ZfZw==", - "dev": true, - "requires": { - "agentkeepalive": "^3.3.0", - "cacache": "^10.0.0", - "http-cache-semantics": "^3.8.0", - "http-proxy-agent": "^2.0.0", - "https-proxy-agent": "^2.1.0", - "lru-cache": "^4.1.1", - "mississippi": "^1.2.0", - "node-fetch-npm": "^2.0.2", - "promise-retry": "^1.1.1", - "socks-proxy-agent": "^3.0.1", - "ssri": "^5.0.0" - }, - "dependencies": { - "mississippi": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/mississippi/-/mississippi-1.3.1.tgz", - "integrity": "sha512-/6rB8YXFbAtsUVRphIRQqB0+9c7VaPHCjVtvto+JqwVxgz8Zz+I+f68/JgQ+Pb4VlZb2svA9OtdXnHHsZz7ltg==", - "dev": true, - "requires": { - "concat-stream": "^1.5.0", - "duplexify": "^3.4.2", - "end-of-stream": "^1.1.0", - "flush-write-stream": "^1.0.0", - "from2": "^2.1.0", - "parallel-transform": "^1.1.0", - "pump": "^1.0.0", - "pumpify": "^1.3.3", - "stream-each": "^1.1.0", - "through2": "^2.0.0" - } - }, - "pump": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/pump/-/pump-1.0.3.tgz", - "integrity": "sha512-8k0JupWme55+9tCVE+FS5ULT3K6AbgqrGa58lTT49RpyfwwcGedHqaC5LlQNdEAumn/wFsu6aPwkuPMioy8kqw==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - } - } - }, "makeerror": { "version": "1.0.11", "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.11.tgz", @@ -17474,17 +17097,6 @@ "is-stream": "^1.0.1" } }, - "node-fetch-npm": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/node-fetch-npm/-/node-fetch-npm-2.0.2.tgz", - "integrity": "sha512-nJIxm1QmAj4v3nfCvEeCrYSoVwXyxLnaPBK5W1W5DGEJwjlKuC2VEUycGw5oxk+4zZahRrB84PUJJgEmhFTDFw==", - "dev": true, - "requires": { - "encoding": "^0.1.11", - "json-parse-better-errors": "^1.0.0", - "safe-buffer": "^5.1.1" - } - }, "node-gyp": { "version": "3.8.0", "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-3.8.0.tgz", @@ -17759,12 +17371,6 @@ } } }, - "normalize-git-url": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/normalize-git-url/-/normalize-git-url-3.0.2.tgz", - "integrity": "sha1-jl8Uvgva7bc+ByADEKpBbCc1D8Q=", - "dev": true - }, "normalize-package-data": { "version": "2.4.2", "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.4.2.tgz", @@ -21083,12 +20689,6 @@ "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true }, - "progress": { - "version": "1.1.8", - "resolved": "https://registry.npmjs.org/progress/-/progress-1.1.8.tgz", - "integrity": "sha1-4mDHj2Fhzdmw5WzD4Khd4Xx6V74=", - "dev": true - }, "promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", @@ -21104,16 +20704,6 @@ "integrity": "sha1-mEcocL8igTL8vdhoEputEsPAKeM=", "dev": true }, - "promise-retry": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-1.1.1.tgz", - "integrity": "sha1-ZznpaOMFHaIM5kl/srUPaRHfPW0=", - "dev": true, - "requires": { - "err-code": "^1.0.0", - "retry": "^0.10.0" - } - }, "promise.prototype.finally": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/promise.prototype.finally/-/promise.prototype.finally-3.1.0.tgz", @@ -22747,12 +22337,6 @@ "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", "dev": true }, - "retry": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/retry/-/retry-0.10.1.tgz", - "integrity": "sha1-52OI0heZLCUnUCQdPTlW/tmNj/Q=", - "dev": true - }, "rgb-regex": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/rgb-regex/-/rgb-regex-1.0.1.tgz", @@ -23515,12 +23099,6 @@ "integrity": "sha1-VusCfWW00tzmyy4tMsTUr8nh1wc=", "dev": true }, - "smart-buffer": { - "version": "1.1.15", - "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-1.1.15.tgz", - "integrity": "sha1-fxFLW2X6s+KjWqd1uxLw0cZJvxY=", - "dev": true - }, "snake-case": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/snake-case/-/snake-case-2.1.0.tgz", @@ -23652,26 +23230,6 @@ "url-parse": "^1.1.8" } }, - "socks": { - "version": "1.1.10", - "resolved": "https://registry.npmjs.org/socks/-/socks-1.1.10.tgz", - "integrity": "sha1-W4t/x8jzQcU+0FbpKbe/Tei6e1o=", - "dev": true, - "requires": { - "ip": "^1.1.4", - "smart-buffer": "^1.0.13" - } - }, - "socks-proxy-agent": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-3.0.1.tgz", - "integrity": "sha512-ZwEDymm204mTzvdqyUqOdovVr2YRd2NYskrYrF2LXyZ9qDiMAoFESGK8CRphiO7rtbo2Y757k2Nia3x2hGtalA==", - "dev": true, - "requires": { - "agent-base": "^4.1.0", - "socks": "^1.1.10" - } - }, "sort-keys": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", diff --git a/package.json b/package.json index d0124b94..5d7a7e56 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "details-dialog-element": "^1.4.0", "eslint": "4.19.1", "eslint-plugin-github": "1.0.0", - "eslint-plugin-prettier": "^3.0.0", "execa": "^0.10.0", "fs-extra": "^4.0.2", "fx": "11.0.1", @@ -88,7 +87,6 @@ "isomorphic-fetch": "^2.2.1", "jest": "24.0.0", "klaw": "^3.0.0", - "lerna-changelog": "^0.7.0", "loader-utils": "^1.1.0", "mdx-constant": "^0.1.0", "mdx-live": "2.0.0-alpha.2", From 0e4e8c3ee5c115de5127b1398e094fa83a8ca21c Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 11:38:23 -0800 Subject: [PATCH 02/13] lint: add prettier.config.js --- prettier.config.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 prettier.config.js diff --git a/prettier.config.js b/prettier.config.js new file mode 100644 index 00000000..7d9937db --- /dev/null +++ b/prettier.config.js @@ -0,0 +1 @@ +module.exports = require('eslint-plugin-github/prettier.config') From 0524e78686101b67746661aa5784e268a2b23c52 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 11:38:57 -0800 Subject: [PATCH 03/13] chore: remove refs to extract-packages-json --- lib/sync.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/sync.js b/lib/sync.js index 283405a6..31aefd9b 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -5,7 +5,6 @@ const watch = require('metalsmith-watch') const {repository} = require('../package.json') const addPackageMeta = require('./add-package-meta') -const {extractPackages, writePackagesJSON} = require('./extract-packages-json') const addSource = require('./add-source') const filterBy = require('./filter-by') const parseDocComments = require('./parse-doc-comments') @@ -32,14 +31,12 @@ module.exports = function sync(options = {}) { .ignore(path => path.includes('node_modules')) // only match files that look like docs .use(filter(['**/*.md'])) - .use(extractPackages()) // convert ... blocks into frontmatter .use(parseDocComments({log})) // parse frontmatter into "data" key of each file .use(frontmatter(metaOptions)) // only match files that have a "path" key in their frontmatter .use(filterBy(file => file[ns].path)) - .use(writePackagesJSON({path: 'packages.json'})) // write the source frontmatter key to the relative source path .use( addSource({ @@ -56,7 +53,7 @@ module.exports = function sync(options = {}) { }) ) // rename files with their "path" frontmatter key - .use(rename(file => file[ns] ? `${file[ns].path}.md` : true), {log}) + .use(rename(file => (file[ns] ? `${file[ns].path}.md` : true)), {log}) .use((_files, metal, done) => { files = _files done() From 4389295f0285843161134f79564a47c37dfd2081 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:54:47 -0800 Subject: [PATCH 04/13] lint: lint JS files --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5d7a7e56..6589e359 100644 --- a/package.json +++ b/package.json @@ -23,13 +23,13 @@ "build-storybook": "build-storybook -o build", "check-links": "script/check-links http://localhost:3000/css -v", "lint": "stylelint --quiet --syntax scss src/**/*.scss", + "lint-js": "eslint lib docs", "now-build": "next build", "now-start": "next start", - "postlint": "echo 'TODO: eslint docs pages'", + "postlint": "npm run lint-js", "postpublish": "script/postpublish", "prepare": "npm run dist", "prepublishOnly": "script/prepublish", - "postpublish": "script/postpublish", "publish-storybook": "npm run storybook && gh-pages -d build -b gh-pages -r https://github.com/primer/storybook", "start": "next dev", "start-storybook": "start-storybook -p 8000 -c .storybook", From 10705d420cc91fa2f331fc6290850d76c414b147 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:55:03 -0800 Subject: [PATCH 05/13] chore: bump package-lock --- package-lock.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/package-lock.json b/package-lock.json index 22eb6929..aad77607 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9126,9 +9126,9 @@ "dev": true }, "globals": { - "version": "11.10.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.10.0.tgz", - "integrity": "sha512-0GZF1RiPKU97IHUO5TORo9w1PwrH/NBPl+fS7oMLdaTRiYmYbwK4NWoZWrAdd0/abG9R2BU+OiwyQpTpE6pdfQ==", + "version": "11.11.0", + "resolved": "https://registry.npmjs.org/globals/-/globals-11.11.0.tgz", + "integrity": "sha512-WHq43gS+6ufNOEqlrDBxVEbb8ntfXrfAUU2ZOpCxrBdGKW3gyv8mCxAfIBD0DroPKGrJ2eSsXsLtY9MPntsyTw==", "dev": true }, "is-fullwidth-code-point": { @@ -9159,12 +9159,6 @@ "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", "dev": true }, - "progress": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", - "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", - "dev": true - }, "string-width": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", @@ -20689,6 +20683,12 @@ "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true }, + "progress": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/progress/-/progress-2.0.3.tgz", + "integrity": "sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA==", + "dev": true + }, "promise": { "version": "7.3.1", "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", From 7a36ebd47604198e4be78ec6a15eccee36eacb17 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:57:49 -0800 Subject: [PATCH 06/13] lint: add eslint configs --- .eslintrc.json | 13 +++++++++++++ docs/.eslintrc.json | 17 +++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 .eslintrc.json create mode 100644 docs/.eslintrc.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 00000000..9856a465 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,13 @@ +{ + "extends": [ + "plugin:github/es6", + "plugin:github/recommended" + ], + "env": { + "es6": true, + "node": true + }, + "parserOptions": { + "ecmaVersion": 2017 + } +} diff --git a/docs/.eslintrc.json b/docs/.eslintrc.json new file mode 100644 index 00000000..cb1a8800 --- /dev/null +++ b/docs/.eslintrc.json @@ -0,0 +1,17 @@ +{ + "extends": [ + "plugin:github/react", + "plugin:jsx-a11y/recommended" + ], + "rules": { + "import/no-namespace": 0, + "no-unused-vars": ["error", { + "ignoreRestSiblings": true + }] + }, + "settings": { + "react": { + "version": "detect" + } + } +} From fecf4508bfb7f8163b4dcabac905cf1f0f973b88 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:58:10 -0800 Subject: [PATCH 07/13] chore: lint lib/ --- lib/config.js | 18 +++++++++--------- lib/mdx-loader.js | 11 +++++------ lib/rehype-prism.js | 6 +++--- lib/rename.js | 2 +- 4 files changed, 18 insertions(+), 19 deletions(-) diff --git a/lib/config.js b/lib/config.js index fd4aa753..df110b5d 100644 --- a/lib/config.js +++ b/lib/config.js @@ -11,10 +11,13 @@ module.exports = (nextConfig = {}) => { assetPrefix, pageExtensions: ['js', 'jsx', 'md', 'mdx'], - publicRuntimeConfig: Object.assign({ - assetPrefix, - production: NODE_ENV === 'production' - }, nextConfig.publicRuntimeConfig), + publicRuntimeConfig: Object.assign( + { + assetPrefix, + production: NODE_ENV === 'production' + }, + nextConfig.publicRuntimeConfig + ), webpack(config, options) { if (!options.defaultLoaders) { @@ -23,7 +26,7 @@ module.exports = (nextConfig = {}) => { ) } - const {dev, isServer} = options + const {dev} = options // only attempt to sync locally and in CI if (dev && !configured) { @@ -37,10 +40,7 @@ module.exports = (nextConfig = {}) => { config.module.rules.push({ test: /\.mdx?$/, - use: [ - options.defaultLoaders.babel, - require.resolve('./mdx-loader') - ] + use: [options.defaultLoaders.babel, require.resolve('./mdx-loader')] }) configured = true diff --git a/lib/mdx-loader.js b/lib/mdx-loader.js index bb8335d6..8072d69f 100644 --- a/lib/mdx-loader.js +++ b/lib/mdx-loader.js @@ -24,9 +24,7 @@ module.exports = async function(source) { emoji, [textr, {plugins: [typographicBase]}] ], - hastPlugins: [ - rehypePrism - ], + hastPlugins: [rehypePrism], compilers: [mdxExportJSONByDefault('frontMatter', data)] }, getOptions(this), @@ -39,11 +37,12 @@ module.exports = async function(source) { return callback(err) } - let code = ` + return callback( + null, + ` import React from 'react' import {MDXTag} from '@mdx-js/tag' ${result} ` - - return callback(null, code) + ) } diff --git a/lib/rehype-prism.js b/lib/rehype-prism.js index 1cf431fc..4290825b 100644 --- a/lib/rehype-prism.js +++ b/lib/rehype-prism.js @@ -27,7 +27,7 @@ module.exports = options => { let result = node const source = nodeToString(node) try { - parent.properties.className = (parent.properties.className || []).concat('language-' + lang) + parent.properties.className = (parent.properties.className || []).concat(`language-${lang}`) result = refractor.highlight(source, lang) } catch (err) { if (/Unknown language/.test(err.message)) { @@ -52,8 +52,8 @@ function getLanguage(node, aliases) { for (const classListItem of className) { if (classListItem.slice(0, 9) === 'language-') { - let language = classListItem.slice(9).replace(/{.*/, '') - let alias = aliases[language] + const language = classListItem.slice(9).replace(/{.*/, '') + const alias = aliases[language] return alias || language } } diff --git a/lib/rename.js b/lib/rename.js index a9d697a8..603f7448 100644 --- a/lib/rename.js +++ b/lib/rename.js @@ -2,7 +2,7 @@ module.exports = function rename(fn, options = {}) { const {log = noop} = options return (files, metal, done) => { for (const [key, file] of Object.entries(files)) { - let dest = fn(file, key, files, metal) + const dest = fn(file, key, files, metal) if (dest === true) { log(`[rename] keep: ${key}`) } else if (dest && dest !== key) { From 7417bd55cef8a0e6108a57028c14db0f856c51c1 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:58:19 -0800 Subject: [PATCH 08/13] chore: lint docs/ --- docs/Frame.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/Frame.js b/docs/Frame.js index d0161236..03a583ad 100644 --- a/docs/Frame.js +++ b/docs/Frame.js @@ -4,8 +4,6 @@ import Measure from 'react-measure' import {BorderBox} from '@primer/components' import {assetPrefix} from './utils' -const DEFAULT_IFRAME_HEIGHT = 150 - export default class Frame extends React.Component { static defaultProps = { border: 0, @@ -57,7 +55,10 @@ export default class Frame extends React.Component { return ( (this.iframe = node)}> {this.doc - ? [ReactDOM.createPortal(this.getHead(), this.doc.head), ReactDOM.createPortal(this.getBody(children), this.doc.body)] + ? [ + ReactDOM.createPortal(this.getHead(), this.doc.head), + ReactDOM.createPortal(this.getBody(children), this.doc.body) + ] : null} ) From 46f55eeb78b115c8a734eed5fc25732a4c132044 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 13:59:04 -0800 Subject: [PATCH 09/13] lint: run npm w/--unsafe-perm for lifecycle scripts --- .github/main.workflow | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index 9c2b7880..b1635905 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -16,13 +16,13 @@ action "install" { action "lint" { needs = "install" uses = "actions/npm@v2.0.0" - args = "run lint" + args = ["--unsafe-perm", "run", "lint"] } action "test" { needs = "install" uses = "actions/npm@v2.0.0" - args = "test" + args = ["--unsafe-perm", "test"] } action "deploy" { From 3cdd10bbdb73d0607ec4cd5e8422dbbe95d0f48b Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 14:00:45 -0800 Subject: [PATCH 10/13] chore: tweak PR template --- .github/pull_request_template.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index d4a92514..feb4f79d 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -1,6 +1,8 @@ -- [ ] First, briefly describe your proposal in the title. +First, briefly describe your proposal in the title and delete this line. -- [ ] Fixes: # (type an issue number after the # if applicable) +If your proposal fixes any issues, please list them below, then delete this line: + +- Fixes: # (type an issue number after the # if applicable) Finally, tell us more about the change here, in the description. From d3d1ab06bbd19231d2d353bde3738c111d6f855e Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 14:21:30 -0800 Subject: [PATCH 11/13] chore: update CHANGELOG for 12.0.0 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a39f6ee6..b558b3ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# 12.0.0 + +:rotating_light: **Starting with version 12.0.0, the `primer` package is now known as `@primer/css`**. See [MIGRATING.md](https://github.com/primer/css/tree/master/MIGRATING.md) for more info. + +#### :boom: Breaking Change +* [#666](https://github.com/primer/css/pull/666) Reorganize into a single `@primer/css` package ([@shawnbot](https://github.com/shawnbot)) + # 11.0.0 #### :boom: Breaking Change From 3015227b8dd43edd6a4fb8b0f9a3ae4a85e79cc9 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 14:21:45 -0800 Subject: [PATCH 12/13] chore: npm version 12.0.0 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index aad77607..71bb7259 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@primer/css", - "version": "11.0.0", + "version": "12.0.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 6589e359..740c0c0a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@primer/css", - "version": "11.0.0", + "version": "12.0.0", "description": "Primer is the CSS framework that powers GitHub's front-end design. primer includes 23 packages that are grouped into 3 core meta-packages for easy install. Each package and meta-package is independently versioned and distributed via npm, so it's easy to include all or part of Primer within your own project.", "homepage": "http://primer.github.io/", "author": "GitHub, Inc.", From d3e7b7e803eee414c00bdf75a14cbf489eae0ea7 Mon Sep 17 00:00:00 2001 From: Shawn Allen Date: Mon, 11 Feb 2019 14:34:50 -0800 Subject: [PATCH 13/13] dist: bring back dist/*.js --- script/dist | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/dist b/script/dist index 1c0faabb..cfc06c21 100755 --- a/script/dist +++ b/script/dist @@ -21,7 +21,8 @@ for index in $indexes; do pushd $dir > /dev/null echo "[dist] $index -> $file" npx node-sass --include-path=$root index.scss > "$root/$file" - npx cssstats "$root/$file" > "$root/$outdir/$name.json" + npx cssstats "$root/$file" > "$root/$outdir/$name.stats.json" + echo "module.exports = {cssstats: require('./$name.stats.json')}" > "$root/$outdir/$name.js" popd > /dev/null done popd > /dev/null