From bc68f051db3dcd1dacbdd5b7124b642cd5144fb0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 16:45:39 +0900 Subject: [PATCH 1/9] chore(deps): bump streetsidesoftware/cspell-action from 2 to 3 (#2997) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/spellcheck.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 6f68fee18e..b10fd74859 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - uses: streetsidesoftware/cspell-action@v2 + - uses: streetsidesoftware/cspell-action@v3 with: inline: warning strict: false From f697484509d34d2b8cbcc1ca10846edc83567392 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 16:59:40 +0900 Subject: [PATCH 2/9] chore(deps-dev): bump archiver from 5.3.1 to 6.0.0 (#3000) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 92 +++++++++++++++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 78 insertions(+), 16 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6071dd5e25..9081e58333 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "8.0.0", "license": "MIT", "devDependencies": { - "archiver": "^5.3.1", + "archiver": "^6.0.0", "del": "^7.0.0", "eslint": "^8.46.0", "eslint-config-recommended": "^4.1.0", @@ -706,21 +706,21 @@ } }, "node_modules/archiver": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/archiver/-/archiver-5.3.1.tgz", - "integrity": "sha512-8KyabkmbYrH+9ibcTScQ1xCJC/CGcugdVIwB+53f5sZziXgwUh3iXlAlANMxcZyDEfTHMe6+Z5FofV8nopXP7w==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/archiver/-/archiver-6.0.0.tgz", + "integrity": "sha512-EPGa+bYaxaMiCT8DCbEDqFz8IjeBSExrJzyUOJx2FBkFJ/OZzJuso3lMSk901M50gMqXxTQcumlGajOFlXhVhw==", "dev": true, "dependencies": { - "archiver-utils": "^2.1.0", - "async": "^3.2.3", + "archiver-utils": "^3.0.0", + "async": "^3.2.4", "buffer-crc32": "^0.2.1", "readable-stream": "^3.6.0", - "readdir-glob": "^1.0.0", + "readdir-glob": "^1.1.2", "tar-stream": "^2.2.0", "zip-stream": "^4.1.0" }, "engines": { - "node": ">= 10" + "node": ">= 12.0.0" } }, "node_modules/archiver-utils": { @@ -788,6 +788,47 @@ "safe-buffer": "~5.1.0" } }, + "node_modules/archiver/node_modules/archiver-utils": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/archiver-utils/-/archiver-utils-3.0.3.tgz", + "integrity": "sha512-fXzpEZTKgBJMWy0eUT0/332CAQnJ27OJd7sGcvNZzxS2Yzg7iITivMhXOm+zUTO4vT8ZqlPCqiaLPmB8qWhWRA==", + "dev": true, + "dependencies": { + "glob": "^7.1.4", + "graceful-fs": "^4.2.0", + "lazystream": "^1.0.0", + "lodash.defaults": "^4.2.0", + "lodash.difference": "^4.5.0", + "lodash.flatten": "^4.4.0", + "lodash.isplainobject": "^4.0.6", + "lodash.union": "^4.6.0", + "normalize-path": "^3.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/archiver/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "dev": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, "node_modules/archy": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/archy/-/archy-1.0.0.tgz", @@ -1016,9 +1057,9 @@ } }, "node_modules/async": { - "version": "3.2.3", - "resolved": "https://registry.npmjs.org/async/-/async-3.2.3.tgz", - "integrity": "sha512-spZRyzKL5l5BZQrr/6m/SqFdBN0q3OCI0f9rjfBzCMBIP4p75P620rR3gTmaksNOhmzgdxcaxdNfMy6anrbM0g==", + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/async/-/async-3.2.4.tgz", + "integrity": "sha512-iAB+JbDEGXhyIUavoDl9WP/Jj106Kz9DEn1DPgYw5ruDn0e3Wgi3sKFm55sASdGBNOQB8F59d9qQ7deqrHA8wQ==", "dev": true }, "node_modules/async-done": { @@ -9539,12 +9580,33 @@ } }, "node_modules/readdir-glob": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.1.tgz", - "integrity": "sha512-91/k1EzZwDx6HbERR+zucygRFfiPl2zkIYZtv3Jjr6Mn7SkKcVct8aVO+sSRiGMc6fLf72du3d92/uY63YPdEA==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/readdir-glob/-/readdir-glob-1.1.3.tgz", + "integrity": "sha512-v05I2k7xN8zXvPD9N+z/uhXPaj0sUFCe2rcWZIpBsqxfP7xXFQ0tipAd/wjj1YxWyWtUS5IDJpOG82JKt2EAVA==", + "dev": true, + "dependencies": { + "minimatch": "^5.1.0" + } + }, + "node_modules/readdir-glob/node_modules/brace-expansion": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.1.tgz", + "integrity": "sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==", + "dev": true, + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/readdir-glob/node_modules/minimatch": { + "version": "5.1.6", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-5.1.6.tgz", + "integrity": "sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g==", "dev": true, "dependencies": { - "minimatch": "^3.0.4" + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=10" } }, "node_modules/readdirp": { diff --git a/package.json b/package.json index 2dcbe3dfaf..e9c12a7b01 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "test": "gulp archive && mocha --reporter spec --timeout 5000" }, "devDependencies": { - "archiver": "^5.3.1", + "archiver": "^6.0.0", "del": "^7.0.0", "eslint": "^8.46.0", "eslint-config-recommended": "^4.1.0", From ec56510b85a820f0b49106076b613a76af723b96 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 1 Sep 2023 14:31:38 -0400 Subject: [PATCH 3/9] chore(deps-dev): bump del from 7.0.0 to 7.1.0 (#2998) Bumps [del](https://github.com/sindresorhus/del) from 7.0.0 to 7.1.0. - [Release notes](https://github.com/sindresorhus/del/releases) - [Commits](https://github.com/sindresorhus/del/compare/v7.0.0...v7.1.0) --- updated-dependencies: - dependency-name: del dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9081e58333..30df275c71 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "MIT", "devDependencies": { "archiver": "^6.0.0", - "del": "^7.0.0", + "del": "^7.1.0", "eslint": "^8.46.0", "eslint-config-recommended": "^4.1.0", "eslint-plugin-mocha": "^10.1.0", @@ -2025,9 +2025,9 @@ } }, "node_modules/del": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-7.0.0.tgz", - "integrity": "sha512-tQbV/4u5WVB8HMJr08pgw0b6nG4RGt/tj+7Numvq+zqcvUFeMaIWWOUFltiU+6go8BSO2/ogsB4EasDaj0y68Q==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/del/-/del-7.1.0.tgz", + "integrity": "sha512-v2KyNk7efxhlyHpjEvfyxaAihKKK0nWCuf6ZtqZcFFpQRG0bJ12Qsr0RpvsICMjAAZ8DOVCxrlqpxISlMHC4Kg==", "dev": true, "dependencies": { "globby": "^13.1.2", diff --git a/package.json b/package.json index e9c12a7b01..b5e8c18e87 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,7 @@ }, "devDependencies": { "archiver": "^6.0.0", - "del": "^7.0.0", + "del": "^7.1.0", "eslint": "^8.46.0", "eslint-config-recommended": "^4.1.0", "eslint-plugin-mocha": "^10.1.0", From 47923c6c03c526679fe9823a5e89b3ed8207d55e Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Tue, 5 Sep 2023 14:59:38 -0400 Subject: [PATCH 4/9] Trying to bypass branch protection rules (#3005) --- .github/workflows/build-dist.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-dist.yaml b/.github/workflows/build-dist.yaml index a66f73b89d..d15baca3ba 100644 --- a/.github/workflows/build-dist.yaml +++ b/.github/workflows/build-dist.yaml @@ -39,3 +39,9 @@ jobs: uses: stefanzweifel/git-auto-commit-action@v4 with: commit_message: "[Bot] Update dist" + + - name: Pushing to the protected branch 'main' + uses: CasperWA/push-protected@v2 + with: + token: ${{ secrets.API_TOKEN_GITHUB }} + branch: main From 083686733719eadd585c88886fd7eae10ab03eb2 Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Tue, 5 Sep 2023 15:00:34 -0400 Subject: [PATCH 5/9] Update build-dist.yaml --- .github/workflows/build-dist.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-dist.yaml b/.github/workflows/build-dist.yaml index d15baca3ba..b50a75819c 100644 --- a/.github/workflows/build-dist.yaml +++ b/.github/workflows/build-dist.yaml @@ -44,4 +44,4 @@ jobs: uses: CasperWA/push-protected@v2 with: token: ${{ secrets.API_TOKEN_GITHUB }} - branch: main + branch: main From 7e8b7e9c03bcb06f2042cec26bcc8fc0c5aefea7 Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Tue, 5 Sep 2023 15:28:42 -0400 Subject: [PATCH 6/9] this has been broken forever (#3006) --- .github/workflows/build-dist.yaml | 47 ------------------------------- dist/package.json | 10 +++---- 2 files changed, 5 insertions(+), 52 deletions(-) delete mode 100644 .github/workflows/build-dist.yaml diff --git a/.github/workflows/build-dist.yaml b/.github/workflows/build-dist.yaml deleted file mode 100644 index b50a75819c..0000000000 --- a/.github/workflows/build-dist.yaml +++ /dev/null @@ -1,47 +0,0 @@ -name: Build dist - -# Controls when the workflow will run -on: - # Triggers the workflow on push or pull request events but only for the main branch - push: - branches: [ main ] - - # Allows you to run this workflow manually from the Actions tab - workflow_dispatch: - -# A workflow run is made up of one or more jobs that can run sequentially or in parallel -permissions: - contents: read - -jobs: - # This workflow contains a single job called "build" - build: - # The type of runner that the job will run on - permissions: - contents: write # for stefanzweifel/git-auto-commit-action to push code in repo - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v3 - with: - ref: main - - # Runs a single command using the runners shell - - name: build - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - - run: npm install - - run: npm run build - - name: commit - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: "[Bot] Update dist" - - - name: Pushing to the protected branch 'main' - uses: CasperWA/push-protected@v2 - with: - token: ${{ secrets.API_TOKEN_GITHUB }} - branch: main diff --git a/dist/package.json b/dist/package.json index 27727f6e37..5353ddfd34 100644 --- a/dist/package.json +++ b/dist/package.json @@ -15,10 +15,10 @@ }, "devDependencies": { "copy-webpack-plugin": "^11.0.0", - "html-webpack-plugin": "^5.5.1", - "webpack": "^5.81.0", - "webpack-cli": "^5.0.2", - "webpack-dev-server": "^4.13.3", - "webpack-merge": "^5.8.0" + "html-webpack-plugin": "^5.5.3", + "webpack": "^5.88.2", + "webpack-cli": "^5.1.4", + "webpack-dev-server": "^4.15.1", + "webpack-merge": "^5.9.0" } } From 22d800ad31b2457cbb48dc8f283857e516fba45b Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Sat, 2 Sep 2023 02:03:46 +0000 Subject: [PATCH 7/9] Removing Modernizr from the project --- README.md | 3 - dist/index.html | 1 - dist/js/vendor/modernizr-3.12.0.min.js | 3 - dist/webpack.config.prod.js | 1 - docs/html.md | 64 ------ docs/js.md | 9 - docs/usage.md | 7 - gulpfile.mjs | 18 +- modernizr-config.json | 17 -- package-lock.json | 300 ------------------------- package.json | 1 - src/index.html | 1 - src/js/vendor/.gitkeep | 0 src/webpack.config.prod.js | 1 - test/file_content.mjs | 5 - test/file_existence.mjs | 3 - 16 files changed, 1 insertion(+), 433 deletions(-) delete mode 100644 dist/js/vendor/modernizr-3.12.0.min.js delete mode 100644 modernizr-config.json create mode 100644 src/js/vendor/.gitkeep diff --git a/README.md b/README.md index 73d6eff145..0ceeb8bd8d 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,6 @@ way that you want. * [Homepage](https://html5boilerplate.com/) * [Source Code](https://github.com/h5bp/html5-boilerplate) -* [Twitter(@h5pb)](https://twitter.com/h5bp) ## About This Repository @@ -85,8 +84,6 @@ Choose one of the following options: research and experimentation by over 200 contributors. * Designed with progressive enhancement in mind. * Includes: - * A custom build of [`Modernizr`](https://modernizr.com/) for feature - detection. * Placeholder Open Graph elements and attributes. * An example package.json file with [WebPack](https://webpack.js.org/) commands built in to jumpstart application development. diff --git a/dist/index.html b/dist/index.html index f2dd9fcbe8..40c3bb4fbd 100644 --- a/dist/index.html +++ b/dist/index.html @@ -27,7 +27,6 @@

Hello world! This is HTML5 Boilerplate.

- diff --git a/dist/js/vendor/modernizr-3.12.0.min.js b/dist/js/vendor/modernizr-3.12.0.min.js deleted file mode 100644 index 5750449914..0000000000 --- a/dist/js/vendor/modernizr-3.12.0.min.js +++ /dev/null @@ -1,3 +0,0 @@ -/*! modernizr 3.12.0 (Custom Build) | MIT * - * https://modernizr.com/download/?-addtest-domprefixes-hasevent-mq-prefixedcssvalue-prefixes-setclasses-testallprops-testprop-teststyles !*/ -!function(e,n,t,r){function o(e,n){return typeof e===n}function i(e){var n=b.className,t=Modernizr._config.classPrefix||"";if(x&&(n=n.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+t+"no-js(\\s|$)");n=n.replace(r,"$1"+t+"js$2")}Modernizr._config.enableClasses&&(e.length>0&&(n+=" "+t+e.join(" "+t)),x?b.className.baseVal=n:b.className=n)}function s(e,n){if("object"==typeof e)for(var t in e)N(e,t)&&s(t,e[t]);else{e=e.toLowerCase();var r=e.split("."),o=Modernizr[r[0]];if(2===r.length&&(o=o[r[1]]),void 0!==o)return Modernizr;n="function"==typeof n?n():n,1===r.length?Modernizr[r[0]]=n:(!Modernizr[r[0]]||Modernizr[r[0]]instanceof Boolean||(Modernizr[r[0]]=new Boolean(Modernizr[r[0]])),Modernizr[r[0]][r[1]]=n),i([(n&&!1!==n?"":"no-")+r.join("-")]),Modernizr._trigger(e,n)}return Modernizr}function l(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):x?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function a(){var e=t.body;return e||(e=l(x?"svg":"body"),e.fake=!0),e}function u(e,n,r,o){var i,s,u,f,c="modernizr",d=l("div"),p=a();if(parseInt(r,10))for(;r--;)u=l("div"),u.id=o?o[r]:c+(r+1),d.appendChild(u);return i=l("style"),i.type="text/css",i.id="s"+c,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=b.style.overflow,b.style.overflow="hidden",b.appendChild(p)),s=n(d,e),p.fake&&p.parentNode?(p.parentNode.removeChild(p),b.style.overflow=f,b.offsetHeight):d.parentNode.removeChild(d),!!s}function f(e,t,r){var o;if("getComputedStyle"in n){o=getComputedStyle.call(n,e,t);var i=n.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var s=i.error?"error":"log";i[s].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!t&&e.currentStyle&&e.currentStyle[r];return o}function c(e,n){return!!~(""+e).indexOf(n)}function d(e){return e.replace(/([A-Z])/g,function(e,n){return"-"+n.toLowerCase()}).replace(/^ms-/,"-ms-")}function p(e,t){var o=e.length;if("CSS"in n&&"supports"in n.CSS){for(;o--;)if(n.CSS.supports(d(e[o]),t))return!0;return!1}if("CSSSupportsRule"in n){for(var i=[];o--;)i.push("("+d(e[o])+":"+t+")");return i=i.join(" or "),u("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"===f(e,null,"position")})}return r}function v(e){return e.replace(/([a-z])-([a-z])/g,function(e,n,t){return n+t.toUpperCase()}).replace(/^-/,"")}function h(e,n,t,i){function s(){u&&(delete L.style,delete L.modElem)}if(i=!o(i,"undefined")&&i,!o(t,"undefined")){var a=p(e,t);if(!o(a,"undefined"))return a}for(var u,f,d,h,m,y=["modernizr","tspan","samp"];!L.style&&y.length;)u=!0,L.modElem=l(y.shift()),L.style=L.modElem.style;for(d=e.length,f=0;f - - - -``` - -When you have a bunch of polyfills to load in, you could also -create a `polyfills.js` file in the `js/vendor` directory or include the files -individually and combine them using a build tool. Always ensure that the -polyfills are all loaded before any other JavaScript. - -There are some misconceptions about Modernizr and polyfills. It's important to -understand that Modernizr just handles feature checking, not polyfilling itself. -The only thing Modernizr does regarding polyfills is that the team maintains -[a huge list of cross Browser polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-Browser-Polyfills). - -### jQuery - -As of v8.0.0 we no longer include jQuery by default. Web development has -changed a lot since we started this project and while many millions of sites -still use jQuery there are many sites and applications that don't. 10 years ago -jQuery _was_ JavaScript for most developers. That's not the case any more so -we've made the decision to remove jQuery from the project. - -If you're interested in including it, you can easily install jQuery using the -following command: - -``` -npm install jquery -``` - -You can then copy the minified file into the `vendor` folder and add jQuery -to the `index.html` manually. - -To load jQuery from a CDN with a local fallback you can use the following: - -```html - - -``` diff --git a/docs/js.md b/docs/js.md index 4b027d75f4..8f34fa178a 100644 --- a/docs/js.md +++ b/docs/js.md @@ -10,12 +10,3 @@ Information about the default JavaScript included in the project. This file can be used to contain or reference your site/app JavaScript code. If you're working on something more advanced you might replace this file entirely. That's cool. - -## vendor - -This directory can be used to contain all third-party library code. - -Our custom build of the Modernizr library is included by -default. You may wish to create your own [custom Modernizr build with the online -builder](https://modernizr.com/download/) or [command line -tool](https://modernizr.com/docs#command-line-config). diff --git a/docs/usage.md b/docs/usage.md index bff4ab2ee8..4af6de2da6 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -36,8 +36,6 @@ A basic HTML5 Boilerplate site initially looks something like this: ├── img ├── js │ ├── app.js -│ └── vendor -│ └── modernizr.min.js ├── .editorconfig ├── 404.html ├── favicon.ico @@ -153,7 +151,6 @@ It copies the following files and folders to the dist folder: * css * img -* js/vendor * 404.html * favicon.ico * icon.png @@ -163,7 +160,3 @@ It copies the following files and folders to the dist folder: * site.webmanifest * tile.png * tile-wide.png - -`js/vendor` is copied over in order to allow you to use unprocessed JS files -(like Modernizr) in addition to the files bundled based on the project's entry -point `app.js.` diff --git a/gulpfile.mjs b/gulpfile.mjs index 97a2ad09f4..ba6b8fed30 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -9,11 +9,9 @@ import gulpReplace from 'gulp-replace'; import archiver from 'archiver'; import { globSync } from 'glob' import { deleteSync } from 'del'; -import modernizr from 'modernizr'; import { createRequire } from 'module'; const require = createRequire(import.meta.url); const pkg = require('./package.json'); -const modernizrConfig = require('./modernizr-config.json'); const dirs = pkg['h5bp-configs'].directories; @@ -74,10 +72,7 @@ gulp.task('clean', (done) => { gulp.task('copy:index.html', () => { - let modernizrVersion = pkg.devDependencies.modernizr; - return gulp.src(`${dirs.src}/index.html`) - .pipe(gulpReplace(/{{MODERNIZR_VERSION}}/g, modernizrVersion)) .pipe(gulp.dest(dirs.dist)); }); @@ -115,16 +110,6 @@ gulp.task('copy:misc', () => }).pipe(gulp.dest(dirs.dist)) ); -gulp.task('modernizr', (done) => { - // TODO: rework this flow instead of just reacting to the fact that the jQuery step is gone - if (!fs.existsSync(`${dirs.dist}/js/vendor/`)){ - fs.mkdirSync(`${dirs.dist}/js/vendor/`); - } - - modernizr.build(modernizrConfig, (code) => { - fs.writeFile(`${dirs.dist}/js/vendor/modernizr-${pkg.devDependencies.modernizr}.min.js`, code, done); - }); -}); gulp.task('lint:js', () => gulp.src([ @@ -152,8 +137,7 @@ gulp.task( 'build', gulp.series( gulp.parallel('clean', 'lint:js'), - 'copy', - 'modernizr' + 'copy' ) ); diff --git a/modernizr-config.json b/modernizr-config.json deleted file mode 100644 index 4e056856c8..0000000000 --- a/modernizr-config.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "minify": true, - "options": [ - "domPrefixes", - "prefixes", - "addTest", - "hasEvent", - "mq", - "prefixedCSSValue", - "testAllProps", - "testProp", - "testStyles", - "setClasses" - ], - "feature-detects": [ - ] -} diff --git a/package-lock.json b/package-lock.json index 30df275c71..de82590b3d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,7 +23,6 @@ "gulp-replace": "^1.1.4", "main.css": "3.0.0", "mocha": "^10.2.0", - "modernizr": "3.12.0", "strip-json-comments": "^5.0.1" }, "engines": { @@ -2195,15 +2194,6 @@ "once": "^1.4.0" } }, - "node_modules/entities": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/entities/-/entities-2.1.0.tgz", - "integrity": "sha512-hCx1oky9PFrJ611mf0ifBLBRW8lUUVRlFolb5gWRfIELabBlbp9xZvrqZLZAs+NxFnbfQoeGd8wDkygjg7U85w==", - "dev": true, - "funding": { - "url": "https://github.com/fb55/entities?sponsor=1" - } - }, "node_modules/error-ex": { "version": "1.3.2", "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", @@ -4854,12 +4844,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/file": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/file/-/file-0.2.2.tgz", - "integrity": "sha1-w9/Y+M81Na5FXCtCPC5SY112tNM=", - "dev": true - }, "node_modules/file-entry-cache": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz", @@ -7295,15 +7279,6 @@ "node": ">=0.10.0" } }, - "node_modules/linkify-it": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-3.0.3.tgz", - "integrity": "sha512-ynTsyrFSdE5oZ/O9GEf00kPngmOfVwazR5GKDq6EYfhlpFug3J2zybX56a2PRRpc9P+FuSoGNAwjlbDs9jJBPQ==", - "dev": true, - "dependencies": { - "uc.micro": "^1.0.1" - } - }, "node_modules/load-json-file": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", @@ -7563,22 +7538,6 @@ "node": ">=0.10.0" } }, - "node_modules/markdown-it": { - "version": "12.3.2", - "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-12.3.2.tgz", - "integrity": "sha512-TchMembfxfNVpHkbtriWltGWc+m3xszaRD0CZup7GFFhzIgQqxIfn3eGj1yZpfuflzPvfkt611B2Q/Bsk1YnGg==", - "dev": true, - "dependencies": { - "argparse": "^2.0.1", - "entities": "~2.1.0", - "linkify-it": "^3.0.1", - "mdurl": "^1.0.1", - "uc.micro": "^1.0.5" - }, - "bin": { - "markdown-it": "bin/markdown-it.js" - } - }, "node_modules/matchdep": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-2.0.0.tgz", @@ -7721,12 +7680,6 @@ "node": ">=0.10.0" } }, - "node_modules/mdurl": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-1.0.1.tgz", - "integrity": "sha512-/sKlQJCBYVY9Ers9hqzKou4H6V5UWc/M59TH2dvkt+84itfnq7uFOMLpOiOS4ujvHP4etln18fmIxA5R5fll0g==", - "dev": true - }, "node_modules/merge2": { "version": "1.4.1", "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", @@ -8287,240 +8240,6 @@ "node": ">=10" } }, - "node_modules/modernizr": { - "version": "3.12.0", - "resolved": "https://registry.npmjs.org/modernizr/-/modernizr-3.12.0.tgz", - "integrity": "sha512-i5f5xfnxMOb3cePoBpwk4bWjVAyIB3hgm7QrDvZx/R7zUUS8PO9zlyQF7vJKn8kCVxEvL0nRWeZ0PPqVbY31sw==", - "dev": true, - "dependencies": { - "doctrine": "^3.0.0", - "file": "^0.2.2", - "lodash": "^4.17.21", - "markdown-it": "^12.3.2", - "mkdirp": "0.5.5", - "requirejs": "^2.3.6", - "yargs": "^15.4.1" - }, - "bin": { - "modernizr": "bin/modernizr" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/modernizr/node_modules/camelcase": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", - "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/modernizr/node_modules/cliui": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-6.0.0.tgz", - "integrity": "sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ==", - "dev": true, - "dependencies": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^6.2.0" - } - }, - "node_modules/modernizr/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/modernizr/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/modernizr/node_modules/find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "dependencies": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true, - "engines": { - "node": "6.* || 8.* || >= 10.*" - } - }, - "node_modules/modernizr/node_modules/is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "dependencies": { - "p-locate": "^4.1.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "dependencies": { - "p-try": "^2.0.0" - }, - "engines": { - "node": ">=6" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/modernizr/node_modules/p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "dependencies": { - "p-limit": "^2.2.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true, - "engines": { - "node": ">=6" - } - }, - "node_modules/modernizr/node_modules/require-main-filename": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-2.0.0.tgz", - "integrity": "sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg==", - "dev": true - }, - "node_modules/modernizr/node_modules/string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "dependencies": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/which-module": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/which-module/-/which-module-2.0.0.tgz", - "integrity": "sha1-2e8H3Od7mQK4o6j6SzHD4/fm6Ho=", - "dev": true - }, - "node_modules/modernizr/node_modules/wrap-ansi": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-6.2.0.tgz", - "integrity": "sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/y18n": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-4.0.3.tgz", - "integrity": "sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ==", - "dev": true - }, - "node_modules/modernizr/node_modules/yargs": { - "version": "15.4.1", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz", - "integrity": "sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A==", - "dev": true, - "dependencies": { - "cliui": "^6.0.0", - "decamelize": "^1.2.0", - "find-up": "^4.1.0", - "get-caller-file": "^2.0.1", - "require-directory": "^2.1.1", - "require-main-filename": "^2.0.0", - "set-blocking": "^2.0.0", - "string-width": "^4.2.0", - "which-module": "^2.0.0", - "y18n": "^4.0.0", - "yargs-parser": "^18.1.2" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/modernizr/node_modules/yargs-parser": { - "version": "18.1.3", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-18.1.3.tgz", - "integrity": "sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ==", - "dev": true, - "dependencies": { - "camelcase": "^5.0.0", - "decamelize": "^1.2.0" - }, - "engines": { - "node": ">=6" - } - }, "node_modules/ms": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", @@ -9971,19 +9690,6 @@ "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", "dev": true }, - "node_modules/requirejs": { - "version": "2.3.6", - "resolved": "https://registry.npmjs.org/requirejs/-/requirejs-2.3.6.tgz", - "integrity": "sha512-ipEzlWQe6RK3jkzikgCupiTbTvm4S0/CAU5GlgptkN5SO6F3u0UD0K18wy6ErDqiCyP4J4YYe1HuAShvsxePLg==", - "dev": true, - "bin": { - "r_js": "bin/r.js", - "r.js": "bin/r.js" - }, - "engines": { - "node": ">=0.4.0" - } - }, "node_modules/resolve": { "version": "1.20.0", "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", @@ -11167,12 +10873,6 @@ "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", "dev": true }, - "node_modules/uc.micro": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-1.0.6.tgz", - "integrity": "sha512-8Y75pvTYkLJW2hWQHXxoqRgV7qb9B+9vFEtidML+7koHUFapnVJAZ6cKs+Qjz5Aw3aZWHMC6u0wJE3At+nSGwA==", - "dev": true - }, "node_modules/unbox-primitive": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.1.tgz", diff --git a/package.json b/package.json index b5e8c18e87..2bdb1989c9 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,6 @@ "gulp-replace": "^1.1.4", "main.css": "3.0.0", "mocha": "^10.2.0", - "modernizr": "3.12.0", "strip-json-comments": "^5.0.1" }, "engines": { diff --git a/src/index.html b/src/index.html index 7627235f33..40c3bb4fbd 100644 --- a/src/index.html +++ b/src/index.html @@ -27,7 +27,6 @@

Hello world! This is HTML5 Boilerplate.

- diff --git a/src/js/vendor/.gitkeep b/src/js/vendor/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/src/webpack.config.prod.js b/src/webpack.config.prod.js index c35245cffa..f6ceb06081 100644 --- a/src/webpack.config.prod.js +++ b/src/webpack.config.prod.js @@ -13,7 +13,6 @@ module.exports = merge(common, { patterns: [ { from: 'img', to: 'img' }, { from: 'css', to: 'css' }, - { from: 'js/vendor', to: 'js/vendor' }, { from: 'icon.svg', to: 'icon.svg'}, { from: 'favicon.ico', to: 'favicon.ico'}, { from: 'tile-wide.png', to: 'tile-wide.png'}, diff --git a/test/file_content.mjs b/test/file_content.mjs index 957352a02f..81867fd6d0 100644 --- a/test/file_content.mjs +++ b/test/file_content.mjs @@ -51,11 +51,6 @@ function runTests() { describe(`Test if the files from the "${dir}" directory have the expected content`, () => { - it('"index.html" should contain the correct Modernizr version in the local URL', (done) => { - const string = `js/vendor/modernizr-${pkg.devDependencies.modernizr}.min.js`; - checkString(path.resolve(dir, 'index.html'), string, done); - }); - it('"style.css" should contain a custom banner', function (done) { const string = `/*! HTML5 Boilerplate v${pkg.version} | ${pkg.license} License | ${pkg.homepage} */\n`; checkString(path.resolve(dir, 'css/style.css'), string, done); diff --git a/test/file_existence.mjs b/test/file_existence.mjs index 6f13dcef38..146dc953c1 100644 --- a/test/file_existence.mjs +++ b/test/file_existence.mjs @@ -39,9 +39,6 @@ const expectedFilesInDistDir = [ 'js/', 'js/app.js', - 'js/vendor/', - `js/vendor/modernizr-${pkg.devDependencies.modernizr}.min.js`, - 'LICENSE.txt', 'robots.txt', 'site.webmanifest', From 17f1e1b3cd48034930f5ce0dd127d0d983b82d84 Mon Sep 17 00:00:00 2001 From: Rob Larsen Date: Tue, 5 Sep 2023 19:50:06 +0000 Subject: [PATCH 8/9] cleaning up the PR and fixing tests --- dist/js/vendor/.gitkeep | 0 dist/webpack.config.prod.js | 1 + docs/js.md | 4 ++++ docs/usage.md | 5 +++++ src/webpack.config.prod.js | 1 + test/file_existence.mjs | 2 ++ 6 files changed, 13 insertions(+) create mode 100644 dist/js/vendor/.gitkeep diff --git a/dist/js/vendor/.gitkeep b/dist/js/vendor/.gitkeep new file mode 100644 index 0000000000..e69de29bb2 diff --git a/dist/webpack.config.prod.js b/dist/webpack.config.prod.js index f6ceb06081..c35245cffa 100644 --- a/dist/webpack.config.prod.js +++ b/dist/webpack.config.prod.js @@ -13,6 +13,7 @@ module.exports = merge(common, { patterns: [ { from: 'img', to: 'img' }, { from: 'css', to: 'css' }, + { from: 'js/vendor', to: 'js/vendor' }, { from: 'icon.svg', to: 'icon.svg'}, { from: 'favicon.ico', to: 'favicon.ico'}, { from: 'tile-wide.png', to: 'tile-wide.png'}, diff --git a/docs/js.md b/docs/js.md index 8f34fa178a..161fc72502 100644 --- a/docs/js.md +++ b/docs/js.md @@ -10,3 +10,7 @@ Information about the default JavaScript included in the project. This file can be used to contain or reference your site/app JavaScript code. If you're working on something more advanced you might replace this file entirely. That's cool. + +## vendor + +This directory can be used to contain all third-party library code. diff --git a/docs/usage.md b/docs/usage.md index 4af6de2da6..4774a4949a 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -36,6 +36,7 @@ A basic HTML5 Boilerplate site initially looks something like this: ├── img ├── js │ ├── app.js + └── vendor ├── .editorconfig ├── 404.html ├── favicon.ico @@ -151,6 +152,7 @@ It copies the following files and folders to the dist folder: * css * img +* js/vendor * 404.html * favicon.ico * icon.png @@ -160,3 +162,6 @@ It copies the following files and folders to the dist folder: * site.webmanifest * tile.png * tile-wide.png + +`js/vendor` is copied over in order to allow you to use unprocessed JS files + in addition to the files bundled based on the project's entry point `app.js.` \ No newline at end of file diff --git a/src/webpack.config.prod.js b/src/webpack.config.prod.js index f6ceb06081..c35245cffa 100644 --- a/src/webpack.config.prod.js +++ b/src/webpack.config.prod.js @@ -13,6 +13,7 @@ module.exports = merge(common, { patterns: [ { from: 'img', to: 'img' }, { from: 'css', to: 'css' }, + { from: 'js/vendor', to: 'js/vendor' }, { from: 'icon.svg', to: 'icon.svg'}, { from: 'favicon.ico', to: 'favicon.ico'}, { from: 'tile-wide.png', to: 'tile-wide.png'}, diff --git a/test/file_existence.mjs b/test/file_existence.mjs index 146dc953c1..9c1331036f 100644 --- a/test/file_existence.mjs +++ b/test/file_existence.mjs @@ -39,6 +39,8 @@ const expectedFilesInDistDir = [ 'js/', 'js/app.js', + 'js/vendor/', + 'js/vendor/.gitkeep', 'LICENSE.txt', 'robots.txt', 'site.webmanifest', From 17073f50b0ddab57f84b7c2862a5dd956314041d Mon Sep 17 00:00:00 2001 From: Christian Oliff Date: Wed, 6 Sep 2023 10:12:35 +0900 Subject: [PATCH 9/9] Remove a few more Modernizr mentions --- .github/CONTRIBUTING.md | 1 - .github/SUPPORT.md | 1 - docs/extend.md | 3 --- package.json | 1 - 4 files changed, 6 deletions(-) diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index a3c666cd9d..717a0052c9 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -28,7 +28,6 @@ restrictions: * Please **do not** open issues or pull requests regarding the code in [`.htaccess`](https://github.com/h5bp/server-configs-apache), - [`Modernizr`](https://github.com/Modernizr/Modernizr) or [`Normalize.css`](https://github.com/necolas/normalize.css) (open them in their respective repositories). diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index 6bbe6d8a1a..39386d784e 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -5,5 +5,4 @@ For personal support requests with HTML5 Boilerplate please use Stack Overflow Please check the respective repository/website for support regarding the code in [`.htaccess`](https://github.com/h5bp/server-configs-apache), - [`Modernizr`](https://modernizr.com/) or [`Normalize.css`](https://github.com/necolas/normalize.css). diff --git a/docs/extend.md b/docs/extend.md index 0e34047396..3c16764da3 100644 --- a/docs/extend.md +++ b/docs/extend.md @@ -132,9 +132,6 @@ plugin](https://developer.mozilla.org/en-US/docs/Web/OpenSearch). ## Miscellaneous -* Use - [polyfills](https://github.com/Modernizr/Modernizr/wiki/HTML5-Cross-browser-Polyfills). - * Use [Microformats](http://microformats.org/wiki/Main_Page) (via [microdata](http://microformats.org/wiki/microdata)) for optimum search results diff --git a/package.json b/package.json index 2bdb1989c9..6560b90850 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "LICENSE.txt", "package.json", "dist/", - "modernizr-config.json", "README.md" ] }