-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add transpiled ES Module build with microbundle #9
Changes from 2 commits
811c747
7f4f729
2ac133d
120c6a5
68a75cf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/node_modules/ | ||
/package-lock.json | ||
/dist/api | ||
/dist/main.js | ||
/dist/main.* | ||
/dist/sources.* | ||
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,18 +2,25 @@ | |
"name": "@geoblocks/sources", | ||
"version": "0.1.3", | ||
"description": "Geoblocks sources", | ||
"module": "src/index.js", | ||
"main": "dist/sources.js", | ||
gberaudo marked this conversation as resolved.
Show resolved
Hide resolved
|
||
"module": "dist/sources.js", | ||
"source": "src/index.js", | ||
"scripts": { | ||
"eslint": "eslint src/*.js", | ||
"eslint-fix": "eslint src/*.js --fix", | ||
"build": "webpack --mode production", | ||
"build-debug": "webpack --mode development", | ||
"build": "microbundle --format es", | ||
"build-example": "webpack --mode production", | ||
"build-example-debug": "webpack --mode development", | ||
"start": "webpack-dev-server --mode development --content-base dist/ --watch", | ||
"typecheck": "tsc --pretty", | ||
"lint": "npm run eslint && npm run typecheck", | ||
"test": "npm run lint && npm run build && npm run build-debug", | ||
"test": "npm run lint && npm run build && npm run build-example && npm run build-example-debug", | ||
"doc": "typedoc --out dist/api --theme minimal --readme none --hideGenerator --listInvalidSymbolLinks --toc none" | ||
}, | ||
"files": [ | ||
"/src", | ||
"/dist/sources.*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why not just There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same here, |
||
], | ||
"author": "", | ||
"license": "bsd", | ||
"peerDependencies": { | ||
|
@@ -28,6 +35,7 @@ | |
"@types/proj4": "^2.3.4", | ||
"eslint": "5.9.0", | ||
"eslint-config-openlayers": "11.0.0", | ||
"microbundle": "^0.9.0", | ||
"ol": "^5.2.0", | ||
"proj4": "2.5.0", | ||
"tsconfig-paths": "3.7.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Swisstopo from './Swisstopo'; | ||
|
||
export {Swisstopo}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not just
/dist/
?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because
dist/index.html
is (and was already before) part of the git source, it's the example entry point, so it should not be ignored. Ideally it should not be in dist IMHO, I can change that in a follow-up PR if you agree.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 :-)