-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
34 lines (30 loc) · 1.48 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
31
32
33
34
{
"config": {
"src": "src/octoprint_metadatapreprocessor/"
},
"scripts": {
"//": " --- GENERAL ---",
"start": "run-p serve watch",
"reinstall": "rm -rf .env && rm -rf node_modules && python -m venv .env && .env/bin/pip install --upgrade pip && .env/bin/pip install -e git+https://github.com/OctoPrint/OctoPrint.git#egg=octoprint[develop,plugins] && .env/bin/pip install -e .[develop] && npm install",
"//": " --- LINTING --- ",
"lint:py": ".env/bin/flake8",
"lint": "run-s lint:*",
"//": " --- OCTOPRINT --- ",
"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",
"//": " --- SERVING --- ",
"serve": "npm run octoprint:start && cd $npm_package_config_src && browser-sync start --port 8000 --proxy localhost:5000 --reload-debounce 500 --files 'static/dist/**' 'templates/**' 'translations/**/*.mo'",
"kill": "npm run octoprint:stop && lsof -n -i:8000 | grep LISTEN | awk '{print $2}' | xargs kill -SIGTERM",
"reload": "npm run octoprint:restart && browser-sync reload",
"//": " --- WATCHING --- ",
"watch:py": "cd $npm_package_config_src && onchange '**/*.py' -- npm run reload",
"watch": "run-p watch:*"
},
"devDependencies": {
"browser-sync": "^2.27.5",
"npm-run-all": "^4.1.5",
"onchange": "^7.1.0"
}
}