-
Notifications
You must be signed in to change notification settings - Fork 11
/
package.json
139 lines (139 loc) · 4.49 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
{
"name": "openlaw-elements",
"version": "1.1.2",
"description": "Dynamically render React form components from an OpenLaw template.",
"author": "OpenLaw Team <opensource@openlaw.io>",
"contributors": [
"Jeremiah Trein <jeremiahtrein@gmail.com>",
"Ramiro Jr. Franco <me@ramiro.mx> (ramiro.mx)"
],
"license": "Apache-2.0",
"homepage": "https://openlaw.io",
"repository": {
"type": "git",
"url": "https://github.com/openlawteam/openlaw-elements.git"
},
"bugs": "https://github.com/openlawteam/openlaw-elements/issues",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
"files": [
"dist"
],
"sideEffects": [
"*.css"
],
"jest": {
"coverageReporters": [
"json-summary",
"text"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2)$": "<rootDir>/src/__mocks__/fileMock.js",
"\\.(css|less)$": "<rootDir>/src/__mocks__/styleMock.js"
},
"setupFiles": [
"jest-canvas-mock"
],
"transformIgnorePatterns": [
"/node_modules/",
"/openlaw-client/"
]
},
"scripts": {
"build": "npm run clean && npm run build:cjs && npm run build:esm && npm run build:umd && npm run build:css",
"build:cjs": "npm run clean:cjs && cross-env NODE_ENV=cjs rollup -c",
"build:css": "npm run sass & npm run copy:css && npm run clean:css",
"build:esm": "npm run clean:esm && npm run build:types && cross-env NODE_ENV=esm rollup -c && rimraf dist/esm/__*",
"build:example": "npm run build:esm && npm run build:css",
"build:types": "flow-copy-source src dist/esm",
"build:umd": "npm run clean:umd && cross-env NODE_ENV=umd rollup -c",
"clean": "rimraf dist",
"clean:cjs": "rimraf dist/cjs",
"clean:esm": "rimraf dist/esm",
"clean:css": "rimraf csstmp",
"clean:umd": "rimraf dist/umd",
"copy:css": "npx cpy csstmp/openlaw-elements.min.css dist",
"flow": "flow",
"lint": "eslint --c .eslintrc.json 'src/**/*.js'",
"prepublishOnly": "npm run lint && npm run flow && npm run build",
"release": "np",
"sass": "npx node-sass src/style.scss csstmp/openlaw-elements.min.css --output-style compressed",
"start": "cross-env NODE_ENV=esm webpack-dev-server --hot --config webpack.config.dev.js",
"test": "jest",
"test:coverage": "npm test -- --coverage --collectCoverageFrom=\"src/**/*.{js,jsx}\" && ./bin/make-coverage-badge.js --output-path \"./src/__tests__/coverge-badge.svg\" && rimraf ./coverage"
},
"browserslist": [
"last 1 version",
"not dead",
"> 0.2%"
],
"devDependencies": {
"@babel/cli": "^7.8.4",
"@babel/core": "^7.7.4",
"@babel/plugin-proposal-class-properties": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.8.3",
"@babel/plugin-transform-runtime": "^7.8.3",
"@babel/preset-env": "^7.3.1",
"@babel/preset-flow": "^7.7.4",
"@babel/preset-react": "^7.7.4",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"babel-eslint": "^10.0.3",
"babel-loader": "^8.0.5",
"babel-plugin-flow-react-proptypes": "^25.0.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cpy-cli": "^3.0.0",
"cross-env": "^6.0.3",
"css-loader": "^3.2.1",
"eslint": "^6.7.2",
"eslint-plugin-flowtype": "^4.6.0",
"eslint-plugin-react": "^7.17.0",
"flow-bin": "^0.105.2",
"flow-copy-source": "^2.0.9",
"html-webpack-plugin": "^3.2.0",
"jest": "^24.9.0",
"jest-canvas-mock": "^2.2.0",
"node-sass": "^4.13.1",
"np": "^5.1.2",
"openlaw": "^0.2.20",
"react": "^16.12.0",
"react-dom": "^16.13.0",
"rimraf": "^3.0.0",
"rollup": "^1.1.2",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-postcss": "^2.1.1",
"rollup-plugin-replace": "^2.1.0",
"rollup-plugin-terser": "^5.2.0",
"sass-loader": "^7.3.1",
"style-loader": "^1.1.3",
"webpack": "^4.29.3",
"webpack-cli": "^3.3.10",
"webpack-dev-server": "^3.1.14"
},
"peerDependencies": {
"react": ">= 16.0.0",
"react-dom": ">= 16.0.0"
},
"dependencies": {
"@babel/runtime": "^7.8.4",
"deep-equal": "^1.1.1",
"flatpickr": "^4.6.3",
"prop-types": "^15.7.2",
"react-autosuggest": "^9.4.3",
"react-image-crop": "^6.0.12",
"uuid": "^3.3.3"
},
"keywords": [
"openlaw",
"legal",
"law",
"contract",
"agreement",
"blockchain",
"ethereum",
"smart contract",
"components"
]
}