-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
114 lines (114 loc) · 4.58 KB
/
package.json
File metadata and controls
114 lines (114 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{
"name": "@jgphilpott/polyslice",
"version": "26.4.0",
"description": "Where three.js intersects the physical world, slice your creations into life!",
"main": "dist/index.js",
"module": "dist/index.esm.js",
"browser": "dist/index.browser.js",
"files": [
"dist",
"src",
"README.md",
"LICENSE"
],
"scripts": {
"compile": "npx coffee -cb src/",
"pretest": "npm run compile",
"build": "npm run compile && npm run build:node && npm run build:browser && npm run build:browser:esm",
"build:node": "npm run build:cjs && npm run build:esm",
"build:browser": "esbuild src/index.js --bundle --platform=browser --format=iife --global-name=Polyslice --outfile=dist/index.browser.js --external:serialport",
"build:browser:esm": "esbuild src/index.js --bundle --platform=browser --format=esm --outfile=dist/index.browser.esm.js --external:three --external:serialport --alias:@jgphilpott/polytree=./node_modules/@jgphilpott/polytree/polytree.bundle.browser.esm.js --alias:three-subdivide=./node_modules/three-subdivide/build/index.module.js",
"build:cjs": "esbuild src/index.js --bundle --platform=node --format=cjs --outfile=dist/index.js --packages=external",
"build:esm": "esbuild src/index.js --bundle --platform=node --format=esm --outfile=dist/index.esm.js --packages=external",
"build:minify": "uglifyjs dist/index.js -o dist/index.min.js --compress --mangle && uglifyjs dist/index.browser.js -o dist/index.browser.min.js --compress --mangle",
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"test:watch": "node --experimental-vm-modules node_modules/jest/bin/jest.js --watch",
"test:coverage": "node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage",
"slice": "npm run slice:adhesion && npm run slice:supports && npm run slice:infill && npm run slice:wayfinding && npm run slice:skin && npm run slice:matryoshka && npm run slice:benchmarks",
"slice:adhesion": "npm run compile && node examples/scripts/slice-adhesion.js",
"slice:supports": "npm run compile && node examples/scripts/slice-supports.js",
"slice:infill": "npm run compile && node examples/scripts/slice-shapes.js",
"slice:wayfinding": "npm run compile && node examples/scripts/slice-holes.js && node examples/scripts/slice-pillars.js",
"slice:skin": "npm run compile && node examples/scripts/slice-arch.js && node examples/scripts/slice-dome.js && node examples/scripts/slice-pyramid.js",
"slice:matryoshka": "npm run compile && node examples/scripts/slice-matryoshka.js",
"slice:benchmarks": "npm run compile && node examples/scripts/slice-lego.js && node examples/scripts/slice-piggy.js && node examples/scripts/slice-benchy.js low-poly",
"lint": "eslint src/**/*.js",
"lint:fix": "eslint src/**/*.js --fix",
"format": "prettier --write src/**/*.js",
"dev": "node examples/scripts/basic.js",
"prepublishOnly": "npm run build && npm run build:minify"
},
"keywords": [
"additive-manufacturing",
"3d-printing",
"three.js",
"slicer",
"slicing",
"gcode",
"mesh",
"3d",
"fdm",
"sla"
],
"author": "Jacob Philpott <jacob.philpott@gmx.com> (https://github.com/jgphilpott)",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/jgphilpott/polyslice.git"
},
"bugs": {
"url": "https://github.com/jgphilpott/polyslice/issues"
},
"homepage": "https://github.com/jgphilpott/polyslice#readme",
"engines": {
"node": ">=14.0.0"
},
"dependencies": {
"@jgphilpott/polyconvert": "^1.0.7",
"@jgphilpott/polytree": "^0.1.9",
"polygon-clipping": "^0.15.7",
"three": "^0.184.0",
"three-subdivide": "^1.1.5"
},
"peerDependencies": {
"@jgphilpott/polytree": "^0.1.8",
"three": "^0.183.2",
"three-subdivide": "^1.1.5"
},
"optionalDependencies": {
"serialport": "^13.0.0"
},
"devDependencies": {
"@dgreenheck/three-pinata": "^2.0.1",
"coffeescript": "^2.7.0",
"esbuild": "^0.28.0",
"eslint": "^10.3.0",
"eslint-config-prettier": "^10.1.8",
"jest": "^30.3.0",
"prettier": "^3.8.3",
"three-bvh-csg": "^0.0.18",
"three-mesh-bvh": "^0.9.9",
"uglify-js": "^3.19.3"
},
"jest": {
"testEnvironment": "node",
"testMatch": [
"<rootDir>/src/**/*.test.js"
],
"collectCoverageFrom": [
"src/**/*.js",
"!src/**/*.test.js",
"!src/**/*.test.coffee"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"lcov",
"html"
],
"transform": {},
"transformIgnorePatterns": [
"node_modules/(?!(three)/)"
]
}
}