-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
package.json
169 lines (169 loc) · 4.72 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
167
168
169
{
"name": "aurelia-store",
"version": "2.0.1",
"description": "Aurelia single state store based on RxJS",
"keywords": [
"aurelia",
"rxjs",
"store",
"behaviorsubject"
],
"main": "dist/commonjs/aurelia-store.js",
"module": "dist/es2015/aurelia-store.js",
"browser": "dist/umd/aurelia-store.js",
"unpkg": "dist/umd-es2015/aurelia-store.js",
"typings": "dist/aurelia-store.d.ts",
"scripts": {
"lint": "cross-env tslint --project tsconfig.json",
"pretest": "cross-env npm run lint",
"test": "cross-env jest --coverage",
"test-ci": "cross-env jest --coverage && cat ./test/coverage-jest/lcov.info | ./node_modules/coveralls/bin/coveralls.js",
"test-watch": "jest --watch",
"prebuild": "cross-env rimraf dist",
"build": "cross-env TS_NODE_PROJECT=build/tsconfig.json ts-node build/build.ts",
"bundle-dts": "dts-bundle-generator --project tsconfig-build.json -o dist/aurelia-store.d.ts src/aurelia-store.ts --external-types []",
"precommit": "npm run lint",
"changelog": "cross-env conventional-changelog -p angular -i doc/CHANGELOG.md -s",
"bump-version": "npm --no-git-tag-version version",
"preprepare-release": "cross-env npm run test",
"prepare-release": "cross-env npm run changelog && npm run build"
},
"files": [
"dist",
"README.md",
"LICENSE"
],
"jest": {
"modulePaths": [
"<rootDir>/src",
"<rootDir>/node_modules"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"transform": {
"^.+\\.(ts|tsx)$": "ts-jest"
},
"testRegex": "\\.spec\\.(ts|js)x?$",
"setupFiles": [
"<rootDir>/test/jest-pretest.ts"
],
"testEnvironment": "node",
"moduleNameMapper": {
"(test\\\\unit\\\\)aurelia-(.*)": "<rootDir>/node_modules/aurelia-$2"
},
"collectCoverage": false,
"collectCoverageFrom": [
"src/**/*.{js,ts}",
"!**/*.spec.{js,ts}",
"!**/node_modules/**",
"!**/test/**"
],
"coverageDirectory": "<rootDir>/test/coverage-jest",
"coveragePathIgnorePatterns": [
"/node_modules/"
],
"coverageReporters": [
"json",
"lcov",
"text",
"html"
]
},
"repository": {
"type": "git",
"url": "git+https://github.com/aurelia/store.git"
},
"author": "Vildan Softic <[email protected]> (http://pragmatic-coder.net)",
"license": "MIT",
"homepage": "http://aurelia.io",
"bugs": {
"url": "https://github.com/aurelia/store/issues"
},
"jspm": {
"registry": "npm",
"jspmPackage": true,
"main": "aurelia-store",
"format": "cjs",
"directories": {
"dist": "dist/commonjs"
}
},
"dependencies": {
"@redux-devtools/extension": "^3.2.1",
"aurelia-dependency-injection": "^1.4.1",
"aurelia-logging": "^1.5.0",
"aurelia-pal": "^1.8.2",
"aurelia-templating": "^1.10.1",
"rxjs": "^7.5.0"
},
"overrides": {
"@rollup/plugin-typescript": {
"tslinb": "2.4.1"
}
},
"devDependencies": {
"@rollup/plugin-typescript": "^9.0.2",
"@types/jest": "^24.0.13",
"@types/node": "^8.10.26",
"@types/rimraf": "^2.0.2",
"@types/yargs": "^12.0.1",
"aurelia-bootstrapper": "^2.3.0",
"aurelia-framework": "^1.3.1",
"aurelia-loader-nodejs": "^1.0.1",
"aurelia-pal-browser": "^1.8.0",
"aurelia-pal-nodejs": "^1.2.0",
"aurelia-polyfills": "^1.3.0",
"aurelia-testing": "^1.0.0-beta.4.0.0",
"babel-jest": "^24.8.0",
"concurrently": "^3.6.1",
"conventional-changelog-cli": "^1.3.22",
"copyfiles": "^2.0.0",
"coveralls": "^3.0.2",
"cross-env": "^5.2.0",
"dts-bundle-generator": "7.2.0",
"husky": "^0.14.3",
"jest": "^24.8.0",
"rimraf": "^2.6.1",
"rollup": "^3.3.0",
"ts-jest": "^24.0.0",
"ts-node": "^7.0.1",
"tslib": "^2.4.1",
"tslint": "^5.11.0",
"typedoc": "^0.16.8",
"typescript": "^4.8.4",
"yargs": "^12.0.2"
},
"aurelia": {
"import": {
"dependencies": [
{
"name": "aurelia-store",
"main": "aurelia-store",
"path": "../node_modules/aurelia-store/dist/commonjs",
"resources": []
},
{
"name": "rxjs",
"main": "./index.js",
"path": "../node_modules/rxjs",
"resources": []
},
{
"name": "rxjs/operators",
"main": "./index.js",
"path": "../node_modules/rxjs/operators",
"resources": []
}
],
"tutorial": [
"1. Create a state object",
"2. in main.js add .plugin('aurelia-store', { initialState: yourInitialState })",
"3. register actions using store.registerAction",
"4. dispatch actions using store.dispatch(yourPreviouslyRegisteredAction, ...)"
]
}
}
}