diff options
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | css/main.styl (renamed from chrome/style.css) | 0 | ||||
-rw-r--r-- | package.json | 13 |
3 files changed, 12 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e4d73d7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +chrome/main.css +chrome/bundle.js +node_modules/
\ No newline at end of file diff --git a/chrome/style.css b/css/main.styl index 4ecdb3a..4ecdb3a 100644 --- a/chrome/style.css +++ b/css/main.styl diff --git a/package.json b/package.json index 3cb276a..7d4059c 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,8 @@ "jquery": "~2.1.0", "magnet-uri": "1.x", "read-torrent": "~0.2.0", - "speedometer": "~0.1.2" + "speedometer": "~0.1.2", + "stylus": "~0.42.2" }, "devDependencies": { "tape": "2.x", @@ -58,9 +59,13 @@ "url": "git://github.com/feross/webtorrent.git" }, "scripts": { - "build": "browserify --debug index.js > chrome/bundle.js", - "watch": "watchify index.js -o chrome/bundle.js -dv", + "build-css": "stylus css/main.styl -o chrome/ -c", + "build-js": "browserify --debug index.js > chrome/bundle.js", + "build": "npm run build-js && npm run build-css", + "watch-css": "stylus css/main.styl -o chrome/ -w", + "watch-js": "watchify index.js -o chrome/bundle.js -dv", + "watch": "npm run watch-js & npm run watch-css", "start": "npm run build && ./bin/start.js", "test": "tape test/*.js" } -} +}
\ No newline at end of file |