mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 13:37:58 +01:00
Switching to babel
This commit is contained in:
parent
580b41413f
commit
cfcd839baa
19
.babelrc
Normal file
19
.babelrc
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
"env": {
|
||||||
|
// transpile to common node & browser compatible js, keeping modules
|
||||||
|
"module": {
|
||||||
|
"presets": [
|
||||||
|
["latest", {
|
||||||
|
"modules": false
|
||||||
|
}]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
// transpile to common node & browser compatible js, using commonjs
|
||||||
|
"main": {
|
||||||
|
"presets": ["latest"]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"plugins": [
|
||||||
|
"babel-plugin-transform-object-rest-spread"
|
||||||
|
]
|
||||||
|
}
|
7
.gitignore
vendored
7
.gitignore
vendored
@ -1,8 +1,9 @@
|
|||||||
|
|
||||||
*.DS_Store
|
*.DS_Store
|
||||||
|
|
||||||
jspm_packages/*
|
jspm_package
|
||||||
|
|
||||||
node_modules/*
|
node_modules
|
||||||
|
|
||||||
bundle.js
|
lib
|
||||||
|
module
|
4
.npmignore
Normal file
4
.npmignore
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
node_modules
|
||||||
|
jspm_packages
|
||||||
|
example
|
||||||
|
simpleExample
|
1623
package-lock.json
generated
Normal file
1623
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
112
package.json
112
package.json
@ -1,91 +1,29 @@
|
|||||||
{
|
{
|
||||||
"jspm": {
|
"name": "doodle3d-slicer",
|
||||||
"name": "slicer",
|
"version": "0.0.1",
|
||||||
"main": "index.js",
|
"description": "JavaScript gcode slicer, Intended to use with the Doodle3D WiFi-Box # Usage",
|
||||||
"directories": {
|
"main": "lib/index.js",
|
||||||
"lib": "src"
|
"module": "module/index.js",
|
||||||
},
|
"esnext": "src/index.js",
|
||||||
"dependencies": {
|
"scripts": {
|
||||||
"Doodle3D/clipper-js": "github:Doodle3D/clipper-js@master",
|
"build": "npm run build:main && npm run build:module",
|
||||||
"clipper-js": "github:Doodle3D/clipper-js@1.0.2",
|
"build:main": "BABEL_ENV=main babel src -s -d lib",
|
||||||
"js-yaml": "npm:js-yaml@^3.9.0",
|
"build:module": "BABEL_ENV=module babel src -s -d module"
|
||||||
"json": "github:systemjs/plugin-json@^0.1.2",
|
|
||||||
"text": "github:systemjs/plugin-text@^0.0.11",
|
|
||||||
"three": "npm:three@0.83.0",
|
|
||||||
"worker": "github:casperlamboo/plugin-worker@master"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"babel-plugin-transform-react-jsx": "npm:babel-plugin-transform-react-jsx@^6.8.0",
|
|
||||||
"babel-runtime": "npm:babel-runtime@^5.1.13",
|
|
||||||
"core-js": "npm:core-js@^1.2.0",
|
|
||||||
"file-saver": "npm:file-saver@^1.3.3",
|
|
||||||
"domain": "github:jspm/nodelibs-domain@^0.2.0-alpha",
|
|
||||||
"https": "github:jspm/nodelibs-https@^0.2.0-alpha",
|
|
||||||
"plugin-babel": "npm:systemjs-plugin-babel@^0.0.12",
|
|
||||||
"react": "npm:react@^15.3.2",
|
|
||||||
"react-dom": "npm:react-dom@^15.3.2",
|
|
||||||
"zlib": "github:jspm/nodelibs-zlib@^0.2.0-alpha"
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"assert": "github:jspm/nodelibs-assert@^0.2.0-alpha",
|
|
||||||
"buffer": "github:jspm/nodelibs-buffer@^0.2.0-alpha",
|
|
||||||
"child_process": "github:jspm/nodelibs-child_process@^0.2.0-alpha",
|
|
||||||
"constants": "github:jspm/nodelibs-constants@^0.2.0-alpha",
|
|
||||||
"crypto": "github:jspm/nodelibs-crypto@^0.2.0-alpha",
|
|
||||||
"events": "github:jspm/nodelibs-events@^0.2.0-alpha",
|
|
||||||
"fs": "github:jspm/nodelibs-fs@^0.2.0-alpha",
|
|
||||||
"http": "github:jspm/nodelibs-http@^0.2.0-alpha",
|
|
||||||
"module": "npm:jspm-nodelibs-module@^0.2.0",
|
|
||||||
"os": "github:jspm/nodelibs-os@^0.2.0-alpha",
|
|
||||||
"path": "github:jspm/nodelibs-path@^0.2.0-alpha",
|
|
||||||
"process": "github:jspm/nodelibs-process@^0.2.0-alpha",
|
|
||||||
"stream": "github:jspm/nodelibs-stream@^0.2.0-alpha",
|
|
||||||
"string_decoder": "github:jspm/nodelibs-string_decoder@^0.2.0-alpha",
|
|
||||||
"tty": "npm:jspm-nodelibs-tty@^0.2.0",
|
|
||||||
"url": "github:jspm/nodelibs-url@^0.2.0-alpha",
|
|
||||||
"util": "github:jspm/nodelibs-util@^0.2.0-alpha",
|
|
||||||
"vm": "github:jspm/nodelibs-vm@^0.2.0-alpha"
|
|
||||||
},
|
|
||||||
"overrides": {
|
|
||||||
"npm:babel-runtime@5.8.38": {
|
|
||||||
"main": false,
|
|
||||||
"dependencies": {},
|
|
||||||
"optionalDependencies": {
|
|
||||||
"core-js": "^1.2.0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"npm:browserify-zlib@0.1.4": {
|
|
||||||
"dependencies": {
|
|
||||||
"readable-stream": "^2.0.2",
|
|
||||||
"pako": "~0.2.0"
|
|
||||||
},
|
|
||||||
"map": {
|
|
||||||
"_stream_transform": "readable-stream/transform"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"npm:inherits@2.0.3": {
|
|
||||||
"ignore": [
|
|
||||||
"test.js"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"npm:lodash@4.16.4": {
|
|
||||||
"map": {
|
|
||||||
"buffer": "@empty",
|
|
||||||
"process": "@empty"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"npm:pbkdf2@3.0.12": {
|
|
||||||
"main": "browser.js"
|
|
||||||
},
|
|
||||||
"npm:safe-buffer@5.1.1": {
|
|
||||||
"browser": "index.js"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"js-yaml": "^3.9.0"
|
|
||||||
},
|
},
|
||||||
|
"dependencies": {},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"jspm": "^0.17.0-beta.28"
|
"babel-cli": "^6.24.1",
|
||||||
}
|
"babel-plugin-transform-object-rest-spread": "^6.23.0",
|
||||||
|
"babel-preset-latest": "^6.24.1"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/Doodle3D/Doodle3D-Slicer.git"
|
||||||
|
},
|
||||||
|
"author": "",
|
||||||
|
"license": "ISC",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/Doodle3D/Doodle3D-Slicer/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/Doodle3D/Doodle3D-Slicer#readme"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user