This repository has been archived by the owner on Jan 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
102 lines (102 loc) · 4.29 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
{
"name": "timespent",
"version": "0.1.0",
"description": "[![Build Status](https://travis-ci.org/announce/timespent.svg?branch=master)](https://travis-ci.org/announce/timespent)",
"scripts": {
"test": "npm-run-all clean lint bundle",
"lint": "npm-run-all lint:**",
"lint:js": "standard --fix",
"lint:css": "csslint src/**/*.css",
"lint:shell": "docker run --rm -v $PWD:/mnt koalaman/shellcheck:v0.5.0 --exclude=SC1090 script/*.bash",
"lint:md": "markdownlint README.md",
"image": "npm-run-all image:**",
"im": "docker run -v $(pwd)/src/crx/image:/app --rm -t acleancoder/imagemagick-full:0.0.2",
"image:icon:16": "npm run im -- convert -size 16x16 -background '#0052CC' -fill white -gravity center label:TS /app/icon_16.png",
"image:icon:32": "npm run im -- convert -size 32x32 -background '#0052CC' -fill white -gravity center label:timespent /app/icon_32.png",
"image:icon:48": "npm run im -- convert -size 48x48 -background '#0052CC' -fill white -gravity center label:timespent /app/icon_48.png",
"image:icon:128": "npm run im -- convert -size 128x128 -background '#0052CC' -fill white -gravity center label:timespent /app/icon_128.png",
"watch": "npm-run-all --parallel watch:**",
"watch:crx:js": "onchange --delay 100 '*.json' 'src/**/*.*js' 'script/**/*.js' -- npm-run-all lint:js bundle:crx:js bundle:crx:ejs notify",
"watch:crx:manifest": "onchange --delay 1000 'src/crx/manifest.json' -- npm-run-all lint:js bundle:crx:manifest notify",
"watch:crx:assets": "onchange --delay 1000 'src/**/*.{html,css,json}' 'src/**/image' -- npm-run-all lint:css bundle:crx:assets notify",
"watch:shell": "onchange --delay 1000 'script/**/*.*sh' -- npm-run-all lint:shell notify",
"watch:md": "onchange --delay 1000 '*.md' -- npm-run-all lint:md notify",
"build": "npm-run-all clean image bundle compress",
"notify": "./script/notify.bash $?",
"bundle": "npm-run-all bundle:** notify",
"bundle:script": "babel script -d dist/script",
"bundle:crx:manifest": "node dist/script/manifest.json.js > dist/crx/manifest.json",
"bundle:crx:secret": "node dist/script/inject-secret.js > config/__secret.json",
"bundle:crx:base64": "node dist/script/convert-image-base64.js > src/crx/image/base64.json",
"bundle:crx:assets": "rsync -aP --include='*/' --include='*.png' --include='*.html' --include='*.css' --exclude='*' src/crx/ dist/crx",
"bundle:crx:js": "find src/crx -type f -name '*.js' -print0 | xargs -0 -L 1 -I{} sh -c 'browserify $1 -o dist/crx/$(basename $1)' - {}",
"bundle:crx:ejs": "ejs-cli --base-dir src/crx \"form*.html.ejs\" --out dist/crx --options src/crx/image/base64.json",
"clean": "rm -fr dist/* && mkdir -p dist/crx/image dist/script",
"compress": "zip -r var/$(date +%s).zip dist/crx",
"prestart": "yarn install",
"start": "npm-run-all clean lint bundle watch"
},
"devDependencies": {
"argparse": "^1.0.10",
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-flow": "^6.23.0",
"babelify": "^8.0.0",
"base64-img": "^1.0.4",
"brfs": "^2.0.0",
"browserify": "^16.2.2",
"csslint": "^1.0.5",
"ejs": "^2.6.1",
"ejs-cli": "^2.0.1",
"eslint-plugin-flowtype": "^2.50.0",
"flow-bin": "^0.79.1",
"font-awesome": "^4.7.0",
"jquery": "^3.3.1",
"markdownlint-cli": "^0.13.0",
"npm-run-all": "^4.1.3",
"onchange": "^4.1.0",
"standard": "^11.0.1",
"uglify-js": "^3.4.7",
"uuid": "^3.3.2"
},
"standard": {
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"globals": [
"chrome"
]
},
"browserify": {
"transform": [
"brfs",
[
"babelify",
{
"presets": [
"env",
"flow"
],
"plugins": [
"transform-object-rest-spread"
]
}
]
]
},
"main": "index.js",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/announce/timespent.git"
},
"author": "Kenta Yamamoto <kyamamoto@atlassian.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/announce/timespent/issues"
},
"homepage": "https://github.com/announce/timespent#readme"
}