-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
57 lines (57 loc) · 2.96 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
{
"name": "tab-cmp",
"version": "0.15.0-alpha.1",
"description": "A consent management platform wrapper for Tab for a Cause",
"main": "build/index.js",
"repository": "[email protected]:gladly-team/tab-cmp.git",
"author": "Gladly Team",
"license": "MIT",
"private": false,
"scripts": {
"build": "npm-run-all -s build:clean build:src",
"build:clean": "rm -rf ./build",
"build:src": "babel src --out-dir build --ignore \"src/**/__tests__/*\",\"src/**/__mocks__/*\"",
"lint": "eslint ./src/",
"format": "prettier \"**/*.{js,jsx,ts,tsx,json,css,scss,md}\"",
"test": "npm-run-all -s lint test:coverage",
"test:run": "jest --env=jsdom",
"test:coverage": "yarn run test:run --coverage",
"test:watch": "yarn run test:run --watch",
"quantcast:update": "npm-run-all -s quantcast:update:info quantcast:choice-js:update quantcast:cmp-js:download",
"quantcast:update:info": "echo \"########## Downloading the original source JS for Quantcast Choice version 45. To use a different version, first update change the version number in the QC portal for the tab.gladly.dev domain, then modify the version number in the cmp2.js URL in the package.json script.##########\"",
"quantcast:choice-js:update": "npm-run-all -s quantcast:choice-js:download quantcast:choice-js:format",
"quantcast:choice-js:download": "curl https://cmp.quantcast.com/choice/FPBLJYpJgR9Zu/tab.gladly.dev/choice.js?tag_version=V2 > ./quantcast/qcChoiceOriginal.js",
"quantcast:choice-js:format": "eslint ./quantcast/qcChoiceOriginal.js --fix --no-ignore; exit 0",
"quantcast:cmp-js:download": "curl https://quantcast.mgr.consensu.org/tcfv2/45/cmp2.js?referer=tab.gladly.io > ./quantcast/qcCmpOriginal.js",
"quantcast:cmp-js:copy-with-edits": "sed -E 's/SameSite=Lax;secure/SameSite=None;secure/g; s/_isUserInUS=(true|false)/_isUserInUS=window.tabCMP.doesCCPAApply/g; s/_isUserInEU=(true|false)/_isUserInEU=window.tabCMP.doesGDPRApply/g;' ./quantcast/qcCmpOriginal.js > ./src/qcCmpModified.js",
"dev:publish": "npm-run-all -s build dev:yalc-publish-push",
"dev:yalc-publish-push": "yalc publish --push"
},
"devDependencies": {
"@babel/cli": "^7.19.3",
"@babel/core": "^7.20.5",
"@babel/plugin-transform-runtime": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"babel-jest": "^29.3.1",
"babel-plugin-module-resolver": "^4.1.0",
"core-js": "^3.26.1",
"eslint": "^8.29.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.5.0",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.1.6",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.11",
"eslint-plugin-react-hooks": "^4.6.0",
"if-env": "^1.0.4",
"jest": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"mockdate": "^3.0.5",
"npm-run-all": "^4.1.5",
"prettier": "^2.8.0",
"prop-types": "^15.8.1"
},
"dependencies": {}
}