Left: | ||
Right: |
OLD | NEW |
---|---|
1 { | 1 { |
2 "name": "adblockplusui", | 2 "name": "adblockplusui", |
3 "private": true, | 3 "private": true, |
4 "description": "Adblock Plus UI", | 4 "description": "Adblock Plus UI", |
5 "scripts": { | 5 "scripts": { |
6 "lint": "npm run lint:js", | 6 "lint": "npm run lint:js", |
7 "lint:js": "eslint ./*.js ./lib/*.js ./ext/*.js", | 7 "lint:js": "eslint ./*.js ./lib/*.js ./ext/*.js", |
8 "prepare": "python2 ensure_dependencies.py", | 8 "prepare": "python2 ensure_dependencies.py", |
9 "start": "http-server & npm run watch", | 9 "start": "http-server & npm run watch", |
10 "bundle": "npm run bundle:desktop-options", | 10 "bundle": "npm run bundle:desktop-options", |
11 "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", | 11 "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
| |
12 "watch": "npm run watch:desktop-options", | 12 "watch": "npm run watch:desktop-options", |
13 "watch:desktop-options": "watch 'npm run bundle:desktop-options' ./js", | 13 "watch:desktop-options": "watch 'npm run bundle:desktop-options' ./js ./css" , |
14 "postinstall": "npm run bundle" | 14 "postinstall": "npm run bundle" |
15 }, | 15 }, |
16 "devDependencies": { | 16 "devDependencies": { |
17 "browserify": "^16.1.0", | 17 "browserify": "^16.1.0", |
18 "browserify-css": "^0.14.0", | |
18 "eslint": "^4.16.0", | 19 "eslint": "^4.16.0", |
19 "eslint-config-eyeo": "^2.0.0", | 20 "eslint-config-eyeo": "^2.0.0", |
20 "http-server": "^0.11.1", | 21 "http-server": "^0.11.1", |
21 "watch": "^1.0.2" | 22 "watch": "^1.0.2" |
22 } | 23 } |
23 } | 24 } |
OLD | NEW |