-
-
Notifications
You must be signed in to change notification settings - Fork 642
/
package.json
92 lines (92 loc) · 3.24 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
{
"name": "dexie-observable",
"version": "4.0.0-beta.13",
"packageManager": "^pnpm@7.9.5",
"description": "Addon to Dexie that makes it possible to observe database changes no matter if they occur on other db instance or other window.",
"main": "dist/dexie-observable.js",
"module": "dist/dexie-observable.es.js",
"jsnext:main": "dist/dexie-observable.es.js",
"typings": "dist/dexie-observable.d.ts",
"jspm": {
"format": "cjs",
"ignore": [
"src/"
]
},
"repository": {
"type": "git",
"url": "https://github.com/dexie/Dexie.js.git"
},
"keywords": [
"indexeddb",
"browser",
"dexie",
"addon"
],
"author": "David Fahlander",
"contributors": [
"Nikolas Poniros <https://github.com/nponiros>",
"Yury Solovyov <https://github.com/YurySolovyov>",
"Martin Diphoorn <https://github.com/martindiphoorn>",
"Corbin Crutchley <https://github.com/crutchcorn>"
],
"license": "Apache-2.0",
"bugs": {
"url": "https://github.com/dexie/Dexie.js/issues"
},
"scripts": {
"build": "just-build",
"watch": "just-build --watch",
"test": "pnpm run build && pnpm run test:typings && pnpm run test:unit && pnpm run test:integration",
"test:unit": "karma start test/unit/karma.conf.js --single-run",
"test:integration": "karma start test/integration/karma.conf.js --single-run",
"test:typings": "just-build test-typings",
"test:unit:debug": "karma start test/unit/karma.conf.js --log-level debug",
"test:integration:debug": "karma start test/integrations/karma.conf.js --log-level debug"
},
"just-build": {
"default": [
"just-build release test"
],
"dev": [
"just-build dexie-observable test"
],
"dexie-observable": [
"# Build UMD module",
"tsc --allowJs -t es5 -m es2015 --outDir tools/tmp/es5/src/ --sourceMap src/Dexie.Observable.js [--watch 'Compilation complete.']",
"rollup -c tools/build-configs/rollup.config.js",
"node tools/replaceVersionAndDate.js dist/dexie-observable.js",
"# eslint ",
"eslint src --cache"
],
"release": [
"just-build dexie-observable",
"# Copy Dexie.Observable.d.ts to dist and replace version in it",
"node -e \"fs.writeFileSync('dist/dexie-observable.d.ts', fs.readFileSync('src/Dexie.Observable.d.ts'))\"",
"node tools/replaceVersionAndDate.js dist/dexie-observable.d.ts",
"# Minify the default ES5 UMD module",
"cd dist",
"uglifyjs dexie-observable.js -m -c negate_iife=0 -o dexie-observable.min.js --source-map"
],
"test": [
"# Build the unit tests (integration tests need no build)",
"tsc --allowJs --moduleResolution node --lib es2018,dom -t es5 -m es2015 --outDir tools/tmp/es5/test --rootDir ../.. --sourceMap test/unit/unit-tests-all.js [--watch 'Compilation complete.']",
"rollup -c tools/build-configs/rollup.tests.config.js"
],
"test-typings": [
"tsc -p test/typings/"
]
},
"homepage": "https://dexie.org",
"peerDependencies": {
"dexie": "workspace:^3.0.2 || ^4.0.0-alpha.1"
},
"devDependencies": {
"@types/node": "^18.7.14",
"dexie": "workspace:^3.0.2 || ^4.0.0-alpha.1",
"eslint": "^7.27.0",
"just-build": "^0.9.24",
"qunit": "^2.9.2",
"uglify-js": "^3.5.6"
}
}