Skip to content

Commit

Permalink
Merge pull request #140 from geoblocks/build
Browse files Browse the repository at this point in the history
Use parcel targets in package.json
  • Loading branch information
fredj authored Dec 20, 2023
2 parents 107a176 + 5bdd9dc commit 05a5882
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ jobs:

- name: Build
run: npm run build

- name: Build demo
run: npm run build-demo
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,30 @@
"access": "public"
},
"type": "module",
"source": "src/ol-maplibre-layer.ts",
"main": "dist/ol-maplibre-layer.js",
"types": "dist/ol-maplibre-layer.d.ts",
"files": [
"/src",
"/dist"
],
"targets": {
"main": {
"source": "src/ol-maplibre-layer.ts"
},
"demo": {
"context": "browser",
"source": "examples/demo.html",
"distDir": "build",
"publicUrl": "./"
}
},
"scripts": {
"prepack": "npm run build",
"build": "parcel build",
"build-demo": "parcel build --target demo examples/*.html",
"lint": "eslint src/* examples/*.js",
"prettier:check": "prettier --check .",
"prettier:write": "prettier --write .",
"start": "parcel serve examples/*.html",
"start": "parcel serve --target demo",
"typecheck": "tsc",
"gh-pages": "rm -rf build && npm run build-demo && gh-pages -d build"
"gh-pages": "rm -rf build && npm run build && gh-pages -d build"
},
"peerDependencies": {
"maplibre-gl": ">=2.0.4",
Expand Down

0 comments on commit 05a5882

Please sign in to comment.