Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: package.json

Issue 29710555: Issue 6426 - Start using CSS modularization tool in adblockplusui (Closed)
Patch Set: Created Feb. 27, 2018, 11:37 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« js/desktop-options.js ('K') | « js/desktop-options.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: package.json
===================================================================
--- a/package.json
+++ b/package.json
@@ -3,21 +3,22 @@
"private": true,
"description": "Adblock Plus UI",
"scripts": {
"lint": "npm run lint:js",
"lint:js": "eslint ./*.js ./lib/*.js ./ext/*.js",
"prepare": "python2 ensure_dependencies.py",
"start": "http-server & npm run watch",
"bundle": "npm run bundle:desktop-options",
- "bundle:desktop-options": "eslint ./js/**/*.js && echo '/* eslint-disable */// BUNDLED FILE'>./desktop-options.js && browserify --node --no-bundle-external js/desktop-options.js >> ./desktop-options.js",
+ "bundle:desktop-options": "eslint ./js/**/*.js && echo '/* eslint-disable */// BUNDLED FILE'>./desktop-options.js && browserify --node --no-bundle-external -t [ browserify-css --minify=true --output skin/desktop-options.css ] js/desktop-options.js >> ./desktop-options.js",
saroyanm 2018/02/27 12:06:02 This throws and error for me: Error: Cannot find m
a.giammarchi 2018/02/27 12:31:05 did you run `npm install` before trying to bundle
saroyanm 2018/02/27 12:32:58 Yes. "npm i" was the one throwing error.
a.giammarchi 2018/02/27 12:55:19 can I see your output after `npm run bundle` and a
a.giammarchi 2018/02/27 13:20:59 actually no, it works for me in Linux too. The onl
a.giammarchi 2018/02/27 13:25:55 actually, never mind. Using the `/*!` in the css/d
Thomas Greiner 2018/02/27 13:59:21 What's the reason for minifying the code? I'm not
Thomas Greiner 2018/02/27 13:59:21 Running `npm install` and `npm run bundle` works f
saroyanm 2018/02/27 14:15:19 Sorry. It works for me as well, the issue was that
a.giammarchi 2018/02/27 14:19:36 it makes instantly obvious to developers they shou
Thomas Greiner 2018/02/27 19:41:54 I see your point but it sounds like we're misusing
a.giammarchi 2018/02/28 08:10:18 I don't see what's the point in reading shipped CS
Thomas Greiner 2018/02/28 12:23:14 Again, I do think it's a good idea to make it obvi
a.giammarchi 2018/02/28 13:01:03 I don't have strong feelings here in ABP case but
Thomas Greiner 2018/03/07 13:10:22 Everyone using it is not an argument. They may be
"watch": "npm run watch:desktop-options",
- "watch:desktop-options": "watch 'npm run bundle:desktop-options' ./js",
+ "watch:desktop-options": "watch 'npm run bundle:desktop-options' ./js ./css",
"postinstall": "npm run bundle"
},
"devDependencies": {
"browserify": "^16.1.0",
+ "browserify-css": "^0.14.0",
"eslint": "^4.16.0",
"eslint-config-eyeo": "^2.0.0",
"http-server": "^0.11.1",
"watch": "^1.0.2"
}
}
« js/desktop-options.js ('K') | « js/desktop-options.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld