ci: fix npm dependencies + use build script

This commit is contained in:
NGPixel 2022-03-09 13:19:06 -05:00
parent 1780f7c57d
commit 0f1bd8f486
No known key found for this signature in database
GPG key ID: 8FDA2F1757F60D63
4 changed files with 3863 additions and 20144 deletions

View file

@ -84,15 +84,9 @@ jobs:
env:
DEBIAN_FRONTEND: noninteractive
run: |
echo "Installing NPM dependencies..."
npm install --force
npm install -g grunt-cli
cd bootstrap
npm install
echo "Generating bootstrap files..."
grunt dist
cp -r dist/. ../ietf/static/ietf/bootstrap/
cd ..
echo "Running build script..."
chmod +x ./dev/deploy/build.sh
sh ./dev/deploy/build.sh
echo "Setting version $PKG_VERSION_STRICT..."
sed -i -r -e "s/^__version__ += '.*'$/__version__ = '$PKG_VERSION_STRICT'/" ietf/__init__.py
echo "Build release tarball..."

12
dev/deploy/build.sh Normal file
View file

@ -0,0 +1,12 @@
#!/bin/bash
echo "Installing NPM dependencies..."
npm install
echo "Building bootstrap 3 assets..."
cd bootstrap
npm install -g grunt-cli
npm install
grunt dist
cp -r dist/. ../ietf/static/ietf/bootstrap/
cd ..

23975
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
{
"devDependencies": {
"browserlist": "latest",
"cypress": "9.0.0",
"cypress-real-events": "1.5.1"
"cypress": "9.5.1",
"cypress-real-events": "1.7.0",
"npm-check-updates": "12.5.2"
},
"dependencies": {
"caniuse-lite": "1.0.30001282",
"@ietf-tools/datatracker-bs3": "latest"
"caniuse-lite": "1.0.30001314"
}
}