/
package.json
162 lines (162 loc) · 5.29 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
{
"name": "aurelia-store",
"version": "1.3.3",
"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",
"predoc": "cross-env rimraf doc/api.json && rimraf dist/doc-temp && tsc --p tsconfig-build.json --module amd --outFile dist/doc-temp/aurelia-store.js && node doc/shape-defs && copyfiles tsconfig.json dist/doc-temp",
"doc": "cross-env typedoc --json doc/api.json --excludeExternals --includeDeclarations --mode modules --target ES6 --name aurelia-store-docs dist/doc-temp/",
"postdoc": "cross-env node doc/shape-doc && rimraf dist/doc-temp",
"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 && npm run doc"
},
"jest": {
"modulePaths": [
"<rootDir>/src",
"<rootDir>/node_modules"
],
"moduleFileExtensions": [
"js",
"json",
"ts"
],
"transform": {
"^.+\\.(ts|tsx)$": "<rootDir>/node_modules/ts-jest/preprocessor.js",
"^.+\\.(scss|css)$": "<rootDir>/node_modules/jest-css-modules"
},
"testRegex": "\\.spec\\.(ts|js)x?$",
"setupFiles": [
"<rootDir>/test/jest-pretest.ts"
],
"testEnvironment": "node",
"moduleNameMapper": {
"(test\\\\unit\\\\)aurelia-(.*)": "<rootDir>/node_modules/aurelia-$2",
"^.+\\.(css)$": "<rootDir>/test/jest-css-stub.js"
},
"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 <zewa666@gmail.com> (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": {
"aurelia-dependency-injection": "^1.4.1",
"aurelia-logging": "^1.5.0",
"aurelia-pal": "^1.8.0",
"aurelia-templating": "^1.10.1",
"rxjs": "^6.2.2"
},
"devDependencies": {
"@types/jest": "^21.1.10",
"@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",
"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": "^1.6.1",
"husky": "^0.14.3",
"jest": "^22.4.4",
"jest-css-modules": "^1.1.0",
"rimraf": "^2.6.1",
"rollup": "^1.1.0",
"rollup-plugin-typescript2": "^0.18.1",
"ts-jest": "^22.4.6",
"ts-node": "^7.0.1",
"tslint": "^5.11.0",
"typedoc": "^0.11.1",
"typescript": "^3.0.1",
"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, ...)"
]
}
}
}