chore: add bootstrap 3 copy on npm postinstall (#3587)

This commit is contained in:
Nicolas Giard 2022-03-07 19:13:51 -05:00 committed by GitHub
parent 32ce597564
commit ed2beb8cd2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 32382 additions and 56 deletions

View file

@ -41,6 +41,14 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[package.json]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
# Settings for cypress tests
# ---------------------------------------------------------
# StandardJS Style

1
.gitignore vendored
View file

@ -53,3 +53,4 @@
*.pyc
__pycache__
node_modules
ietf/static/ietf/bootstrap

2
.npmrc Normal file
View file

@ -0,0 +1,2 @@
save-exact = true
save-prefix = ""

10966
bootstrap/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -18,7 +18,8 @@
"release": "grunt prep-release && npm run sri && npm run release-zip",
"release-zip": "cross-env-shell \"shx rm -rf bootstrap-$npm_package_version-dist && shx cp -r dist/ bootstrap-$npm_package_version-dist && zip -r9 bootstrap-$npm_package_version-dist.zip bootstrap-$npm_package_version-dist && shx rm -rf bootstrap-$npm_package_version-dist\"",
"change-version": "node grunt/change-version.js",
"test": "grunt test"
"test": "grunt test",
"postinstall": "node post-install.js"
},
"style": "dist/css/bootstrap.css",
"less": "less/bootstrap.less",
@ -31,7 +32,9 @@
"url": "https://github.com/ietf-tools/datatracker/issues"
},
"license": "MIT",
"dependencies": {},
"dependencies": {
"fs-extra": "^10.0.1"
},
"devDependencies": {
"autoprefixer": "^9.4.7",
"btoa": "^1.2.1",

View file

@ -0,0 +1,4 @@
const fs = require('fs-extra')
const path = require('path')
fs.copySync(path.join(process.cwd(), 'dist'), path.join(process.cwd(), '../ietf/static/ietf/bootstrap'))

21443
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,10 +1,11 @@
{
"devDependencies": {
"browserlist": "latest",
"cypress": "^9.0.0",
"cypress-real-events": "^1.5.1"
"cypress": "9.0.0",
"cypress-real-events": "1.5.1"
},
"dependencies": {
"caniuse-lite": "^1.0.30001282"
"caniuse-lite": "1.0.30001282",
"@ietf-tools/datatracker-bs3": "latest"
}
}