-
Notifications
You must be signed in to change notification settings - Fork 115
/
package.json
166 lines (166 loc) · 6.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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
{
"name": "onesignal-web-sdk",
"version": "1.2.0",
"description": "Web push notifications from OneSignal.",
"dependencies": {
"@types/intl-tel-input": "^17.0.1",
"bowser": "github:OneSignal/bowser#fix-android8-opr6-build-detection",
"core-js-bundle": "^3.1.3",
"glob": "^10.2.2",
"jsonp": "github:OneSignal/jsonp#onesignal",
"npm-css": "https://registry.npmjs.org/npm-css/-/npm-css-0.2.3.tgz",
"postcss": "^8.1.0",
"postcss-discard-comments": "https://registry.npmjs.org/postcss-discard-comments/-/postcss-discard-comments-2.0.4.tgz",
"postcss-filter-plugins": "https://registry.npmjs.org/postcss-filter-plugins/-/postcss-filter-plugins-2.0.2.tgz",
"regenerator-runtime": "^0.13.2",
"sass": "^1.62.0",
"terser-webpack-plugin": "^5.3.7",
"tslib": "^2.5.0",
"validator": "https://registry.npmjs.org/validator/-/validator-6.0.0.tgz"
},
"scripts": {
"ngrok": "./build/scripts/ngrok.sh",
"clean": "rm -rf build/ts-to-es6 && rm -rf build/bundles",
"transpile:sources": "$(yarn bin)/tsc --project build/config/tsconfig.json",
"transpile:tests": "$(yarn bin)/tsc --project build/config/tsconfig.tests.json",
"bundle": "TESTS=false $(yarn bin)/webpack --config build/config/webpack.config.js",
"bundle-sw": "TESTS=false $(yarn bin)/webpack --config build/config/serviceworker.config.js",
"bundle-sdk": "TESTS=false $(yarn bin)/webpack --config build/config/sdk.config.js",
"bundle-page-sdk-es6": "TESTS=false $(yarn bin)/webpack --config build/config/page-sdk-es6.config.js",
"bundle:analyze": "ANALYZE=true ENV=production TESTS=false $(yarn bin)/webpack --config build/config/webpack.config.js --profile --json > stats.json",
"bundle-sw:analyze": "ANALYZE=true ENV=production TESTS=false $(yarn bin)/webpack --config build/config/serviceworker.config.js --profile --json > stats.json",
"bundle-sdk:analyze": "ANALYZE=true ENV=production TESTS=false $(yarn bin)/webpack --config build/config/sdk.config.js --profile --json > stats.json",
"build:dev": "ENV=development yarn transpile:sources && ENV=development yarn bundle-sw && ENV=development yarn bundle-sdk && ENV=development yarn bundle-page-sdk-es6 && ENV=development build/scripts/publish.sh",
"build:staging": "ENV=staging yarn transpile:sources && ENV=staging yarn bundle-sw && ENV=staging yarn bundle-sdk && ENV=staging yarn bundle-page-sdk-es6 && ENV=staging build/scripts/publish.sh",
"build:prod": "ENV=production yarn transpile:sources && ENV=production yarn bundle-sw && ENV=production yarn bundle-sdk && ENV=production yarn bundle-page-sdk-es6 && bundlesize && ENV=production build/scripts/publish.sh",
"test": "NODE_OPTIONS=\"--trace-warnings --unhandled-rejections=warn\" yarn run jest --detectOpenHandles --forceExit --runInBand",
"test:watch": "NODE_OPTIONS=\"--trace-warnings --unhandled-rejections=warn\" yarn run jest --detectOpenHandles --forceExit --runInBand --watch",
"publish": "yarn clean && yarn build:prod && yarn",
"build:dev-dev": "./build/scripts/build.sh -f development -t development -a localhost",
"build:dev-prod": "./build/scripts/build.sh -f development -t production",
"build:dev-stag": "./build/scripts/build.sh -f development -t staging",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx; yarn prettylint 'src/**/*' 'test/**/*' '__test__/**/*' --no-editorconfig",
"jest": "jest --coverage"
},
"config": {
"sdkVersion": "160205"
},
"repository": {
"type": "git",
"url": "github.com/one-signal/OneSignal-Website-SDK"
},
"author": "OneSignal",
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"@ava/typescript": "^1.1.1",
"@types/body-parser": "latest",
"@types/chai": "latest",
"@types/core-js": "latest",
"@types/cors": "latest",
"@types/express": "^4.17.17",
"@types/jest": "^29.4.0",
"@types/jsdom": "^21.1.0",
"@types/loglevel": "latest",
"@types/mocha": "^5.0.0",
"@types/nconf": "latest",
"@types/nock": "^9.1.2",
"@types/node": "^18.18.0",
"@types/object-assign": "^4.0.30",
"@types/requirejs": "latest",
"@types/sinon": "^2.3.3",
"@types/text-encoding": "^0.0.31",
"@types/validator": "latest",
"@types/whatwg-fetch": "latest",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"autoprefixer": "^10.4.14",
"ava": "^3.8.2",
"bundlesize2": "^0.0.31",
"clean-webpack-plugin": "^4.0.0",
"css-loader": "^6.7.3",
"css-minimizer-webpack-plugin": "^5.0.0",
"deepmerge": "^4.2.2",
"dom-storage": "^2.0.2",
"eslint": "^8.23.0",
"eslint-config-prettier": "9.0.0",
"fake-indexeddb": "^4.0.1",
"imports-loader": "^0.7.1",
"jest": "^29.0.1",
"jest-environment-jsdom": "^29.4.1",
"jest-localstorage-mock": "^2.4.26",
"jsdom": "^21.1.0",
"md5-file": "^3.2.2",
"mini-css-extract-plugin": "^2.7.5",
"nock": "^9.1.6",
"node-dir": "^0.1.16",
"node-fetch": "^2.6.1",
"node-sass": "^8.0.0",
"nyc": "^11.1.0",
"postcss-loader": "^7.2.4",
"prettier": "3.0.2",
"prettylint": "^2.0.0",
"sass-loader": "^13.2.2",
"sinon": "^2.4.1",
"style-loader": "^3.3.2",
"svgo": "^0.7.2",
"timemachine": "^0.3.0",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"ts-node": "^10.1.1",
"typescript": "^4.9.5",
"webpack": "^5.80.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^5.0.2"
},
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register/transpile-only"
],
"files": [
"test/unit/**/*.ts"
],
"source": [
"src/**/*.ts"
],
"concurrency": 1,
"serial": true,
"powerAssert": true,
"//": "Long timeout otherwise debugger times out after 10 sec",
"timeout": "1000000"
},
"nyc": {
"cache": true,
"reporter": [
"lcov",
"text-summary"
],
"include": [
"build/ts-to-es6/src/**/*.js"
]
},
"bundlesize": [
{
"path": "./build/bundles/OneSignalSDK.page.js",
"maxSize": "1 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalSDK.page.es6.js",
"maxSize": "79 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalSDK.sw.js",
"maxSize": "41 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalSDK.page.styles.css",
"maxSize": "9 kB",
"compression": "gzip"
}
]
}