Browse Source

Update package.json

Lutz Roeder 7 years ago
parent
commit
a66021c005
2 changed files with 9 additions and 6 deletions
  1. 7 0
      Makefile
  2. 2 6
      package.json

+ 7 - 0
Makefile

@@ -5,6 +5,9 @@ build: clean lint build_python build_electron
 
 publish: clean lint publish_github_electron publish_pip publish_github_pages publish_cask
 
+pull:
+	git pull --rebase --prune
+
 install:
 	rm -rf ./node_modules
 	npm install
@@ -17,6 +20,10 @@ reset:
 	rm -rf ./node_modules
 	rm -rf ./third_party
 
+update:
+	@[ -d node_modules ] || npm install
+	./tools/update
+
 build_python:
 	@[ -d node_modules ] || npm install
 	rm -rf ./build/python

+ 2 - 6
package.json

@@ -11,12 +11,8 @@
     "repository": "lutzroeder/netron",
     "main": "src/app.js",
     "scripts": {
-        "reset": "git fetch -p && git reset --hard origin/$(git rev-parse --abbrev-ref HEAD)",
-        "clean": "rm -rf ./build ./node_modules ./third_party",
         "start": "[ -d node_modules ] || npm install && npx electron .",
-        "server": "[ -d node_modules ] || npm install && rm -rf build/python && python setup.py --quiet build && PYTHONPATH=build/python/lib python -c 'import netron; netron.main()' $@",
-        "update": "[ -d node_modules ] || npm install && ./tools/update",
-        "test": "[ -d node_modules ] || npm install && node ./test/test.js"
+        "start_server": "[ -d node_modules ] || npm install && rm -rf build/python && python setup.py --quiet build && PYTHONPATH=build/python/lib python -c 'import netron; netron.main()' $@"
     },
     "dependencies": {
         "d3": "5.9.2",
@@ -34,7 +30,7 @@
     "devDependencies": {
         "electron": "4.1.0",
         "electron-builder": "20.39.0",
-        "eslint": "5.15.2",
+        "eslint": "5.15.3",
         "xmldom": "0.1.27"
     }
 }