Build the website

This commit is contained in:
Tim Schaub
2022-08-08 19:57:34 -06:00
parent 3a05a73471
commit 9dff55a8ac
46 changed files with 1479 additions and 597 deletions

View File

@@ -23,7 +23,7 @@
"build-package": "npm run transpile && npm run copy-css && npm run generate-types && node tasks/prepare-package.js",
"build-index": "shx rm -f build/index.js && npm run build-package && node tasks/generate-index.js",
"build-legacy": "shx rm -rf build/legacy && npm run build-index && webpack --config config/webpack-config-legacy-build.mjs && cleancss --source-map src/ol/ol.css -o build/legacy/ol.css",
"build-site": "shx rm -rf build/site && npm run build-examples && npm run apidoc && npm run build-legacy && shx mkdir -p build/site && shx cp site/index.html build/site/ && shx mv build/apidoc build/examples build/legacy build/site/",
"build-site": "shx rm -rf build/site && node site/build.js && npm run build-examples && npm run apidoc && npm run build-legacy && shx mkdir -p build/site/en/latest && shx cp -r site/build/* build/site/ && shx mv build/apidoc build/examples build/legacy build/site/en/latest/",
"copy-css": "shx cp src/ol/ol.css build/ol/ol.css",
"generate-types": "tsc --project config/tsconfig-build.json --declaration --declarationMap --emitDeclarationOnly --outdir build/ol",
"transpile": "shx rm -rf build/ol && shx mkdir -p build/ol && shx cp -rf src/ol build && node tasks/serialize-workers.cjs",
@@ -54,6 +54,9 @@
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.4.4",
"@metalsmith/in-place": "^4.5.0",
"@metalsmith/layouts": "^2.5.1",
"@metalsmith/markdown": "^1.6.0",
"@openlayers/eslint-plugin": "^4.0.0",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^22.0.0",
@@ -81,6 +84,7 @@
"jsdoc-plugin-intersection": "^1.0.4",
"jsdoc-plugin-typescript": "^2.1.1",
"json-stringify-safe": "^5.0.1",
"jstransformer-handlebars": "^1.2.0",
"karma": "^6.3.8",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.2",
@@ -89,6 +93,7 @@
"karma-webpack": "^5.0.0",
"loglevelnext": "^5.0.5",
"marked": "4.0.18",
"metalsmith": "^2.5.0",
"mocha": "10.0.0",
"pixelmatch": "^5.1.0",
"pngjs": "^6.0.0",