fix: docs update script

This commit is contained in:
Stephan Meijer
2020-05-23 15:10:43 +02:00
parent df24af1b37
commit 8f88c91d74

View File

@@ -23,7 +23,7 @@
"./": "./"
},
"scripts": {
"clean": "rimraf ./dist",
"clean": "rimraf ./dist .docz/dist",
"start": "concurrently npm:build:watch npm:docz:dev",
"build": "run-p build:dist build:lib build:css",
"build:dist": "microbundle build --external leaflet --globals leaflet=L --format es,cjs,umd",
@@ -35,15 +35,12 @@
"docz:dev": "docz dev",
"docz:build": "docz build --base /leaflet-geosearch/",
"docz:serve": "docz build && docz serve",
"docs:update": "run-s clean build && npm run docz:build && git checkout gh-pages && find .docz/dist -name '*.js.map' -delete && cp -r .docz/dist/* . && git add . && git commit -m \"update docs\" && git checkout - && git push origin gh-pages",
"docs:update": "run-s clean build docz:build && git checkout gh-pages && find . -maxdepth 1 -type f -not -path '*/\\.*' -delete && cp -r .docz/dist/* . && git add . && git commit -m \"update docs\" && git checkout - && git push origin gh-pages",
"prepublish": "run-s test clean build",
"ci:lint": "eslint '{docs,src,test}/**/*.{js,ts,tsx}' -c ./.eslintrc.js",
"ci:tsc": "tsc --noEmit --project ./tsconfig.json",
"ci:test": "jest --ci"
},
"mangle": {
"regex": "^_"
},
"files": [
"src",
"dist",