-
Notifications
You must be signed in to change notification settings - Fork 43
/
package.json
134 lines (134 loc) · 5.74 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
{
"name": "@adobe/alloy",
"version": "2.4.0",
"description": "Adobe Experience Platform Web SDK",
"main": "libEs5/index.js",
"module": "libEs6/index.js",
"files": [
"libEs5",
"libEs6"
],
"scripts": {
"clean": "rimraf dist distTest libEs5 libEs6",
"lint": "eslint --fix \"*.js\" \"src/**/*.js\" \"test/**/*.js\"",
"format": "prettier --write \"*.{html,js}\" \"{sandbox,src,test}/**/*.{html,js}\"",
"test": "npm run test:unit && npm run test:functional",
"test:unit": "karma start --single-run",
"test:unit:watch": "karma start",
"test:unit:browserstack:local": "karma start karma.browserstack.conf.js --single-run",
"test:unit:browserstack:ci": "karma start karma.browserstack.conf.js --single-run",
"test:unit:coverage": "karma start --single-run --reporters spec,coverage",
"test:functional": "rollup -c --environment BASE_CODE,NPM_PACKAGE_LOCAL && EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe chrome",
"test:functional:watch": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" ./scripts/watchFunctionalTests.js --browsers chrome",
"test:functional:build:int": "rollup -c --environment BASE_CODE_MIN,STANDALONE,NPM_PACKAGE_LOCAL",
"test:functional:build:prod": "rollup -c --environment BASE_CODE_MIN,NPM_PACKAGE_PROD",
"test:functional:ci:predeploy": "ALLOY_ENV=\"int\" testcafe -q -c 1 'browserstack:chrome@87:Windows 10','browserstack:ie@11:Windows 10','browserstack:firefox@85:Windows 10','browserstack:safari@14.0:OS X Big Sur'",
"test:functional:ci:dev": "EDGE_BASE_PATH=\"ee-pre-prd\" ALLOY_ENV=\"int\" testcafe -q -c 1 'browserstack:chrome@87:Windows 10','browserstack:ie@11:Windows 10','browserstack:firefox@85:Windows 10','browserstack:safari@14.0:OS X Big Sur'",
"test:functional:ci:prod": "ALLOY_PROD_VERSION=`scripts/getProdVersion.js` ALLOY_ENV=\"prod\" testcafe -q -c 1 'browserstack:chrome@87:Windows 10','browserstack:ie@11:Windows 10','browserstack:firefox@85:Windows 10','browserstack:safari@14.0:OS X Big Sur'",
"test:functional:ci:edgepredeploy": "ALLOY_PROD_VERSION=`scripts/getProdVersion.js` ALLOY_ENV=\"prod\" EDGE_BASE_PATH=\"ee-pre-prd\" testcafe -q -c 1 'browserstack:chrome@87:Windows 10','browserstack:ie@11:Windows 10','browserstack:firefox@84:Windows 10','browserstack:safari@14.0:OS X Big Sur'",
"sandbox:build": "rollup -c --environment SANDBOX && cd sandbox && npm run build",
"dev": "concurrently --names build,sandbox \"rollup -c -w --environment SANDBOX\" \"cd sandbox && export REACT_APP_NONCE=321 && npm start\"",
"build": "npm run format && npm run lint && npm run clean && rollup -c --environment BASE_CODE_MIN,STANDALONE,STANDALONE_MIN && echo \"Base Code:\" && cat distTest/baseCode.min.js",
"prepare": "cd sandbox && npm install",
"prepublishOnly": "rimraf libEs5 libEs6 && babel src -d libEs5 --env-name npmEs5 && babel src -d libEs6 --env-name npmEs6",
"checkthattestfilesexist": "./scripts/checkThatTestFilesExist.js"
},
"husky": {
"hooks": {
"pre-commit": "echo 'Running pre-commit scripts...' && npm run checkthattestfilesexist && lint-staged && npm run test:unit"
}
},
"lint-staged": {
"./*.js": [
"eslint --fix",
"git add"
],
"./{src,test}/**/*.js": [
"eslint --fix",
"git add"
],
"./*.{html,js}": [
"prettier --write",
"git add"
],
"./{sandbox,src,test}/**/*.{html,js}": [
"prettier --write",
"git add"
]
},
"repository": {
"type": "git",
"url": "https://github.com/adobe/alloy.git"
},
"author": "Adobe Inc.",
"license": "Apache-2.0",
"bundlesize": [
{
"path": "./dist/alloy.min.js"
}
],
"dependencies": {
"@adobe/reactor-cookie": "^1.0.0",
"@adobe/reactor-load-script": "^1.1.1",
"@adobe/reactor-object-assign": "^1.0.0",
"@adobe/reactor-query-string": "^1.0.0",
"css.escape": "^1.5.1",
"uuid": "^3.3.2"
},
"devDependencies": {
"@adobe/alloy": "^2.4.0",
"@babel/cli": "^7.12.8",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
"@babel/plugin-transform-template-literals": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@octokit/rest": "^18.3.5",
"babel-plugin-version": "^0.2.3",
"bundlesize": "^0.18.0",
"concurrently": "^5.3.0",
"dotenv": "^8.1.0",
"eslint": "^6.5.1",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-testcafe": "^0.2.1",
"glob": "^7.1.3",
"husky": "^3.0.9",
"jasmine-core": "^3.4.0",
"karma": "^4.0.0",
"karma-allure-reporter": "^1.4.5",
"karma-browserstack-launcher": "^1.6.0",
"karma-chrome-launcher": "^3.1.0",
"karma-coverage": "^2.0.1",
"karma-firefox-launcher": "^2.1.0",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"karma-jasmine-matchers": "^4.0.1",
"karma-rollup-preprocessor": "^7.0.5",
"karma-safari-launcher": "^1.0.0",
"karma-spec-reporter": "0.0.32",
"lint-staged": "^9.4.2",
"prettier": "^1.16.4",
"promise-polyfill": "^8.1.0",
"puppeteer": "^1.16.0",
"read-cache": "^1.0.0",
"recursive-readdir": "^2.2.2",
"request": "^2.88.0",
"rimraf": "^3.0.2",
"rollup": "^2.29.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-glob-import": "^0.4.5",
"rollup-plugin-istanbul": "^2.0.1",
"rollup-plugin-license": "^2.2.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^7.0.2",
"start-server-and-test": "^1.10.6",
"testcafe": "^1.12.0",
"testcafe-browser-provider-browserstack": "^1.13.2-alpha.1",
"ua-parser": "^0.3.5",
"url-parse": "^1.4.7",
"yargs": "^16.2.0"
}
}