-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
54 lines (54 loc) · 2.36 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
{
"name": "BEER",
"version": "0.1.1",
"description": "BEst Epub Reader",
"main": "dist/beer.js",
"scripts": {
"start": "npm run dev",
"clean": "rm -rf dist/ && mkdir dist",
"copy": "npm run copy:html && npm run copy:misc && npm run copy:epubs",
"copy:html": "cp app/index.html dist/",
"copy:misc": "cp app/favicon.ico dist/",
"copy:epubs": "mkdir -p dist/epubs && cp epubs/* dist/epubs/",
"js": "webpack",
"sw": "cat node_modules/jszip/dist/jszip.js > dist/beer-service-worker.js && cat app/sw/file-decryptor.js >> dist/beer-service-worker.js && cat app/sw/beer-service-worker.js >> dist/beer-service-worker.js",
"sw:package": "cat node_modules/jszip/dist/jszip.min.js > dist/beer-service-worker.js && uglifyjs --compress --mangle -- app/sw/file-decryptor.js >> dist/beer-service-worker.js && uglifyjs --compress --mangle -- app/sw/beer-service-worker.js >> dist/beer-service-worker.js",
"build": "npm run copy && npm run js && npm run sw",
"watch": "watch -d -u 'npm run build' app/*",
"watch:html": "onchange 'app/*.html' -- npm run copy:html",
"watch:sw": "onchange 'app/sw/*.js' -- npm run sw",
"predev": "npm run clean",
"dev": "npm run build && parallelshell 'webpack --watch' 'npm run watch:html' 'npm run watch:sw'",
"prepackage": "npm run clean",
"package": "npm run js -- -p && npm run sw:package",
"lint": "eslint --ignore-pattern app/lib/ --env browser --fix --ext .js,.jsx app"
},
"repository": "git+https://github.com/johanpoirier/beer.git",
"keywords": [],
"author": "Johan Poirier <[email protected]> (https://twitter.com/johanpoirier)",
"license": "Apache License 2.0",
"bugs": {
"url": "https://github.com/johanpoirier/beer/issues"
},
"homepage": "https://github.com/johanpoirier/beer#readme",
"devDependencies": {
"@babel/core": "^7.0.0-beta.40",
"@babel/preset-env": "^7.0.0-beta.40",
"@typescript-eslint/eslint-plugin": "^5.60.0",
"babel-loader": "^8.0.0-beta.2",
"eslint": "^8.43.0",
"eslint-config-standard-with-typescript": "^35.0.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-n": "^15.7.0",
"eslint-plugin-promise": "^6.1.1",
"onchange": "^3.3.0",
"parallelshell": "^3.0.2",
"typescript": "^5.1.3",
"uglify-es": "^3.3.10",
"webpack": "^3.11.0"
},
"dependencies": {
"jszip": "^3.1.5"
},
"private": true
}