-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
106 lines (106 loc) · 5.83 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
98
99
100
101
102
103
104
105
106
{
"name": "tic-tac-toe",
"version": "1.6.0",
"description": "Tic Tac Toe Web Application",
"license": "MIT",
"author": "Sergio Alcantara (https://github.com/serg-io)",
"homepage": "https://tic-tac-toe.infuse.host/",
"repository": {
"type": "git",
"url": "git+https://github.com/serg-io/tic-tac-toe.git"
},
"scripts": {
"dev": "npm-run-all clean prebuild:dirs --parallel watch:*",
"dev:css": "npm-run-all lint:css prebuild:css build:css:*",
"dev:index": "npm-run-all prebuild:index build:index:version",
"dev:html": "npm-run-all prebuild:html build:html:*",
"dev:js": "npm-run-all lint:js prebuild:js build:js:*",
"dev:sw": "npm-run-all lint:sw sw:prebuild",
"clean": "rimraf build",
"dist": "npm-run-all clean prebuild:* build:** postbuild:**",
"start": "npm-run-all dist server",
"server": "node src/server.js",
"lint": "npm-run-all lint:*",
"lint:bin": "eslint bin/*.js",
"lint:css": "stylelint src/scss/**/*.scss",
"lint:js": "eslint src/js/*.js",
"lint:sw": "eslint src/sw.js",
"lint:tests": "eslint src/tests/*.js",
"prebuild:dirs": "mkdirp build/dist/v$npm_package_version/css build/dist/v$npm_package_version/js/libs build/prebuild/v$npm_package_version/js/libs",
"prebuild:css": "rsync -rm src/scss/* build/tmp-scss/",
"prebuild:index": "rsync src/index.html build/prebuild/",
"prebuild:html": "html-minifier --collapse-whitespace --remove-comments --input-dir src/html --output-dir build/tmp/html",
"prebuild:js": "rsync -rm src/js/* build/prebuild/v$npm_package_version/js/",
"build:css:version": "find build/tmp-scss -type f -name \"*.scss\" -exec perl -i -pe\"s/\\{\\{\\s*version\\s*\\}\\}/$npm_package_version/g\" {} \\;",
"build:css:compile": "node-sass --output-style expanded --source-map true --source-map-contents true --precision 6 build/tmp-scss/style.scss build/prebuild/v$npm_package_version/css/style.css",
"build:img": "rsync -rm src/img/* build/dist/v$npm_package_version/img/",
"build:index:version": "perl -i -pe\"s/\\{\\{\\s*version\\s*\\}\\}/$npm_package_version/g\" build/prebuild/index.html",
"build:html:version": "find build/tmp/html -type f -name \"*.html\" -exec perl -i -pe\"s/\\{\\{\\s*version\\s*\\}\\}/$npm_package_version/g\" {} \\;",
"build:html:esm": "infuse --configs-path \"../js/libs/infuse.host/configs.js\" --cwd build/tmp html/**/*.html build/prebuild/v$npm_package_version",
"build:js:version": "find build/prebuild/v$npm_package_version/js -type f -name \"*.js\" -exec perl -i -pe\"s/\\{\\{\\s*version\\s*\\}\\}/$npm_package_version/g\" {} \\;",
"build:js:infuse": "rsync --exclude=parse* --exclude=create* --exclude=split* node_modules/infuse.host/src/*.js build/prebuild/v$npm_package_version/js/libs/infuse.host/",
"postbuild:css": "cleancss --source-map --source-map-inline-sources --skip-rebase --output build/dist/v$npm_package_version/css/style.css build/prebuild/v$npm_package_version/css/style.css",
"postbuild:index:minify": "html-minifier --collapse-whitespace --remove-comments --minify-js --output build/dist/index.html build/prebuild/index.html",
"postbuild:html": "bin/minify.js --cwd build/prebuild \"v$npm_package_version/html/**/*.html\" build/dist",
"postbuild:js": "bin/minify.js --cwd build/prebuild \"v$npm_package_version/js/**/*.js\" build/dist",
"postbuild:polyfill": "rsync node_modules/@webcomponents/custom-elements/custom-elements.min.js build/dist/v$npm_package_version/js/libs/",
"postbuild:webpack": "webpack -p",
"postbuild:pwa": "npm run pwa",
"postbuild:sw": "npm run sw",
"pretest": "npm-run-all clean prebuild:dirs prebuild:html prebuild:js build:html:* build:js:* && rsync -rm --exclude=TestEnvironment.js src/tests/*.js build/prebuild/v$npm_package_version/tests/",
"test": "jest",
"preversion": "npm-run-all lint test",
"postversion": "git push && git push --tags",
"pwa": "bin/prebuild.js --cwd src manifest.json build/dist",
"sw": "npm-run-all sw:*",
"sw:prebuild": "bin/prebuild.js --cwd src --data-module bin/sw-data.js sw.js build/prebuild",
"sw:minify": "bin/minify.js --cwd build/prebuild sw.js build/dist",
"watch:css": "nodemon --watch src/scss --ext scss --exec \"npm run dev:css\"",
"watch:index": "nodemon --watch src/index.html --exec \"npm run dev:index\"",
"watch:img": "nodemon --watch src/img --ext svg,jpg --exec \"npm run build:img\"",
"watch:html": "nodemon --watch src/html --ext html --exec \"npm run dev:html\"",
"watch:js": "nodemon --watch src/js --ext js --exec \"npm run dev:js\"",
"watch:pwa": "nodemon --watch src/manifest.json --exec \"npm run pwa\"",
"watch:sw": "nodemon --watch src/sw.js --exec \"npm run dev:sw\"",
"watch:server": "nodemon --watch src/server.js --exec \"npm run server\""
},
"jest": {
"testEnvironment": "<rootDir>/src/tests/TestEnvironment.js",
"testRegex": "build\\/prebuild\\/v.+\\/tests\\/.+\\.js",
"transform": {
"^.+\\.(js|html)$": "babel-jest"
}
},
"dependencies": {
"infuse.host": "^0.3.1",
"koa": "^2.7.0",
"koa-static": "^5.0.0"
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/preset-env": "^7.3.4",
"@webcomponents/custom-elements": "^1.2.1",
"babel-jest": "^24.1.0",
"bootstrap": "^4.3.1",
"clean-css-cli": "^4.2.1",
"eslint": "^5.15.0",
"eslint-config-airbnb-base": "^13.1.0",
"eslint-plugin-import": "^2.16.0",
"glob": "^7.1.3",
"html-minifier": "^3.5.21",
"infuse-cli": "^0.1.1",
"infuse-loader": "^0.2.0",
"jest": "^24.1.0",
"jest-environment-jsdom": "^24.0.0",
"mkdirp": "^0.5.1",
"node-sass": "^4.11.0",
"nodemon": "^1.18.10",
"npm-run-all": "^4.1.5",
"rimraf": "^2.6.3",
"stylelint": "^9.10.1",
"stylelint-config-twbs-bootstrap": "^0.3.0",
"terser": "^3.16.1",
"webpack": "^4.29.6",
"webpack-cli": "^3.2.3"
}
}