-
Notifications
You must be signed in to change notification settings - Fork 115
/
package.json
135 lines (135 loc) · 5.3 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
{
"name": "onesignal-web-sdk",
"version": "1.2.0",
"description": "Web push notifications from OneSignal.",
"dependencies": {
"bowser": "github:OneSignal/bowser#fix-android8-opr6-build-detection",
"jsdom": "^9.12.0",
"jsonp": "github:OneSignal/jsonp#onesignal",
"node-sass": "^4.9.0",
"npm-css": "https://registry.npmjs.org/npm-css/-/npm-css-0.2.3.tgz",
"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",
"tslib": "^1.9.0",
"validator": "https://registry.npmjs.org/validator/-/validator-6.0.0.tgz"
},
"scripts": {
"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": "ENV=development yarn transpile:tests && yarn run ava --verbose --color --watch",
"test:noWatch": "ENV=development yarn transpile:tests && ava --verbose --color --watch=false",
"publish": "yarn clean && yarn build:prod && yarn",
"build:dev-dev": "./build/scripts/build.sh -f development -t development",
"build:dev-prod": "./build/scripts/build.sh -f development -t production",
"build:dev-stag": "./build/scripts/build.sh -f development -t staging"
},
"config": {
"sdkVersion": "151103"
},
"repository": {
"type": "git",
"url": "github.com/one-signal/OneSignal-Website-SDK"
},
"author": "OneSignal",
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"@types/body-parser": "latest",
"@types/chai": "latest",
"@types/core-js": "latest",
"@types/cors": "latest",
"@types/express": "latest",
"@types/jsdom": "^2.0.30",
"@types/loglevel": "latest",
"@types/mocha": "^5.0.0",
"@types/nconf": "latest",
"@types/nock": "^9.1.2",
"@types/node": "^9.6.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",
"ava": "^3.8.2",
"awesome-typescript-loader": "^4.0.1",
"bundlesize": "^0.18.0",
"css-loader": "^0.26.2",
"deepmerge": "^4.2.2",
"dom-storage": "^2.0.2",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"fake-indexeddb": "^2.1.1",
"imports-loader": "^0.7.1",
"md5-file": "^3.2.2",
"nock": "^9.1.6",
"node-dir": "^0.1.16",
"node-fetch": "^2.6.1",
"nyc": "^11.1.0",
"postcss-loader": "^2.0.6",
"sass-loader": "^6.0.6",
"sinon": "^2.4.1",
"svgo": "^0.7.2",
"text-encoding": "^0.6.4",
"timemachine": "^0.3.0",
"typescript": "^2.7.1",
"tslint": "^5.10.0",
"tslint-eslint-rules": "^5.2.0",
"uglifyjs-webpack-plugin": "^1.2.4",
"webpack": "^4.3.0",
"webpack-bundle-analyzer": "^3.3.2",
"webpack-cli": "^2.0.13"
},
"ava": {
"files": [
"build/ts-to-es6/test/unit/**/*.js"
],
"source": [
"build/ts-to-es6/src/**/*.js"
],
"concurrency": 1,
"serial": true,
"powerAssert": true
},
"nyc": {
"cache": true,
"reporter": [
"lcov",
"text-summary"
],
"include": [
"build/ts-to-es6/src/**/*.js"
]
},
"bundlesize": [
{
"path": "./build/bundles/OneSignalSDK.js",
"maxSize": "3 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalPageSDKES6.js",
"maxSize": "64 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalSDKWorker.js",
"maxSize": "38 kB",
"compression": "gzip"
},
{
"path": "./build/bundles/OneSignalSDKStyles.css",
"maxSize": "8 kB",
"compression": "gzip"
}
]
}