forked from appnexus/cmp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
148 lines (148 loc) · 5.46 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
146
147
148
{
"name": "system1-cmp",
"version": "2.3.0",
"cmpVersion": 6,
"description": "System1 Consent Management Platform for TCF 1.1 GDPR Compliance",
"scripts": {
"clean": "rimraf ./dist",
"dev": "yarn dev:s1",
"dev:s1": "cross-env PORT=3030 NODE_ENV=development webpack-dev-server --inline --hot --progress --config config/s1.webpack.config.babel.js",
"dev:original": "cross-env NODE_ENV=development webpack-dev-server --inline --hot --progress --config config/webpack.config.babel.js",
"start": "serve dist -c 1",
"prestart": "npm run build",
"build": "yarn clean && yarn build:original && yarn build:s1 && yarn bundlesize",
"deploy": "yarn clean && yarn deploy:original && yarn deploy:s1",
"build:original": "cross-env NODE_ENV=production webpack --progress --config config/webpack.config.babel.js",
"deploy:original": "yarn build:original && yarn upload:original",
"upload:original": "cross-var s3-deploy './dist/{*.?(js|html),docs/**}' --cwd './dist' --region us-west-2 --bucket s1-layout-cdn/cmp --gzip html,js,css,json --cache 1440 --distId E5JQ1CRXXPTKM --invalidate '/cmp/*.js /cmp/* /cmp/docs/*'",
"build:s1": "cross-env NODE_ENV=production webpack --progress --config config/s1.webpack.config.babel.js",
"deploy:s1": "yarn build:s1 && yarn upload:s1",
"upload:s1": "cross-var s3-deploy './dist/$npm_package_version/**' --cwd './dist/$npm_package_version' --region us-west-2 --bucket s1-layout-cdn/cmp/$npm_package_version --gzip html,js,css,json --preventUpdates --cache 604800 --distId E5JQ1CRXXPTKM --invalidate '/cmp/$npm_package_version/*'",
"upload:s1:again": "cross-var s3-deploy './dist/$npm_package_version/**' --cwd './dist/$npm_package_version' --region us-west-2 --bucket s1-layout-cdn/cmp/$npm_package_version --gzip html,js,css,json --cache 604800 --distId E5JQ1CRXXPTKM --invalidate '/cmp/$npm_package_version/*'",
"deploy:test": "yarn build:s1 && yarn upload:test",
"upload:test": "cross-var s3-deploy './dist/$npm_package_version/**' --cwd './dist/$npm_package_version' --region us-west-2 --bucket s1-layout-cdn/cmp/test --gzip --cache 1440 --distId E5JQ1CRXXPTKM --invalidate '/cmp/test/* /cmp/test/*.html'",
"prebuild": "npm run clean && mkdirp dist",
"test": "npm run -s lint && jest --coverage",
"test:watch": "npm run -s test -- --watch",
"lint": "eslint src test",
"preversion": "npm test",
"version": "npm run build",
"upgrade-vendor-list": "yarn babel-node scripts/run"
},
"repository": {
"type": "git",
"url": "https://github.com/Openmail/system1-cmp.git"
},
"license": "Apache-2.0",
"author": "AppNexus",
"jest": {
"setupFiles": [
"./test/setup.js"
],
"testURL": "http://localhost:8080",
"moduleFileExtensions": [
"js",
"jsx"
],
"moduleDirectories": [
"node_modules"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less)$": "identity-obj-proxy",
"^react$": "preact-compat",
"^react-dom$": "preact-compat"
},
"collectCoverageFrom": [
"src/lib/**/*.{js,jsx}",
"src/components/**/*.{js,jsx}"
]
},
"devDependencies": {
"@babel/core": "^7.3.4",
"@babel/node": "^7.10.5",
"@babel/plugin-proposal-class-properties": "^7.3.4",
"@babel/plugin-proposal-decorators": "^7.3.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-react-jsx": "^7.3.0",
"@babel/preset-env": "^7.3.4",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.3.4",
"autoprefixer": "^7.0.1",
"babel-eslint": "^10.0.1",
"babel-loader": "^8.0.5",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"bundlesize": "^0.18.0",
"chai": "^4.0.2",
"copy-webpack-plugin": "^4.3.1",
"cross-env": "^5.0.1",
"css-loader": "^0.28.0",
"eslint": "^4.1.0",
"eslint-plugin-jest": "^21.7.0",
"eslint-plugin-react": "^7.0.0",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.6",
"html-webpack-plugin": "3.2.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^24.1.0",
"json-loader": "^0.5.4",
"less": "^3.7.1",
"less-loader": "^4.0.3",
"mkdirp": "^0.5.1",
"ncp": "^2.0.0",
"postcss-loader": "^2.0.3",
"preact-jsx-chai": "^2.2.1",
"raw-loader": "^1.0.0-beta.0",
"regenerator-runtime": "^0.11.1",
"replace-bundle-webpack-plugin": "^1.0.0",
"s3-deploy": "^1.3.0",
"script-ext-html-webpack-plugin": "^1.3.4",
"serve": "^10.1.2",
"sinon": "^7.2.5",
"sinon-chai": "^3.3.0",
"source-map-loader": "^0.2.1",
"style-loader": "^0.20.1",
"uglify-es": "^3.3.9",
"url-loader": "^0.6.1",
"webpack": "^3.0.0",
"webpack-bundle-analyzer": "^3.9.0",
"webpack-dev-server": "^2.4.4"
},
"dependencies": {
"@iabtcf/cmpapi": "1.4.0",
"@iabtcf/core": "1.4.0",
"@s1/dpl": "3.2.1",
"classnames": "^2.2.5",
"codemirror": "^5.34.0",
"core-js": "^2.5.3",
"cross-var": "^1.1.0",
"eslint-config-prettier": "^6.10.0",
"handlebars-loader": "^1.7.1",
"js-beautify": "^1.7.5",
"lodash": "^4.17.11",
"no-case": "^3.0.3",
"preact": "^8.4.2",
"preact-compat": "^3.18.4",
"preact-render-to-string": "^4.1.0",
"promise-polyfill": "^7.1.0",
"proptypes": "^1.0.0",
"query-string": "^5.0.1",
"react-codemirror2": "^5.1.0",
"react-router-dom": "^4.2.2",
"whatwg-fetch": "^2.0.3"
},
"bundlesize": [
{
"path": "./dist/[0-9].[0-9].[0-9]/tcf-2.0-cmp.js",
"maxSize": "48.2 kB"
},
{
"path": "./dist/[0-9].[0-9].[0-9]/tcf-2.0-loader.js",
"maxSize": "1.0 kB"
},
{
"path": "./dist/[0-9].[0-9].[0-9]/polyfills.js",
"maxSize": "15.0 kB"
}
]
}