-
-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use babel-polyfill and Browserify to get full ES5 compatibility
- Loading branch information
1 parent
d893a9b
commit bbd2e6d
Showing
6 changed files
with
24 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "jsts", | ||
"description": "A JavaScript library of spatial predicates and functions for processing geometry", | ||
"version": "1.0.0-rc5", | ||
"version": "1.0.0-rc6", | ||
"author": "Björn Harrtell <[email protected]>", | ||
"keywords": [ | ||
"JSTS", | ||
|
@@ -11,19 +11,23 @@ | |
"Topology", | ||
"Geometry" | ||
], | ||
"license" : "(BSD-3-Clause OR EPL-1.0)", | ||
"license": "(BSD-3-Clause OR EPL-1.0)", | ||
"devDependencies": { | ||
"babel-cli": "6.5.1", | ||
"babel-preset-es2015": "6.5.0", | ||
"babel-plugin-transform-inline-environment-variables": "6.5.0", | ||
"babel-polyfill": "6.5.0", | ||
"babel-preset-es2015": "6.5.0", | ||
"babel-regenerator-runtime": "^6.5.0", | ||
"babel-register": "6.5.2", | ||
"browserify": "13.0.0", | ||
"cheerio": "0.20.0", | ||
"core-js": "2.1.1", | ||
"expect.js": "0.3.1", | ||
"jsdoc": "jsdoc3/jsdoc", | ||
"mocha": "2.4.5", | ||
"rollup": "0.25.4", | ||
"uglify-js": "2.6.1", | ||
"jsdoc": "jsdoc3/jsdoc" | ||
"rollup-plugin-node-resolve": "1.4.0", | ||
"uglify-js": "2.6.1" | ||
}, | ||
"main": "dist/jsts.min.js", | ||
"engines": { | ||
|
@@ -46,6 +50,6 @@ | |
"build jsdoc es6": "jsdoc -c doc/es6.json", | ||
"build jsdoc es5": "rollup -c rollup.config.node.js > doc/jsts.js && jsdoc -c doc/es5.json", | ||
"build node": "rollup -c rollup.config.node.js | GITHASH=$(git rev-parse --short HEAD) babel --presets es2015 --plugins transform-inline-environment-variables | uglifyjs -c -m --screw-ie8 | (cat license.txt && cat) > dist/jsts.min.js", | ||
"build browser": "rollup -c rollup.config.browser.js | GITHASH=$(git rev-parse --short HEAD) babel --presets es2015 --plugins transform-inline-environment-variables | uglifyjs -c -m --screw-ie8 | (cat license.txt && cat) > dist/jsts.min.js" | ||
"build browser": "rollup -c rollup.config.browser.js | GITHASH=$(git rev-parse --short HEAD) babel --presets es2015 --plugins transform-inline-environment-variables | browserify - | uglifyjs -c -m --screw-ie8 | (cat license.txt && cat) > dist/jsts.min.js" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
|
||
export default { | ||
entry: 'src/browser.js', | ||
format: 'iife', | ||
moduleName: 'jsts' | ||
moduleName: 'jsts', | ||
plugins: [ | ||
nodeResolve({}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
import nodeResolve from 'rollup-plugin-node-resolve' | ||
|
||
export default { | ||
entry: 'src/jsts.js', | ||
format: 'cjs' | ||
format: 'cjs', | ||
plugins: [ | ||
nodeResolve({}) | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters