Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- run: npm ci
- run: npm run setup-website
- run: npm run ci-xvfb
- run: npm run validate-es5
- run: npm run ci-build-website
- uses: codecov/codecov-action@v5
with:
Expand Down
183 changes: 116 additions & 67 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@babel/preset-env": "^7.16.5",
"@fontsource/lato": "^5.1.1",
"@jsdevtools/coverage-istanbul-loader": "^3.0.5",
"acorn": "^8.15.0",
"babel-loader": "^10.0.0",
"babel-plugin-istanbul": "^7.0.0",
"bootstrap": "^5.0.0",
Expand Down Expand Up @@ -108,7 +109,7 @@
"glob": "^13.0.0"
},
"vtk.js": {
"xmlbuilder2": "^4.0.0"
"xmlbuilder2": "^4.0.0"
}
},
"release": {
Expand Down Expand Up @@ -176,6 +177,7 @@
"setup-website": "cd website && npm install",
"build-website": "npm-run-all ci-build ci-build-website",
"ci-build-website": "cp -a dist/built/. website/source/built && bash -c '(npm run build-website-examples & npm run build-website-tutorials & wait -n && wait -n)' && cd dist && cp -ar data ../website/source/. && rm -rf ../website/source/data/tiles && rm -rf ../website/source/data/tiles.tgz && rm -rf ../website/source/data/base-images && rm -rf ../website/source/data/base-images.tgz && cp -ar apidocs/. ../website/source/apidocs && cd ../website && npm install && rm -f db.json && npx hexo generate",
"validate-es5": "node -e \"const fs=require('fs'),acorn=require('acorn');fs.readdirSync('dist/built').forEach(f=>{if(f.match(/^geo\\\\.lean.*\\.js$/)){try{acorn.parse(fs.readFileSync('dist/built/'+f,'utf8'),{ecmaVersion:5})}catch(e){console.error('ES5 syntax error in dist/built/'+f+':',e.message);process.exit(1)}}});console.log('All files in dist/built pass ES5 syntax check.')\"",
"prepublishOnly": "npm run build && cp dist/built/*.js .",
"semantic-release": "semantic-release"
},
Expand Down
6 changes: 4 additions & 2 deletions webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ module.exports = {
test: /\.(js|cjs)$/,
include: [
path.resolve('src'),
/node_modules\/@velipso\/polybool/,
/node_modules\/color-name/,
/node_modules\/earcut/,
/node_modules\/kdbush/,
/node_modules\/wkt-parser/,
/node_modules\/@velipso\/polybool/
/node_modules\/proj4/,
/node_modules\/wkt-parser/
],
use: [{
loader: 'babel-loader',
Expand Down