-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
97 lines (97 loc) · 3.11 KB
/
package.json
File metadata and controls
97 lines (97 loc) · 3.11 KB
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
{
"name": "string-to-react-component",
"version": "3.0.0",
"private": false,
"author": "dev-javascript",
"description": "Create React component from string",
"main": "lib/cjs/index.js",
"module": "lib/esm/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/dev-javascript/string-to-react-component.git"
},
"homepage": "https://github.com/dev-javascript/string-to-react-component/",
"bugs": {
"url": "https://github.com/dev-javascript/string-to-react-component/issues"
},
"scripts": {
"watch": "cross-env BABEL_OUTPUT=umd INCLUDE_POLYFILLS=true webpack --config webpack.config.js --env=development --watch",
"build": "npm-run-all clean:* --parallel build:lib:* & npm-run-all --parallel build:umd:*",
"build:umd:dev": "cross-env BABEL_OUTPUT=umd INCLUDE_POLYFILLS=true webpack --config webpack.config.js --env=development",
"build:umd:prod": "rollup -c",
"build:umd:prod-pf": "cross-env INCLUDE_POLYFILLS=true rollup -c",
"build:lib:cjs": "cross-env BABEL_OUTPUT=cjs babel src/ --out-dir lib/cjs/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
"build:lib:esm": "babel src/ --out-dir lib/esm/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
"build:lib:esm-pf": "cross-env INCLUDE_POLYFILLS=true babel src/ --out-dir lib/esm-including-polyfills/ --ignore **/__tests__,**/__mocks__,**/*.test.js,**/*.js.snap",
"clean:lib": "rimraf lib",
"clean:dist": "rimraf dist",
"prepublish": "npm run build",
"test": "jest",
"lint": "eslint src",
"deploy": "gh-pages -d demo"
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/cli": "^7.13.14",
"@babel/core": "^7.11.4",
"@babel/eslint-parser": "^7.14.4",
"@babel/plugin-transform-react-jsx": "^7.10.4",
"@babel/plugin-transform-react-jsx-self": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.13.10",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@babel/runtime-corejs3": "^7.13.10",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"babel-loader": "^8.1.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"cross-env": "^7.0.3",
"eslint": "^7.27.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"gh-pages": "^3.2.3",
"jest": "^26.6.3",
"jest-extended": "^0.11.5",
"npm-run-all": "^4.1.5",
"prettier": "2.3.0",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-test-renderer": "16.9.0",
"rollup": "^2.41.0",
"rollup-plugin-terser": "7.0.2",
"webpack": "^4.44.1",
"webpack-cli": "^3.3.12"
},
"files": [
"dist",
"lib",
"src",
"!*.test.js",
"!*.test.js.snap"
],
"keywords": [
"react",
"component",
"string",
"element",
"jsx",
"converter",
"parser"
],
"license": "MIT",
"directories": {
"lib": "lib"
},
"jest": {
"setupFilesAfterEnv": [
"jest-extended"
]
},
"dependencies": {
"prop-types": "^15.8.1"
}
}