forked from segmentio/consent-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
145 lines (145 loc) · 4.39 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
"name": "@segment/consent-manager",
"version": "4.0.1",
"description": "Drop-in consent management plugin for analytics.js",
"keywords": [
"gdpr",
"tracking",
"analytics",
"analytics.js"
],
"repository": "segmentio/consent-manager",
"license": "MIT",
"main": "commonjs/index.js",
"module": "esm/index.js",
"sideEffects": false,
"files": [
"commonjs",
"esm",
"standalone"
],
"scripts": {
"test": "jest src/__tests__",
"prepublishOnly": "yarn run clean && yarn run build",
"postpublish": "yarn build-storybook && yarn deploy-storybook -- --existing-output-dir=storybook-static",
"dev": "concurrently 'yarn build-standalone --watch' 'yarn start-storybook -s ./ -p 9009'",
"build-commonjs": "tsc --outDir commonjs --module CommonJS --inlineSourceMap",
"build-esm": "tsc --module es2015 --outDir esm --inlineSourceMap",
"build-standalone": "webpack",
"build": "concurrently --names 'commonjs,esm,standalone' 'yarn run build-commonjs' 'yarn run build-esm' 'yarn run build-standalone'",
"clean": "rm -rf commonjs esm standalone storybook-static",
"deploy-storybook": "storybook-to-ghpages",
"standalone-hash": "shasum -b -a 256 standalone/consent-manager.js | xxd -r -p | base64",
"build-storybook": "yarn build-standalone && build-storybook && cp -r ./standalone ./storybook-static/standalone",
"lint": "eslint 'src/**/*.{ts,tsx}'"
},
"dependencies": {
"@segment/top-domain": "^3.0.0",
"emotion": "^9.1.2",
"isomorphic-fetch": "^2.2.1",
"js-cookie": "^2.2.0",
"lodash": "^4.17.5",
"nanoid": "^1.0.2",
"prop-types": "^15.6.1",
"react-emotion": "^9.1.2"
},
"devDependencies": {
"@babel/core": "^7.6.2",
"@segment/in-eu": "^0.3.0",
"@storybook/addon-actions": "^5.2.3",
"@storybook/addon-info": "^5.2.3",
"@storybook/addon-links": "^5.2.3",
"@storybook/addon-options": "^3.4.1",
"@storybook/addon-storysource": "^5.2.3",
"@storybook/addons": "^5.2.3",
"@storybook/react": "^5.2.3",
"@storybook/storybook-deployer": "^2.8.1",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/isomorphic-fetch": "^0.0.35",
"@types/jest": "^24.0.18",
"@types/js-cookie": "^2.2.2",
"@types/lodash": "^4.14.141",
"@types/nanoid": "^2.1.0",
"@types/nock": "^11.1.0",
"@types/node": "^12.7.11",
"@types/react": "^16.9.5",
"@types/react-dom": "^16.9.1",
"@types/segment-analytics": "^0.0.32",
"@types/sinon": "^7.5.0",
"@types/storybook__react": "^4.0.2",
"@typescript-eslint/eslint-plugin": "^2.3.3",
"@typescript-eslint/parser": "^2.3.3",
"babel-loader": "^8.0.6",
"concurrently": "^3.5.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-config-react": "^1.1.7",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-react": "^7.16.0",
"evergreen-ui": "^3.0.0",
"file-loader": "^4.2.0",
"husky": "^3.0.8",
"jest": "^24.9.0",
"lint-staged": "^7.0.4",
"lodash-es": "^4.17.10",
"nock": "^9.2.5",
"preact": "^10.0.0",
"prettier": "1.18.2",
"pretty-quick": "^1.11.1",
"prismjs": "^1.17.1",
"raw-loader": "^3.1.0",
"react": "^16.10.2",
"react-docgen-typescript-loader": "^3.3.0",
"react-dom": "^16.10.2",
"react-simple-code-editor": "^0.10.0",
"react-syntax-highlighter": "^11.0.2",
"sinon": "^5.0.7",
"size-limit": "^0.17.0",
"ts-jest": "^24.1.0",
"ts-loader": "^6.2.0",
"ts-node": "^8.4.1",
"typescript": "^3.7.0-beta",
"webpack": "^4.8.2",
"webpack-cli": "^2.1.3"
},
"peerDependencies": {
"react": "^16.10.0",
"react-dom": "^16.10.0"
},
"jest": {
"preset": "ts-jest/presets/js-with-ts",
"testEnvironment": "jsdom",
"setupFiles": [
"./test/setupTests.ts"
]
},
"size-limit": [
{
"path": "esm/index.js",
"limit": "50 KB"
},
{
"path": "standalone/consent-manager.js",
"limit": "44 KB"
}
],
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
},
"prettier": {
"tabWidth": 2,
"semi": false,
"singleQuote": true,
"printWidth": 100
},
"storybook-deployer": {
"gitUsername": "GitHub Pages Bot",
"gitEmail": "[email protected]",
"commitMessage": "Deploy Storybook to GitHub Pages [skip ci]"
}
}