diff --git a/dist/static/CNAME b/dist/static/CNAME new file mode 100644 index 0000000000..e9c9997a55 --- /dev/null +++ b/dist/static/CNAME @@ -0,0 +1 @@ +gamut.codecademy.com diff --git a/dist/static/robots.txt b/dist/static/robots.txt new file mode 100644 index 0000000000..eb0536286f --- /dev/null +++ b/dist/static/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/dist/static/storybook/index.html b/dist/static/storybook/index.html new file mode 100644 index 0000000000..a8130a85ae --- /dev/null +++ b/dist/static/storybook/index.html @@ -0,0 +1,23 @@ + + + + + + + + Styleguide | Codecademy + + + + + + + + + + diff --git a/package.json b/package.json index c74bf8639f..8b11bba5e8 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "micromatch": "^4.0.5", "mutationobserver-shim": "^0.3.3", "nx": "19.3.2", + "nx-cloud": "^19.1.0", "onchange": "^7.0.2", "prettier": "^2.6.2", "react-test-renderer": "18.3.1", @@ -115,11 +116,11 @@ "scripts": { "build": "nx run-many --target=build --all", "build-all": "yarn build", - "build-storybook": "nx run styleguide:build-storybook && lerna run copy-storybook", + "build-storybook": "nx run styleguide:build-storybook", "build:graph": "nx graph", "clean-builds": "nx run-many --target=clean --all", "clear-modules": "yarn clean-builds && lerna clean -y && rm -rf node_modules", - "deploy": "cp -r ./dist/static/* ./dist/storybook/styleguide && gh-pages -b gh-pages -d dist", + "deploy": "rm -rf ./dist/docs && mv ./dist/storybook/styleguide ./dist/docs && cp -r ./dist/static/* ./dist/docs && gh-pages -b gh-pages -d dist", "format": "yarn lint:fix && yarn prettier --write", "format:verify": "yarn prettier --check", "lint": "eslint --ignore-path .eslintignore \"./**/*.{mdx,js,ts,tsx,json}\" --max-warnings 0", diff --git a/packages/styleguide/package.json b/packages/styleguide/package.json index f3aaf615d1..27a99683b0 100644 --- a/packages/styleguide/package.json +++ b/packages/styleguide/package.json @@ -7,11 +7,5 @@ "publishConfig": { "access": "public" }, - "repository": "git@github.com:Codecademy/gamut.git", - "scripts": { - "build-storybook": "NODE_ENV=production build-storybook --quiet -c .storybook -o ./dist", - "copy-storybook": "rm -rf ../../dist/docs && cp -r ./dist ../../dist/docs", - "start": "yarn storybook", - "storybook": "start-storybook -p 6006 -c .storybook --ci --quiet" - } + "repository": "git@github.com:Codecademy/gamut.git" } diff --git a/yarn.lock b/yarn.lock index c9fcebbc58..2ac8370d14 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2151,6 +2151,13 @@ dependencies: "@nx/js" "19.3.2" +"@nrwl/nx-cloud@19.1.0": + version "19.1.0" + resolved "https://registry.npmjs.org/@nrwl/nx-cloud/-/nx-cloud-19.1.0.tgz#5338910b7cbc0d974f374e8d5ca4ef31ccdc16df" + integrity sha512-krngXVPfX0Zf6+zJDtcI59/Pt3JfcMPMZ9C/+/x6rvz4WGgyv1s0MI4crEUM0Lx5ZpS4QI0WNDCFVQSfGEBXUg== + dependencies: + nx-cloud "19.1.0" + "@nrwl/react@19.3.2": version "19.3.2" resolved "https://registry.npmjs.org/@nrwl/react/-/react-19.3.2.tgz#cea60fd83c068693762c42c4622bdd281835100c" @@ -6615,6 +6622,11 @@ dotenv@^16.4.4, dotenv@~16.4.5: resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f" integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg== +dotenv@~10.0.0: + version "10.0.0" + resolved "https://registry.npmjs.org/dotenv/-/dotenv-10.0.0.tgz#3d4227b8fb95f81096cdd2b66653fb2c7085ba81" + integrity sha512-rlBi9d8jpv9Sf1klPjNfFAuWDjKLwTIJJ/VxtoTwIR6hnZxcEOQCZg2oIL3MWBYw5GpUDKOEnND7LXTbIpQ03Q== + dotenv@~16.3.1: version "16.3.2" resolved "https://registry.npmjs.org/dotenv/-/dotenv-16.3.2.tgz#3cb611ce5a63002dbabf7c281bc331f69d28f03f" @@ -8659,6 +8671,11 @@ inherits@2.0.3: resolved "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== +ini@4.1.3: + version "4.1.3" + resolved "https://registry.npmjs.org/ini/-/ini-4.1.3.tgz#4c359675a6071a46985eb39b14e4a2c0ec98a795" + integrity sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg== + ini@^1.3.2, ini@^1.3.8: version "1.3.8" resolved "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" @@ -10833,7 +10850,7 @@ node-int64@^0.4.0: resolved "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" integrity sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw== -node-machine-id@1.1.12: +node-machine-id@1.1.12, node-machine-id@^1.1.12: version "1.1.12" resolved "https://registry.npmjs.org/node-machine-id/-/node-machine-id-1.1.12.tgz#37904eee1e59b320bb9c5d6c0a59f3b469cb6267" integrity sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ== @@ -11043,6 +11060,22 @@ nwsapi@^2.2.2: resolved "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.13.tgz#e56b4e98960e7a040e5474536587e599c4ff4655" integrity sha512-cTGB9ptp9dY9A5VbMSe7fQBcl/tt22Vcqdq8+eN93rblOuE0aCFu4aZ2vMwct/2t+lFnosm8RkQW1I0Omb1UtQ== +nx-cloud@19.1.0, nx-cloud@^19.1.0: + version "19.1.0" + resolved "https://registry.npmjs.org/nx-cloud/-/nx-cloud-19.1.0.tgz#3edb6eaad70f7ab09b2008fdd02fa5ac0f9df940" + integrity sha512-f24vd5/57/MFSXNMfkerdDiK0EvScGOKO71iOWgJNgI1xVweDRmOA/EfjnPMRd5m+pnoPs/4A7DzuwSW0jZVyw== + dependencies: + "@nrwl/nx-cloud" "19.1.0" + axios "^1.6.0" + chalk "^4.1.0" + dotenv "~10.0.0" + fs-extra "^11.1.0" + ini "4.1.3" + node-machine-id "^1.1.12" + open "~8.4.0" + tar "6.2.1" + yargs-parser ">=21.1.1" + nx@16.10.0, "nx@>=16.5.1 < 17": version "16.10.0" resolved "https://registry.npmjs.org/nx/-/nx-16.10.0.tgz#b070461f7de0a3d7988bd78558ea84cda3543ace" @@ -11286,7 +11319,7 @@ onetime@^6.0.0: dependencies: mimic-fn "^4.0.0" -open@^8.0.4, open@^8.0.9, open@^8.4.0: +open@^8.0.4, open@^8.0.9, open@^8.4.0, open@~8.4.0: version "8.4.2" resolved "https://registry.npmjs.org/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== @@ -13956,7 +13989,7 @@ tar@6.1.11: mkdirp "^1.0.3" yallist "^4.0.0" -tar@^6.1.11, tar@^6.1.2: +tar@6.2.1, tar@^6.1.11, tar@^6.1.2: version "6.2.1" resolved "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== @@ -15241,7 +15274,7 @@ yargs-parser@20.2.4: resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz#b42890f14566796f85ae8e3a25290d205f154a54" integrity sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA== -yargs-parser@21.1.1, yargs-parser@^21.0.1, yargs-parser@^21.1.1: +yargs-parser@21.1.1, yargs-parser@>=21.1.1, yargs-parser@^21.0.1, yargs-parser@^21.1.1: version "21.1.1" resolved "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==