-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
105 lines (105 loc) · 4.21 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
{
"name": "publisher-subscriber-provider",
"version": "0.0.1",
"description": "This package is an implementation of the publisher-subscriber pattern, using react hooks and context. It provides the necessary tools to publish events and subscribe to them. Control that no re-renders are performed on components that are not affected by published events.",
"files": [
"dist",
"lib",
"index.js",
"index.d.ts",
"provider",
"LICENSE",
"package.json",
"README.md"
],
"browser": "index.js",
"main": "index.js",
"module": "lib/index.esm.js",
"types": "index.d.ts",
"jsnext:main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/v-borrego/publisher-subscriber-provider.git"
},
"keywords": [
"publisher",
"subscriber",
"provider",
"react",
"hook"
],
"author": "Victor Borrego Perez",
"license": "ISC",
"bugs": {
"url": "https://github.com/v-borrego/publisher-subscriber-provider/issues"
},
"homepage": "https://github.com/v-borrego/publisher-subscriber-provider#readme",
"scripts": {
"clean": "rimraf build/*",
"clean:demo": "rimraf build-demo/*",
"typecheck": "tsc --pretty --noEmit",
"typecheck:watch": "npm run typecheck -- --watch",
"build": "npm run clean && npm run build:lib && npm run build:lib:esm && npm run build:umd && npm run build:es && npm run build:umd:min && npm run build:copyfiles && npm run build:copydts",
"build:lib": "cross-env BABEL_ENV=es5_cjs babel ./src --out-dir ./build/lib --ignore 'src/**/*.test.ts,src/**/*.test.js,src/**/*.d.ts' --extensions '.ts,.tsx,.js'",
"build:lib:esm": "cross-env BABEL_ENV=es5_esm babel ./src/index.ts --out-file ./build/lib/index.esm.js",
"build:es": "cross-env BABEL_ENV=es babel --config-file ./.babelrc ./src --out-dir ./build --ignore 'src/**/*.test.ts,src/**/*.test.js,src/**/*.d.ts' --extensions '.ts,.tsx,.js'",
"build:umd": "cross-env BABEL_ENV=umd webpack --config ./config/webpack/webpack.prod.js",
"build:umd:min": "cross-env BABEL_ENV=umd webpack -p --config ./config/webpack/webpack.prod.js",
"build:copyfiles": "copyfiles package.json index.d.ts readme.md LICENSE.txt silent-renew.html build",
"build:copydts": "copyfiles \"./src/**/*.d.ts\" -u 1 build",
"start:demo": "cross-env BABEL_ENV=umd webpack-dev-server --port 4556 --config ./config/webpack/webpack.demo.js --open",
"test": "cross-env NODE_ENV=test jest --verbose --config jest.json --passWithNoTests",
"test:watch": "cross-env NODE_ENV=test jest --verbose --watchAll --config jest.json",
"lint": "eslint \"src/**/*.{ts,tsx}\" --rule \"react-hooks/exhaustive-deps:off\"",
"lint:fix": "prettier --write \"src/**/*.{ts,tsx,js,jsx}\" && npm run lint -- --fix",
"release": "npm publish ./build",
"release:local": "npm install ./build -g"
},
"dependencies": {
"core-js": "^3.0.1"
},
"peerDependencies": {
"react": ">=16.8.6",
"react-dom": ">=16.8.6"
},
"devDependencies": {
"@babel/cli": "^7.1.0",
"@babel/core": "^7.2.2",
"@babel/node": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@babel/register": "^7.0.0",
"@types/history": "^4.7.0",
"@types/jest": "^23.3.2",
"@types/node": "^10.12.10",
"@types/react": "^16.8.1",
"@types/react-router-dom": "^5.1.3",
"@typescript-eslint/eslint-plugin": "^2.18.0",
"@typescript-eslint/parser": "^2.18.0",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^24.5.0",
"babel-loader": "^8.0.2",
"copyfiles": "^2.1.0",
"cross-env": "^5.2.0",
"eslint": "^6.8.0",
"eslint-plugin-react": "^7.18.0",
"eslint-plugin-react-hooks": "^2.3.0",
"fs-extra": "^7.0.1",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.5.0",
"prettier": "^1.14.3",
"react": "^16.8.6",
"rimraf": "^2.6.2",
"to-camel-case": "^1.0.0",
"ts-jest": "^23.10.1",
"typescript": "^3.0.3",
"url-loader": "^1.1.2",
"webpack": "4.28.4",
"webpack-cli": "^3.1.0",
"webpack-dev-server": "^3.1.10"
}
}