From 62bd168a2774a585e93270093cc4a923e24b09ff Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Wed, 2 Feb 2022 01:05:01 +0100 Subject: [PATCH] update lesspass-website sandbox --- .gitignore | 3 +- sandbox/lesspass-website/gatsby-browser.js | 4 +- sandbox/lesspass-website/package.json | 5 +- sandbox/lesspass-website/src/styles/global.css | 3 + sandbox/lesspass-website/tailwind.config.js | 4 +- sandbox/lesspass-website/yarn.lock | 84 ++++++++++++++++++++++---- 6 files changed, 83 insertions(+), 20 deletions(-) create mode 100644 sandbox/lesspass-website/src/styles/global.css diff --git a/.gitignore b/.gitignore index 2eadf3b..8a3b2fc 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ default.nix .envrc sandbox/lesspass-passwordrules sandbox/lesspass-pure -sandbox/lesspass-tld/top-1m.csv \ No newline at end of file +sandbox/lesspass-tld/top-1m.csv +sandbox/infra \ No newline at end of file diff --git a/sandbox/lesspass-website/gatsby-browser.js b/sandbox/lesspass-website/gatsby-browser.js index 8ca881f..aa2bdc3 100644 --- a/sandbox/lesspass-website/gatsby-browser.js +++ b/sandbox/lesspass-website/gatsby-browser.js @@ -1,3 +1 @@ -import "tailwindcss/base.css" -import "tailwindcss/components.css" -import "tailwindcss/utilities.css" +import "./src/styles/global.css"; diff --git a/sandbox/lesspass-website/package.json b/sandbox/lesspass-website/package.json index 43896aa..fc376c4 100644 --- a/sandbox/lesspass-website/package.json +++ b/sandbox/lesspass-website/package.json @@ -5,7 +5,8 @@ "license": "GPL-3.0", "author": "Guillaume Vincent ", "dependencies": { - "gatsby": "^4.6.0", + "@wardpeet/gatsby-plugin-static-site": "^0.3.0", + "gatsby": "^4.6.1", "gatsby-image": "^3.11.0", "gatsby-plugin-manifest": "^4.6.0", "gatsby-plugin-offline": "^5.6.0", @@ -20,7 +21,7 @@ "react": "^17.0.2", "react-dom": "^17.0.2", "react-helmet": "^6.1.0", - "tailwindcss": "^3.0.16" + "tailwindcss": "^3.0.18" }, "devDependencies": { "@types/react-helmet": "^6.1.5" diff --git a/sandbox/lesspass-website/src/styles/global.css b/sandbox/lesspass-website/src/styles/global.css new file mode 100644 index 0000000..bd6213e --- /dev/null +++ b/sandbox/lesspass-website/src/styles/global.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; \ No newline at end of file diff --git a/sandbox/lesspass-website/tailwind.config.js b/sandbox/lesspass-website/tailwind.config.js index e06c6a5..26cde68 100644 --- a/sandbox/lesspass-website/tailwind.config.js +++ b/sandbox/lesspass-website/tailwind.config.js @@ -1,9 +1,7 @@ module.exports = { - future: {}, - purge: [], + content: ["./src/**/*.{js,jsx,ts,tsx}"], theme: { extend: {}, }, - variants: {}, plugins: [], }; diff --git a/sandbox/lesspass-website/yarn.lock b/sandbox/lesspass-website/yarn.lock index 3738289..ce59604 100644 --- a/sandbox/lesspass-website/yarn.lock +++ b/sandbox/lesspass-website/yarn.lock @@ -2074,6 +2074,13 @@ resolved "https://registry.yarnpkg.com/@vercel/webpack-asset-relocator-loader/-/webpack-asset-relocator-loader-1.7.0.tgz#d3b707e0aba3111719f941dacb2408eff3c27319" integrity sha512-1Dy3BdOliDwxA7VZSIg55E1d/us2KvsCQOZV25fgufG//CsnZBGiSAL7qewTQf7YVHH0A9PHgzwMmKIZ8aFYVw== +"@wardpeet/gatsby-plugin-static-site@^0.3.0": + version "0.3.0" + resolved "https://registry.yarnpkg.com/@wardpeet/gatsby-plugin-static-site/-/gatsby-plugin-static-site-0.3.0.tgz#92285d19c032279e3f8e0b2cde1759fcef33bee3" + integrity sha512-i+QvV3CKUh4bO4yL9THjOXPKMzQ0MOCxNog56gVMRHdUCF7gSHvS9KzSFelEqfdI6dGcvBVxEfNhnFrBdSjrZQ== + dependencies: + webpack "^5.30.0" + "@webassemblyjs/ast@1.11.1": version "1.11.1" resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.11.1.tgz#2bfd767eae1a6996f432ff7e8d7fc75679c0b6a7" @@ -3126,6 +3133,21 @@ chokidar@^3.5.2: optionalDependencies: fsevents "~2.3.2" +chokidar@^3.5.3: + version "3.5.3" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.5.3.tgz#1cf37c8707b932bd1af1ae22c0432e2acd1903bd" + integrity sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + chownr@^1.1.1: version "1.1.4" resolved "https://registry.yarnpkg.com/chownr/-/chownr-1.1.4.tgz#6fc9d7b42d32a583596337666e7d08084da2cc6b" @@ -5304,10 +5326,10 @@ gatsby-worker@^1.6.0: "@babel/core" "^7.15.5" "@babel/runtime" "^7.15.4" -gatsby@^4.6.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-4.6.0.tgz#05877f7f8c799ef2301f257f47a3af44d20bc729" - integrity sha512-02NsTyfPQlB/JCilJri0gxvTr7WNcjZWnNUhHQatH0CJ6Sj3meSArEMNuA2thBS/CSIq/30kEOC2HDvWEWPfSA== +gatsby@^4.6.1: + version "4.6.1" + resolved "https://registry.yarnpkg.com/gatsby/-/gatsby-4.6.1.tgz#79b17dc1ce915ecf9aa24bfadcc2b06ea3dc2371" + integrity sha512-UDHgnBUovGSp6DJ8KGY3sKLv7ZnzWfFpsUEJgxagJ+9jM4bhElVJYJwlz2HCudb6W/jRXG1HNXKHAmfWgvnnug== dependencies: "@babel/code-frame" "^7.14.0" "@babel/core" "^7.15.5" @@ -5720,6 +5742,11 @@ graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.2, resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.8.tgz#e412b8d33f5e006593cbd3cee6df9f2cebbe802a" integrity sha512-qkIilPUYcNhJpd33n0GBXTB1MMPp14TxEsEs0pTrsSVucApsYzW5V+Q8Qxhik6KU3evy+qkAAowTByymK0avdg== +graceful-fs@^4.2.9: + version "4.2.9" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.9.tgz#041b05df45755e587a24942279b9d113146e1c96" + integrity sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ== + graphql-compose@~7.25.1: version "7.25.1" resolved "https://registry.yarnpkg.com/graphql-compose/-/graphql-compose-7.25.1.tgz#9d89f72781931590d4dfca6a709f381f2f76b873" @@ -8342,7 +8369,7 @@ postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector cssesc "^3.0.0" util-deprecate "^1.0.2" -postcss-selector-parser@^6.0.8: +postcss-selector-parser@^6.0.9: version "6.0.9" resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz#ee71c3b9ff63d9cd130838876c13a2ec1a992b2f" integrity sha512-UO3SgnZOVTwu4kyLR22UQ1xZh086RyNZppb7lLAKBFK8a32ttG5i87Y/P3+2bRSjZNyJ1B7hfFNo273tKe9YxQ== @@ -9808,14 +9835,14 @@ table@^6.0.9: string-width "^4.2.3" strip-ansi "^6.0.1" -tailwindcss@^3.0.16: - version "3.0.16" - resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.16.tgz#eb6e7a0ecec56e43b9dad439b8cb3a5da1e0c1a3" - integrity sha512-1L8E5Wr+o1c4kxxObNz2owJe94a7BLEMV+2Lz6wzprJdcs3ENSRR9t4OZf2OqtRNS/q/zFPuOKoLtQoy3Lrhhw== +tailwindcss@^3.0.18: + version "3.0.18" + resolved "https://registry.yarnpkg.com/tailwindcss/-/tailwindcss-3.0.18.tgz#ea4825e6496d77dc21877b6b61c7cc56cda3add5" + integrity sha512-ihPTpEyA5ANgZbwKlgrbfnzOp9R5vDHFWmqxB1PT8NwOGCOFVVMl+Ps1cQQ369acaqqf1BEF77roCwK0lvNmTw== dependencies: arg "^5.0.1" chalk "^4.1.2" - chokidar "^3.5.2" + chokidar "^3.5.3" color-name "^1.1.4" cosmiconfig "^7.0.1" detective "^5.2.0" @@ -9829,7 +9856,7 @@ tailwindcss@^3.0.16: postcss-js "^4.0.0" postcss-load-config "^3.1.0" postcss-nested "5.0.6" - postcss-selector-parser "^6.0.8" + postcss-selector-parser "^6.0.9" postcss-value-parser "^4.2.0" quick-lru "^5.1.1" resolve "^1.21.0" @@ -10431,6 +10458,11 @@ webpack-sources@^3.2.2: resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.2.tgz#d88e3741833efec57c4c789b6010db9977545260" integrity sha512-cp5qdmHnu5T8wRg2G3vZZHoJPN14aqQ89SyQ11NpGH5zEMDCclt49rzo+MaRazk7/UeILhAI+/sEtcM+7Fr0nw== +webpack-sources@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" + integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + webpack-stats-plugin@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/webpack-stats-plugin/-/webpack-stats-plugin-1.0.3.tgz#0f64551a0b984b48a9e7acdee32e3cfda556fe51" @@ -10443,6 +10475,36 @@ webpack-virtual-modules@^0.3.2: dependencies: debug "^3.0.0" +webpack@^5.30.0: + version "5.68.0" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.68.0.tgz#a653a58ed44280062e47257f260117e4be90d560" + integrity sha512-zUcqaUO0772UuuW2bzaES2Zjlm/y3kRBQDVFVCge+s2Y8mwuUTdperGaAv65/NtRL/1zanpSJOq/MD8u61vo6g== + dependencies: + "@types/eslint-scope" "^3.7.0" + "@types/estree" "^0.0.50" + "@webassemblyjs/ast" "1.11.1" + "@webassemblyjs/wasm-edit" "1.11.1" + "@webassemblyjs/wasm-parser" "1.11.1" + acorn "^8.4.1" + acorn-import-assertions "^1.7.6" + browserslist "^4.14.5" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.8.3" + es-module-lexer "^0.9.0" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.9" + json-parse-better-errors "^1.0.2" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.1.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.1.3" + watchpack "^2.3.1" + webpack-sources "^3.2.3" + webpack@^5.61.0: version "5.65.0" resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.65.0.tgz#ed2891d9145ba1f0d318e4ea4f89c3fa18e6f9be"