Include the full build in the ol package

This commit is contained in:
Tim Schaub
2022-08-28 13:02:23 -05:00
parent 96ffd4113f
commit 219fb093c1
5 changed files with 35 additions and 10 deletions

View File

@@ -20,9 +20,9 @@
"start": "npm run serve-examples",
"serve-examples": "webpack serve --config examples/webpack/config.mjs --mode development",
"build-examples": "shx rm -rf build/examples && webpack --config examples/webpack/config.mjs --mode production",
"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-package": "npm run build-full && npm run copy-css && npm run generate-types && node tasks/prepare-package.js",
"build-index": "shx rm -f build/index.js && npm run transpile && node tasks/generate-index.js",
"build-full": "shx rm -rf build/full && npm run build-index && npx rollup --config config/rollup-full-build.js",
"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",