mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-21 04:41:36 +02:00
Drop Node.js < 10 support and update all devDependencies.
* sinon 8.x doesn't work with IE, so leave it at 7.x.
This commit is contained in:
12
.github/workflows/test.yml
vendored
12
.github/workflows/test.yml
vendored
@@ -11,7 +11,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
node: [6, 8, 12]
|
node: [10, 12]
|
||||||
ruby: [2.4.x]
|
ruby: [2.4.x]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -60,7 +60,7 @@ jobs:
|
|||||||
- run: java -version
|
- run: java -version
|
||||||
|
|
||||||
- name: Install npm dependencies
|
- name: Install npm dependencies
|
||||||
run: npm install
|
run: npm ci
|
||||||
|
|
||||||
- name: Install bundler dependencies
|
- name: Install bundler dependencies
|
||||||
run: bundle install --deployment --jobs=3 --retry=3 --clean
|
run: bundle install --deployment --jobs=3 --retry=3 --clean
|
||||||
@@ -70,24 +70,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Run bundlesize
|
- name: Run bundlesize
|
||||||
run: npm run bundlesize
|
run: npm run bundlesize
|
||||||
if: matrix.node == 8
|
if: matrix.node == 10
|
||||||
env:
|
env:
|
||||||
BUNDLESIZE_GITHUB_TOKEN: "${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}"
|
BUNDLESIZE_GITHUB_TOKEN: "${{ secrets.BUNDLESIZE_GITHUB_TOKEN }}"
|
||||||
|
|
||||||
- name: Run BrowserStack tests
|
- name: Run BrowserStack tests
|
||||||
run: npm run js-test-cloud
|
run: npm run js-test-cloud
|
||||||
if: matrix.node == 8 && github.repository == 'twbs/bootstrap' && github.event_name == 'push'
|
if: matrix.node == 10 && github.repository == 'twbs/bootstrap' && github.event_name == 'push'
|
||||||
env:
|
env:
|
||||||
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
|
BROWSER_STACK_ACCESS_KEY: "${{ secrets.BROWSER_STACK_ACCESS_KEY }}"
|
||||||
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
|
BROWSER_STACK_USERNAME: "${{ secrets.BROWSER_STACK_USERNAME }}"
|
||||||
|
|
||||||
- name: Run Link Checker
|
- name: Run Link Checker
|
||||||
run: npm run check-broken-links
|
run: npm run check-broken-links
|
||||||
if: matrix.node == 8
|
if: matrix.node == 10
|
||||||
|
|
||||||
- name: Run Coveralls
|
- name: Run Coveralls
|
||||||
uses: coverallsapp/github-action@master
|
uses: coverallsapp/github-action@master
|
||||||
if: matrix.node == 8
|
if: matrix.node == 10
|
||||||
with:
|
with:
|
||||||
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
github-token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
path-to-lcov: "./js/coverage/lcov.info"
|
path-to-lcov: "./js/coverage/lcov.info"
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
const path = require('path')
|
const path = require('path')
|
||||||
const babel = require('rollup-plugin-babel')
|
const babel = require('rollup-plugin-babel')
|
||||||
const resolve = require('rollup-plugin-node-resolve')
|
const resolve = require('@rollup/plugin-node-resolve')
|
||||||
const banner = require('./banner.js')
|
const banner = require('./banner.js')
|
||||||
|
|
||||||
const BUNDLE = process.env.BUNDLE === 'true'
|
const BUNDLE = process.env.BUNDLE === 'true'
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
/* eslint-env node */
|
/* eslint-env node */
|
||||||
|
|
||||||
const resolve = require('rollup-plugin-node-resolve')
|
const resolve = require('@rollup/plugin-node-resolve')
|
||||||
const commonjs = require('rollup-plugin-commonjs')
|
const commonjs = require('@rollup/plugin-commonjs')
|
||||||
const babel = require('rollup-plugin-babel')
|
const babel = require('rollup-plugin-babel')
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
|
3088
package-lock.json
generated
3088
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
@@ -72,7 +72,7 @@
|
|||||||
"docs-lint": "node build/vnu-jar.js",
|
"docs-lint": "node build/vnu-jar.js",
|
||||||
"docs-serve": "bundle exec jekyll serve",
|
"docs-serve": "bundle exec jekyll serve",
|
||||||
"docs-serve-only": "npm run docs-serve -- --skip-initial-build --no-watch",
|
"docs-serve-only": "npm run docs-serve -- --skip-initial-build --no-watch",
|
||||||
"update-deps": "ncu -u -x \"babel-plugin-istanbul,cross-env,eslint,find-unused-sass-variables,jquery,karma,karma-browserstack-launcher,karma-qunit,nodemon,postcss-cli,qunit,sinon,stylelint,stylelint-config-twbs-bootstrap\" && npm update && bundle update && cross-env-shell echo Manually update \\\"site/docs/$npm_package_version_short/assets/js/vendor/\\\"",
|
"update-deps": "ncu -u -x \"jquery,karma-browserstack-launcher,qunit,sinon\" && npm update && bundle update && cross-env-shell echo Manually update \\\"site/docs/$npm_package_version_short/assets/js/vendor/\\\"",
|
||||||
"release": "npm-run-all dist release-sri release-zip docs-production",
|
"release": "npm-run-all dist release-sri release-zip docs-production",
|
||||||
"release-sri": "node build/generate-sri.js",
|
"release-sri": "node build/generate-sri.js",
|
||||||
"release-version": "node build/change-version.js",
|
"release-version": "node build/change-version.js",
|
||||||
@@ -111,49 +111,46 @@
|
|||||||
"@babel/core": "^7.8.7",
|
"@babel/core": "^7.8.7",
|
||||||
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
|
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
|
||||||
"@babel/preset-env": "^7.8.7",
|
"@babel/preset-env": "^7.8.7",
|
||||||
|
"@rollup/plugin-commonjs": "^11.0.2",
|
||||||
|
"@rollup/plugin-node-resolve": "^7.1.1",
|
||||||
"autoprefixer": "^9.7.4",
|
"autoprefixer": "^9.7.4",
|
||||||
"babel-eslint": "^10.1.0",
|
"babel-eslint": "^10.1.0",
|
||||||
"babel-plugin-istanbul": "^5.2.0",
|
"babel-plugin-istanbul": "^6.0.0",
|
||||||
"broken-link-checker": "^0.7.8",
|
"broken-link-checker": "^0.7.8",
|
||||||
"bundlesize": "^0.18.0",
|
"bundlesize": "^0.18.0",
|
||||||
"clean-css-cli": "^4.3.0",
|
"clean-css-cli": "^4.3.0",
|
||||||
"cross-env": "^5.2.1",
|
"cross-env": "^7.0.2",
|
||||||
"eslint": "^5.16.0",
|
"eslint": "^6.8.0",
|
||||||
"find-unused-sass-variables": "^0.6.0",
|
"find-unused-sass-variables": "^1.0.5",
|
||||||
"glob": "^7.1.6",
|
"glob": "^7.1.6",
|
||||||
"hammer-simulator": "0.0.1",
|
"hammer-simulator": "0.0.1",
|
||||||
"http-server": "^0.12.1",
|
"http-server": "^0.12.1",
|
||||||
"ip": "^1.1.5",
|
"ip": "^1.1.5",
|
||||||
"jquery": "^3.4.1",
|
"jquery": "^3.4.1",
|
||||||
"karma": "^3.1.4",
|
"karma": "^4.4.1",
|
||||||
"karma-browserstack-launcher": "1.4.0",
|
"karma-browserstack-launcher": "1.4.0",
|
||||||
"karma-chrome-launcher": "^3.1.0",
|
"karma-chrome-launcher": "^3.1.0",
|
||||||
"karma-coverage-istanbul-reporter": "^2.1.1",
|
"karma-coverage-istanbul-reporter": "^2.1.1",
|
||||||
"karma-detect-browsers": "^2.3.3",
|
"karma-detect-browsers": "^2.3.3",
|
||||||
"karma-firefox-launcher": "^1.3.0",
|
"karma-firefox-launcher": "^1.3.0",
|
||||||
"karma-qunit": "^3.1.3",
|
"karma-qunit": "^4.0.0",
|
||||||
"karma-sinon": "^1.0.5",
|
"karma-sinon": "^1.0.5",
|
||||||
"node-sass": "^4.13.1",
|
"node-sass": "^4.13.1",
|
||||||
"nodemon": "^1.19.4",
|
"nodemon": "^2.0.2",
|
||||||
"npm-run-all": "^4.1.5",
|
"npm-run-all": "^4.1.5",
|
||||||
"popper.js": "^1.16.0",
|
"popper.js": "^1.16.0",
|
||||||
"postcss-cli": "^6.1.3",
|
"postcss-cli": "^7.1.0",
|
||||||
"qunit": "2.9.2",
|
"qunit": "2.9.2",
|
||||||
"rollup": "^1.32.1",
|
"rollup": "^2.0.2",
|
||||||
"rollup-plugin-babel": "^4.4.0",
|
"rollup-plugin-babel": "^4.4.0",
|
||||||
"rollup-plugin-commonjs": "^10.1.0",
|
|
||||||
"rollup-plugin-node-resolve": "^5.2.0",
|
|
||||||
"shelljs": "^0.8.3",
|
"shelljs": "^0.8.3",
|
||||||
"shx": "^0.3.2",
|
"shx": "^0.3.2",
|
||||||
"sinon": "^7.5.0",
|
"sinon": "^7.5.0",
|
||||||
"stylelint": "^9.10.1",
|
"stylelint": "^13.2.1",
|
||||||
"stylelint-config-twbs-bootstrap": "^0.5.0",
|
"stylelint-config-twbs-bootstrap": "^2.0.1",
|
||||||
"uglify-js": "^3.8.0",
|
"uglify-js": "^3.8.0",
|
||||||
"vnu-jar": "20.2.28"
|
"vnu-jar": "20.2.28"
|
||||||
},
|
},
|
||||||
"engines": {
|
|
||||||
"node": ">=6"
|
|
||||||
},
|
|
||||||
"files": [
|
"files": [
|
||||||
"dist/{css,js}/*.{css,js,map}",
|
"dist/{css,js}/*.{css,js,map}",
|
||||||
"js/{src,dist}/**/*.{js,map}",
|
"js/{src,dist}/**/*.{js,map}",
|
||||||
|
Reference in New Issue
Block a user