diff options
author | Feross Aboukhadijeh <feross@feross.org> | 2014-02-06 10:32:10 +0400 |
---|---|---|
committer | Feross Aboukhadijeh <feross@feross.org> | 2014-02-06 10:32:10 +0400 |
commit | 76de2c488792126c5843a1dad919c596cff8e7bf (patch) | |
tree | b49fb9981fcb57c892a3b90b5ba383aee6e4772e | |
parent | a0589bdf19e53ca70144eb71ec960c54e7704a87 (diff) |
add stylus for easier css (#25)
-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 |