This repository was archived by the owner on Oct 24, 2019. It is now read-only.
forked from adblockplus/adblockplus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
165 lines (165 loc) · 5.23 KB
/
package.json
File metadata and controls
165 lines (165 loc) · 5.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
{
"name": "adblockplusui",
"private": true,
"description": "Adblock Plus UI",
"scripts": {
"$": "npm-dollar",
"dev-build": "npm run $ bundle && npm run $ dev-build",
"bundle": "npm run $ bundle",
"fonts-gen": "node build/font-generation/index.js",
"lint": "npm run $ lint",
"postinstall": "npm run fonts-gen && npm run bundle",
"start": "http-server & npm run watch",
"test": "npm run $ test",
"watch": "npm run $ watch",
"csv-export": "node build/csv-exporter/main.js -e",
"csv-import": "node build/csv-exporter/main.js -i",
"optimize.svg": "svgo --pretty -i $1",
"optimize.png": "pngquant --skip-if-larger --force --ext .png --speed 1 -- $1"
},
"$": {
"dev-build": [
[
"cd ../adblockpluschrome;",
"git pull --rebase origin $(git rev-parse --abbrev-ref HEAD);",
"cd adblockpluscore;",
"git pull --rebase origin $(git rev-parse --abbrev-ref HEAD);",
"cd ../;",
"SKIP_DEPENDENCY_UPDATES=true ./build.py devenv -t chrome;",
"cd ../adblockplusui;"
]
],
"bundle": {
"day1": [
"$ create.bundle popup-dummy",
"$ create.bundle day1"
],
"desktop-options": {
"css": "$ create.css desktop-options",
"js": "$ create.js ./js/desktop-options.js ./desktop-options.js"
},
"first-run": {
"css": [
"$ create.css first-run",
"$ create.css web"
],
"js": "$ create.js ./js/first-run.js ./first-run.js"
},
"issue-reporter": {
"css": "$ create.css issue-reporter",
"js": "$ create.js ./js/issue-reporter.js ./issue-reporter.js"
},
"popup": "$ create.bundle popup",
"test": [
[
"if [ ! -z $1 ]; then",
" echo \"/* eslint-disable */$(browserify --node ./tests/$1.js)\">./smoke/$1.js;",
"fi"
]
]
},
"create": {
"bundle": {
"css": "$ create.css $1",
"js": "$ create.js ./js/$1.js ./$1.js"
},
"css": "node-sass ./css/$1.scss ./skin/$1.css",
"js": [
"!prod eslint ./js/**/*.js",
"echo \"/* eslint-disable */$(browserify --node $1)\">$2"
],
"test": {
"component": {
"css": "$ create.test.css $1",
"js": [
"$ create.test.js $1",
"$ bundle.test $1"
]
},
"css": [
"node-sass ./css/$1.scss ./smoke/css/$1.css",
"cp -R ./skin ./smoke/"
],
"js": [
"mkdir -p smoke",
"cp -R ./tests/{locale,background.html,$1.*} ./smoke"
]
}
},
"crowdin": {
"download-translations": [
"python build.py gettranslations $CROWDIN_API_KEY",
"npm run fonts-gen"
],
"upload-strings": "python build.py translate $CROWDIN_API_KEY",
"upload-translations": "python build.py uploadtrans $CROWDIN_API_KEY"
},
"lint": {
"css": "stylelint ./build/**/*.css ./css/*.scss ./skin/*.css --ignore-path .gitignore",
"js": "eslint './*.js' './js/**/*.js' './lib/**/*.js' './ext/**/*.js' './build/**/*.js' './mocks/**/*.js'",
"locale": [
"node build/locale-linter/test",
"node build/locale-linter ./locale/**/*.json"
]
},
"test": {
"icons": "cp -R ./skin/icons ./smoke",
"io-checkbox": "$ create.test.component io-checkbox",
"io-element": {
"js": [
"$ create.test.js io-element",
"$ bundle.test io-element"
]
},
"io-filter-search": "$ create.test.component io-filter-search",
"io-filter-list": "$ create.test.component io-filter-list",
"io-filter-table": "$ create.test.component io-filter-table",
"io-highlighter": {
"css": [
"$ create.test.css io-highlighter",
"cp -R ./skin/icons smoke/css",
"cp ./tests/image.base64.txt ./smoke"
],
"js": [
"$ create.test.js io-highlighter",
"$ bundle.test io-highlighter"
]
},
"io-list-box": "$ create.test.component io-list-box",
"io-popout": "$ create.test.component io-popout",
"io-rating": "$ create.test.component io-rating",
"io-scrollbar": "$ create.test.component io-scrollbar",
"io-steps": "$ create.test.component io-steps",
"io-toggle": "$ create.test.component io-toggle",
"io-big-toggle": "$ create.test.component io-big-toggle"
},
"watch": {
"dev-build": "watch 'npm run dev-build' ./css ./js",
"bundle": "watch 'npm run bundle' ./css ./js",
"test": "watch 'npm run test' ./css ./js",
"fonts-gen": "watch 'npm run fonts-gen' ./locale"
}
},
"dependencies": {
"browserify": "^16.2.3",
"document-register-element": "^1.13.1",
"hyperhtml-element": "^3.5.0",
"node-sass": "^4.10.0",
"npm-dollar": "^2.1.3",
"website-defaults": "github:adblockplus/website-defaults#255e4f1",
"local-range": "^0.1.0",
"glob": "^7.1.3"
},
"devDependencies": {
"csv": "^5.0.0",
"eslint": "^5.9.0",
"eslint-config-eyeo": "^2.1.0",
"http-server": "^0.11.1",
"nightmare": "^3.0.1",
"pngquant": "^2.0.1",
"stylelint": "^9.9.0",
"stylelint-config-eyeo": "^1.0.2",
"svgo": "^1.2.0",
"watch": "^1.0.2"
}
}