move example

feature/comb-binary-heap
casperlamboo 5 years ago
parent 2c2bbeda53
commit 2d0f628743
  1. 4
      .gitignore
  2. 2
      .npmignore
  3. 5812
      example/package-lock.json
  4. 36
      example/package.json
  5. 2
      index.js
  6. 0
      models/Doodle.json
  7. 0
      models/combingtest.json
  8. 0
      models/error.json
  9. 0
      models/shape.json
  10. 0
      models/test.json
  11. 3856
      package-lock.json
  12. 16
      package.json
  13. 2
      webpack.config.js

4
.gitignore vendored

@ -1,10 +1,8 @@
*.DS_Store
jspm_package
node_modules
lib
module
dist
dist

@ -1,4 +1,2 @@
node_modules
jspm_packages
example
simpleExample

File diff suppressed because it is too large Load Diff

@ -1,36 +0,0 @@
{
"name": "doodle3d-simple-example",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"build": "webpack -p",
"start": "webpack-dev-server -w"
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-polyfill": "^6.23.0",
"file-saver": "^1.3.3",
"html-webpack-template": "^6.0.2",
"imports-loader": "^0.7.1",
"material-ui": "^0.19.4",
"react": "^16.1.0",
"react-dom": "^16.1.0",
"react-tap-event-plugin": "^3.0.2",
"three": "^0.83.0",
"url-loader": "^0.5.9"
},
"devDependencies": {
"babel-plugin-transform-runtime": "^6.23.0",
"babel-core": "^6.25.0",
"babel-loader": "^7.1.1",
"babel-plugin-transform-object-rest-spread": "^6.23.0",
"babel-preset-latest": "^6.24.1",
"html-webpack-plugin": "^2.29.0",
"webpack": "^3.3.0",
"webpack-dev-server": "^2.5.1",
"worker-loader": "^0.8.1",
"yml-loader": "^2.1.0"
}
}

@ -15,7 +15,7 @@ document.body.style.height = '100%';
document.documentElement.style.height = '100%'
document.getElementById('app').style.height = '100%';
const downloadGCode = gcode => {
const downloadGCode = ({ gcode: { gcode } }) => {
const file = new File([gcode], 'gcode.gcode', { type: 'text/plain' });
fileSaver.saveAs(file);
};

3856
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -6,6 +6,7 @@
"module": "module/index.js",
"esnext": "src/index.js",
"scripts": {
"start": "webpack-dev-server -w",
"prepare": "npm run build",
"build": "npm run build:main && npm run build:main:settings && npm run build:module && npm run build:module:settings ",
"build:main": "BABEL_ENV=main babel src -s -d lib",
@ -37,7 +38,20 @@
"babel-core": "6.24.1",
"babel-loader": "7.0.0",
"babel-plugin-add-module-exports": "0.2.1",
"babel-preset-es2015": "6.24.1"
"babel-preset-es2015": "6.24.1",
"babel-polyfill": "^6.23.0",
"file-saver": "^1.3.3",
"html-webpack-template": "^6.0.2",
"imports-loader": "^0.7.1",
"material-ui": "^0.19.4",
"react-tap-event-plugin": "^3.0.2",
"url-loader": "^0.5.9",
"babel-plugin-transform-runtime": "^6.23.0",
"html-webpack-plugin": "^2.29.0",
"webpack": "^3.3.0",
"webpack-dev-server": "^2.5.1",
"worker-loader": "^0.8.1",
"yml-loader": "^2.1.0"
},
"repository": {
"type": "git",

@ -26,7 +26,7 @@ module.exports = {
},
resolve: {
alias: {
'doodle3d-slicer': path.resolve(__dirname, '../src/index.js'),
'doodle3d-slicer': path.resolve(__dirname, 'src/'),
'clipper-lib': '@doodle3d/clipper-lib',
'clipper-js': '@doodle3d/clipper-js'
}
Loading…
Cancel
Save