-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
30 lines (30 loc) · 1.39 KB
/
package.json
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
{
"config": {
"name": "webcamtab",
"src": "src/octoprint_webcamtab/"
},
"scripts": {
"clean": "cd $npm_package_config_src && rm -rf static/dist/",
"build": "npm-run-all clean lint:* -p build:*",
"lint:js": "npx eslint src/",
"build:js": "cd $npm_package_config_src && rollup --format iife --file static/dist/${npm_package_config_name}.js static/js/main.js",
"browsersync": "npm-run-all -p watch:* syncserver",
"watch:py": "cd $npm_package_config_src && onchange '**/*.py' -- npm run octoprint:resync",
"watch:js": "cd $npm_package_config_src && onchange 'static/js/**/*.js' -- npm run build:js",
"syncserver": "cd $npm_package_config_src && browser-sync start --listen localhost --proxy localhost:5000 --files 'static/dist/**' 'templates/**' 'translations/**/*.mo'",
"octoprint": ".env/bin/octoprint daemon --pid $(readlink -f .env/octprint.pid) --basedir $(readlink -f .data)",
"octoprint:start": "npm run octoprint -- start",
"octoprint:stop": "npm run octoprint -- stop",
"octoprint:restart": "npm run octoprint -- restart",
"octoprint:resync": "npm run octoprint:restart && npx browser-sync reload"
},
"devDependencies": {
"browser-sync": "^2.27.5",
"eslint": "^7.32.0",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-plugin-import": "^2.24.2",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0",
"rollup": "^2.58.0"
}
}