-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpackage.json
executable file
·59 lines (59 loc) · 2.41 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
{
"name": "TS-project-template",
"version": "2.0.0",
"description": "Simple recipes for building and compiling with the CLI.",
"author": {
"name": "Tom Raaff",
"url": "https://github.com/TomRaaff"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/TomRaaff/TS-project-template"
},
"scripts": {
"start": "npm-run-all -p watch server-start",
"test": "node_modules/karma/bin/karma start",
"clean": "recursive-delete 'dist' && recursive-delete 'compiledjs'",
"ts": "tsc",
"js": "rollup --config",
"css": "node sass.js",
"svg": "svgo -f src/svg dist/svg -r --disable=removeViewBox,removeTitle",
"img": "imagemin src/img/* --out-dir=dist/img --plugin=pngquant --plugin=mozjpeg --plugin=pngcrush --plugin=zopfli",
"copy": "recursive-copy 'src/copy' 'dist'",
"build-dirty": "npm run ts && npm-run-all -p js css svg img copy",
"build": "npm-run-all -s clean build-dirty",
"watch-ts": "chokidar './src/**/*.ts' -c 'npm run ts'",
"watch-css": "chokidar './src/**/*.scss' -c 'npm run css'",
"watch-js": "chokidar './compiledjs/**/*.js' -c 'npm run js'",
"watch-svg": "chokidar './src/**/*.svg' -c 'npm run svg'",
"watch-img": "chokidar './src/img/**/*.*' -c 'npm run img'",
"watch-copy": "chokidar './src/copy/**/*.*' -c 'npm run copy'",
"watch": "npm-run-all -p build watch-ts watch-css watch-js watch-svg watch-img watch-copy",
"server-start": "browser-sync start --files 'dist' --server 'dist'"
},
"devDependencies": {
"@rollup/plugin-node-resolve": "^13.0.0",
"@types/jasmine": "^3.7.8",
"browser-sync": "^2.26.14",
"chokidar-cli": "^2.1.0",
"imagemin-cli": "^6.0.0",
"imagemin-mozjpeg": "^8.0.0",
"imagemin-pngcrush": "^6.0.0",
"imagemin-pngquant": "^8.0.0",
"imagemin-zopfli": "^6.0.0",
"jasmine-core": "^3.8.0",
"karma": "^6.3.4",
"karma-chrome-launcher": "^3.1.0",
"karma-jasmine": "^4.0.1",
"karma-jasmine-html-reporter": "^1.6.0",
"karma-typescript": "^5.5.1",
"npm-run-all": "^4.1.5",
"recursive-fs": "^2.1.0",
"rollup": "^2.6.1",
"rollup-plugin-terser": "^7.0.2",
"sass": "^1.26.5",
"svgo": "^1.3.2",
"typescript": "^4.3.5"
}
}