-
-
Notifications
You must be signed in to change notification settings - Fork 643
/
package.json
145 lines (145 loc) · 4.98 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
{
"name": "dexie",
"version": "4.0.9",
"description": "A Minimalistic Wrapper for IndexedDB",
"main": "dist/dexie.js",
"module": "dist/dexie.mjs",
"jsnext:main": "dist/dexie.mjs",
"exports": {
".": {
"production": {
"module": "./import-wrapper-prod.mjs",
"import": "./import-wrapper-prod.mjs",
"require": "./dist/dexie.min.js",
"default": "./dist/dexie.min.js"
},
"development": {
"module": "./import-wrapper.mjs",
"import": "./import-wrapper.mjs",
"require": "./dist/dexie.js",
"default": "./dist/dexie.js"
},
"default": {
"module": "./import-wrapper.mjs",
"import": "./import-wrapper.mjs",
"require": "./dist/dexie.js",
"default": "./dist/dexie.js"
}
},
"./package.json": "./package.json",
"./dist/*": "./dist/*"
},
"typings": "dist/dexie.d.ts",
"jspm": {
"format": "cjs",
"ignore": [
"src/"
]
},
"repository": {
"type": "git",
"url": "https://github.com/dexie/Dexie.js.git"
},
"keywords": [
"indexeddb",
"browser",
"database"
],
"author": "David Fahlander <https://github.com/dfahlander>",
"contributors": [
"Christopher Hunt <https://github.com/chrahunt>",
"Nikolas Poniros <https://github.com/nponiros>",
"Anders Ekdahl <https://github.com/andersekdahl>",
"Yury Solovyov <https://github.com/YurySolovyov>",
"Martin Diphoorn <https://github.com/martindiphoorn>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dexie/Dexie.js/issues"
},
"scripts": {
"build": "just-build",
"watch": "just-build --watch",
"clean": "rm -rf tools/tmp && rm dist/*.js && rm dist/*.map && rm dist/*.ts && rm dist/*.mjs",
"test": "pnpm run build && pnpm run test:typings && pnpm run test:unit",
"test:unit": "karma start test/karma.conf.js --single-run",
"test:typings": "tsc -p test/typings-test/",
"test:debug": "karma start test/karma.conf.js --log-level debug",
"test:ltcloud": "cross-env LAMBDATEST=true pnpm run test:ltTunnel & sleep 10 && pnpm run test:unit; UNIT_STATUS=$?; kill $(cat tunnel.pid); exit $UNIT_STATUS",
"test:ltTunnel": "node test/lt-local"
},
"just-build": {
"default": [
"# Build all targets (es5, es6 and test) and minify the default es5 UMD module",
"just-build release test"
],
"dexie": [
"# Build dist/dexie.js, dist/dexie.mjs and dist/dexie.d.ts",
"cd src",
"tsc [--watch 'Watching for file changes']",
"tsc --target es2020 --outdir ../tools/tmp/modern/src/",
"rollup -c ../tools/build-configs/rollup.config.js",
"rollup -c ../tools/build-configs/rollup.umd.config.js",
"rollup -c ../tools/build-configs/rollup.modern.config.js",
"node ../tools/replaceVersionAndDate.js ../dist/dexie.js",
"node ../tools/replaceVersionAndDate.js ../dist/dexie.mjs",
"node ../tools/replaceVersionAndDate.js ../dist/modern/dexie.mjs",
"dts-bundle-generator --inline-declare-global --inline-declare-externals -o ../dist/dexie.d.ts public/index.d.ts",
"node ../tools/prepend.js ../dist/dexie.d.ts ../tools/build-configs/banner.txt",
"node ../tools/replaceVersionAndDate.js ../dist/dexie.d.ts"
],
"release": [
"# Build ES5 umd module as well as the es6 module.",
"just-build dexie",
"node tools/replaceVersionAndDate.js dist/dexie.d.ts",
"# Minify the default ES5 UMD module",
"cd dist",
"uglifyjs dexie.js -m -c negate_iife=0 -o dexie.min.js --source-map url=dexie.min.js.map",
"# Minify modern bundle",
"cd modern",
"terser --comments false --compress --mangle --module --source-map url=dexie.min.mjs.map -o dexie.min.mjs -- dexie.mjs"
],
"dev": [
"# Build ES5 module and the tests",
"just-build dexie test"
],
"gzip": [
"# Optionally gzip to find the size of the minified & gzipped version",
"gzip dist/dexie.min.js -k -f -9"
],
"test": [
"# Build the test suite.",
"cd test",
"tsc [--watch 'Watching for file changes']",
"rollup -c ../tools/build-configs/rollup.tests.config.js"
]
},
"homepage": "https://dexie.org",
"devDependencies": {
"@lambdatest/node-tunnel": "^4.0.7",
"cross-env": "^7.0.3",
"dts-bundle-generator": "^5.9.0",
"just-build": "^0.9.24",
"karma": "^6.1.1",
"karma-chrome-launcher": "^3.1.0",
"karma-firefox-launcher": "^2.1.0",
"karma-mocha-reporter": "^2.2.5",
"karma-qunit": "^4.1.1",
"karma-webdriver-launcher": "^1.0.8",
"qunit": "^2.10.0",
"qunitjs": "^1.23.1",
"rollup": "^2.40.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-sourcemaps": "^0.6.3",
"rxjs": "^6.6.6",
"safari-14-idb-fix": "^3.0.0",
"serve-static": "^1.14.1",
"sorted-json": "^0.2.6",
"terser": "^5.3.1",
"tslib": "^2.1.0",
"typescript": "^5.3.3",
"uglify-js": "^3.9.2"
}
}