-
Notifications
You must be signed in to change notification settings - Fork 117
Expand file tree
/
Copy pathpackage.json
More file actions
101 lines (101 loc) · 3.67 KB
/
package.json
File metadata and controls
101 lines (101 loc) · 3.67 KB
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
{
"name": "onesignal-web-sdk",
"version": "1.2.0",
"description": "Web push notifications from OneSignal.",
"type": "module",
"dependencies": {
"idb": "^8.0.3",
"jsonp": "github:OneSignal/jsonp#onesignal"
},
"scripts": {
"dev": "LOGGING=false vite",
"dev:logging": "LOGGING=true vite",
"ngrok": "./build/scripts/ngrok.sh",
"prebuild": "tsc --noEmit && mkdir -p build/stats",
"build:sdk": "LIB=sdk vite build",
"build:page": "LIB=page vite build",
"build:sw": "LIB=worker vite build",
"build": "npm run build:sdk && npm run build:page && npm run build:sw",
"build:watch": "LIB=sdk vite build --watch",
"build:dev": "ENV=development npm run build",
"build:dev:watch": "ENV=development concurrently \"LIB=sdk vite build --watch\" \"LIB=page vite build --watch\" \"LIB=worker vite build --watch\"",
"build:staging": "ENV=staging BUILD_ORIGIN=staging.onesignal.com API=staging API_ORIGIN=staging.onesignal.com npm run build",
"build:staging:watch": "ENV=staging BUILD_ORIGIN=staging.onesignal.com API=staging API_ORIGIN=staging.onesignal.com npm run build:watch",
"build:prod": "ENV=production API=production npm run build && size-limit",
"build:prod:watch": "ENV=production API=production npm run build:watch",
"postbuild:prod": "npm run validate:build",
"build:dev-dev": "API=development npm run build:dev",
"build:dev-dev:watch": "API=development npm run build:dev:watch",
"build:dev-prod": "API=production API_ORIGIN=onesignal.com npm run build:dev",
"build:dev-prod:watch": "API=production API_ORIGIN=onesignal.com npm run build:dev:watch",
"build:dev-stag": "API=staging API_ORIGIN=onesignal.com npm run build:dev",
"build:dev-stag:watch": "API=staging API_ORIGIN=onesignal.com npm run build:dev:watch",
"test": "vitest run --coverage",
"test:watch": "vitest watch --coverage",
"validate:build": "node build/scripts/validate.js",
"lint": "eslint src --ext .js,.jsx,.ts,.tsx; prettylint 'src/**/*' 'test/**/*' '__test__/**/*' --no-editorconfig"
},
"config": {
"sdkVersion": "160507"
},
"repository": {
"type": "git",
"url": "github.com/one-signal/OneSignal-Website-SDK"
},
"author": "OneSignal",
"license": "SEE LICENSE IN LICENSE",
"devDependencies": {
"@size-limit/file": "^11.2.0",
"@types/body-parser": "latest",
"@types/express": "^4.17.17",
"@types/intl-tel-input": "^18.1.4",
"@types/jsdom": "^21.1.7",
"@types/jsonp": "^0.2.3",
"@types/node": "^24.3.0",
"@types/uuid": "^10.0.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"@vitest/coverage-v8": "4.0.0-beta.9",
"concurrently": "^9.2.0",
"deepmerge": "^4.2.2",
"eslint": "^8.23.0",
"eslint-config-prettier": "9.0.0",
"fake-indexeddb": "5.0.2",
"intl-tel-input": "^25.4.0",
"jsdom": "^26.1.0",
"msw": "^2.10.5",
"prettier": "3.6.2",
"prettylint": "^2.0.0",
"sass-embedded": "^1.89.2",
"terser": "^5.43.1",
"type-fest": "^4.41.0",
"typescript": "^5.8.3",
"vite": "^7.0.6",
"vite-bundle-analyzer": "^1.1.0",
"vite-plugin-mkcert": "^1.17.8",
"vite-tsconfig-paths": "^5.1.4",
"vitest": "4.0.0-beta.9"
},
"size-limit": [
{
"path": "./build/releases/OneSignalSDK.page.js",
"limit": "450 B",
"gzip": true
},
{
"path": "./build/releases/OneSignalSDK.page.es6.js",
"limit": "50.523 kB",
"gzip": true
},
{
"path": "./build/releases/OneSignalSDK.sw.js",
"limit": "13.96 kB",
"gzip": true
},
{
"path": "./build/releases/OneSignalSDK.page.styles.css",
"limit": "8.81 kB",
"gzip": true
}
]
}