generated from chiffre-io/template-library
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
126 lines (126 loc) · 3.37 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"name": "@chiffre/analytics-tracker",
"version": "0.0.0-semantically-released",
"description": "Tracker script for Chiffre Analytics",
"main": "lib/index.js",
"types": "lib/types.d.ts",
"license": "MIT",
"author": {
"name": "François Best",
"email": "francois.best@chiffre.io",
"url": "https://chiffre.io"
},
"repository": {
"type": "git",
"url": "https://github.com/chiffre-io/analytics-tracker"
},
"keywords": [
"chiffre",
"analytics"
],
"publishConfig": {
"access": "public"
},
"scripts": {
"test": "jest --coverage",
"test:watch": "jest --watch",
"build:clean": "rm -rf ./dist ./lib ./coverage",
"build:version": "ts-node ./scripts/generateVersion.ts",
"build:ts": "tsc",
"build:sha1": "git rev-parse HEAD > ./lib/.gitref",
"build:esbuild": "ts-node ./scripts/build.ts",
"build:public": "cp -rf ./public/ ./dist/",
"build:pull": "mkdir -p ./dist && curl -s $DEPLOYMENT_URL/analytics.js > ./dist/analytics.js",
"build:archive": "ts-node ./scripts/archive.ts",
"build:manifest": "ls -1 ./dist/*.js | cut -c8- > ./dist/manifest.txt ",
"build:sign": "ts-node ./scripts/sign.ts",
"build:size": "echo $(cat ./dist/analytics.js | wc -c) bytes unzipped && echo $(cat ./dist/analytics.js | gzip -kc7 | wc -c) bytes gzipped",
"build:analyze": "ts-node ./scripts/analyze.ts",
"build:npm": "run-s build:ts",
"build:bundle": "run-s build:version build:esbuild build:analyze build:sign build:public build:size build:archive",
"postinstall": "node ./scripts/postinstall.js",
"deploy": "surge -p ./dist -d $DEPLOYMENT_URL",
"ci": "run-s build:clean build:pull build:archive build:npm postinstall build:bundle build:manifest"
},
"dependencies": {
"@chiffre/analytics-core": "^2.1.0",
"@chiffre/crypto-box": "^1.0.1",
"read-pkg": "^5.2.0"
},
"devDependencies": {
"@chiffre/crypto-sign": "^1.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@types/git-semver-tags": "^4.1.0",
"@types/jest": "^26.0.15",
"@types/node": "^14.14.6",
"commitlint": "^11.0.0",
"esbuild": "^0.8.4",
"git-semver-tags": "^4.1.1",
"husky": "4.x",
"jest": "^26.6.3",
"npm-run-all": "^4.1.5",
"semantic-release": "^17.2.2",
"surge": "^0.21.7",
"ts-jest": "^26.4.3",
"ts-node": "^9.0.0",
"typescript": "^4.0.5"
},
"browser": {
"crypto": false,
"buffer": false,
"nanoid": "./node_modules/nanoid/index.browser.js"
},
"prettier": {
"arrowParens": "avoid",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
},
"jest": {
"verbose": true,
"preset": "ts-jest/presets/js-with-ts",
"testEnvironment": "jsdom"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"clean",
"doc",
"feat",
"fix",
"perf",
"ref",
"revert",
"style",
"test"
]
],
"subject-case": [
0,
"always",
"sentence-case"
],
"body-leading-blank": [
2,
"always",
true
]
}
}
}