-
Notifications
You must be signed in to change notification settings - Fork 25
/
package.json
97 lines (97 loc) · 5.26 KB
/
package.json
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
{
"name": "orange-confort-plus",
"description": "Enhance user experience on web sites",
"version": "4.3.5",
"homepage": "https://confort-plus.orange.com/",
"author": "Orange SA",
"config": {
"author": "Orange SA",
"description": "Enhance user experience on web sites",
"page": "https://www.orange.com/"
},
"contributors": [
"Orange SA"
],
"license": "GPL-2.0-only",
"repository": {
"type": "git",
"url": "https://github.com/Orange-OpenSource/Orange-Confort-plus.git"
},
"bugs": {
"url": "https://github.com/Orange-OpenSource/Orange-Confort-plus/issues"
},
"type": "module",
"node": ">=18",
"scripts": {
"start": "concurrently --kill-others \"npm:watch\" \"npm:serve\"",
"serve": "servor docs/ index.html 9010 --browse --reload",
"test": "",
"prebuild": "shx rm -rf dist/{serveur,WebExtension}/*",
"build": "npm run copy && concurrently \"npm:build:*\"",
"postbuild": "shx cp -r dist/serveur/{css,img,js} docs",
"version": "npm run build && git add -A dist/",
"postversion": "npm run zip",
"copy": "concurrently \"npm:copy:*\"",
"copy:serveur": "shx cp -r src/*.txt dist/serveur/ && shx cp -r docs/help dist/serveur/ && shx cp -r docs/cookie.html dist/serveur",
"copy:extension": "shx cp -r src/js dist/WebExtension/ && shx cp -r docs/help dist/WebExtension/ && shx cp -r src/WebExtension/js dist/WebExtension && shx cp -r src/WebExtension/manifest.*.json dist/",
"copy:boosted:css": "shx cp -r node_modules/boosted/dist/css/{boosted,orange-helvetica}.min.{css,css.map} src/boosted/",
"postcopy:boosted:css": "shx cp -r src/boosted/orange-helvetica.min.{css,css.map} docs/css/",
"copy:boosted:fonts": "shx cp -r node_modules/boosted/dist/fonts/HelvNeue{55,75}_W1G.woff2 docs/fonts/",
"prebuild:js": "shx mkdir -p dist/serveur/js",
"build:js": "node build/terser.js --context=serveur",
"postbuild:js": "node build/terser.js --context=minified",
"prebuild:css": "shx mkdir -p dist/WebExtension/css",
"build:css": "postcss src/css/*.css --dir dist/serveur/css/ -m && purgecss --config purgecss.help.config.cjs",
"postbuild:css": "shx cp -r dist/serveur/css/*.{css,map} dist/WebExtension/css/ && shx cp -r dist/serveur/css/help.min.css docs/css/",
"build:html": "html-minifier-terser --file-ext html --input-dir src/site --output-dir docs/ --collapse-whitespace --conservative-collapse --remove-optional-tags --collapse-boolean-attributes --minify-js --minify-css --sort-attributes --sort-class-name",
"postbuild:html": "purgecss --config purgecss.docs.config.cjs",
"build:img:docs": "imagemin docs/img/*.{png,jpg,gif} --out-dir=docs/img --plugin=pngquant --plugin=mozjpeg --plugin=zopfli",
"build:img:webext": "imagemin src/WebExtension/img/*.png --out-dir=dist/WebExtension/img --plugin=pngquant --plugin=zopfli",
"prebuild:img": "shx mkdir -p dist/serveur/img",
"build:img": "imagemin src/img/*.{png,jpg,gif} --out-dir=dist/serveur/img --plugin=pngquant --plugin=mozjpeg --plugin=zopfli --plugin=gifsicle",
"postbuild:img": "shx cp -r src/img/*.{webp,mp4} dist/serveur/img/ && shx cp -r dist/serveur/img/* dist/WebExtension/img/",
"build:fonts": "node build/woff2toBase64.js",
"watch": "concurrently --kill-others \"npm:watch:*\"",
"watch:html": "nodemon --watch src --ext html --exec \"npm run build:html\"",
"watch:css": "nodemon --watch src/css --ext css --exec \"npm run build:css\"",
"watch:img": "nodemon --watch src/img --watch src/WebExtension/img --ext png,gif,jpg --exec \"npm run build:img\"",
"watch:js": "nodemon --watch src/js --ext js --exec \"npm run build:js\"",
"watch:fonts": "nodemon --watch src/fonts --ext woff2 --exec \"npm run build:fonts\"",
"move:manifest:firefox": "shx cp dist/manifest.firefox.json dist/WebExtension/manifest.json",
"move:manifest:chrome": "shx cp dist/manifest.chrome.json dist/WebExtension/manifest.json",
"zip": "npm run zip:firefox && npm run zip:chrome",
"prezip:firefox": "npm run move:manifest:firefox",
"zip:firefox": "cross-env-shell web-ext build -s dist/WebExtension -a ./ -n $npm_package_name-$npm_package_version-firefox.zip -o",
"prezip:chrome": "npm run move:manifest:chrome",
"zip:chrome": "cross-env-shell web-ext build -s dist/WebExtension -a ./ -n $npm_package_name-$npm_package_version-chrome.zip -o",
"lint:ext": "cross-env-shell web-ext lint -s $npm_package_name-$npm_package_version-firefox.zip",
"preload:firefox": "npm run move:manifest:firefox",
"load:firefox": "cross-env-shell web-ext run --source-dir ./dist/WebExtension --start-url=$npm_package_config_page --browser-console",
"preload:chrome": "npm run move:manifest:chrome",
"load:chrome": "cross-env-shell web-ext run --source-dir ./dist/WebExtension --start-url=$npm_package_config_page --target chromium --devtools"
},
"devDependencies": {
"autoprefixer": "^10.4.19",
"boosted": "^5.2.3",
"concurrently": "^8.2.2",
"cross-env": "^7.0.3",
"cssnano": "^7.0.2",
"globby": "^14.0.1",
"html-minifier-terser": "^7.2.0",
"imagemin-cli": "^8.0.0",
"imagemin-gifsicle": "^7.0.0",
"imagemin-mozjpeg": "^10.0.0",
"imagemin-pngquant": "^10.0.0",
"imagemin-svgo": "^11.0.0",
"imagemin-zopfli": "^7.0.0",
"nodemon": "^3.1.3",
"postcss": "^8.4.38",
"postcss-banner": "^4.0.1",
"postcss-cli": "^11.0.0",
"purgecss": "^6.0.0",
"servor": "^4.0.2",
"shx": "^0.3.4",
"terser": "^5.31.0",
"web-ext": "^8.2.0"
}
}