forked from nfl/react-helmet
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
348 additions
and
1,367 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
module.exports = { | ||
presets: [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
targets: { | ||
browsers: ["last 1 versions", "ie >= 10"] | ||
}, | ||
modules: false, | ||
loose: true | ||
} | ||
], | ||
"@babel/preset-react" | ||
], | ||
plugins: [ | ||
"@babel/plugin-proposal-class-properties", | ||
"@babel/plugin-proposal-object-rest-spread" | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,8 @@ | |
"name": "react-safety-helmet", | ||
"description": "A fork of react-helmet that support for renderToNodeStream and thread safe, provides both react hooks and declarative api", | ||
"version": "6.3.0", | ||
"main": "./lib/index.js", | ||
"module": "es/index.js", | ||
"main": "./lib/Helmet.js", | ||
"module": "es/Helmet.js", | ||
"sideEffect": false, | ||
"author": "Bin Hou <[email protected]> (https://github.com/kouhin)", | ||
"contributors": [ | ||
|
@@ -38,27 +38,23 @@ | |
"react": ">=16.8.0" | ||
}, | ||
"dependencies": { | ||
"core-js": "2", | ||
"exenv": "^1.2.2", | ||
"prop-types": "^15.7.2", | ||
"react-fast-compare": "^2.0.4" | ||
}, | ||
"devDependencies": { | ||
"@babel/cli": "^7.4.4", | ||
"@babel/core": "^7.4.4", | ||
"@babel/plugin-external-helpers": "^7.2.0", | ||
"@babel/plugin-proposal-class-properties": "^7.4.4", | ||
"@babel/plugin-proposal-object-rest-spread": "^7.4.4", | ||
"@babel/plugin-transform-strict-mode": "^7.2.0", | ||
"@babel/preset-env": "^7.4.4", | ||
"@babel/preset-react": "^7.0.0", | ||
"babel-eslint": "^10.0.1", | ||
"babel-loader": "^8.0.6", | ||
"babel-plugin-add-module-exports": "^1.0.2", | ||
"babel-plugin-istanbul": "^5.1.4", | ||
"babel-plugin-transform-remove-strict-mode": "^0.0.2", | ||
"chai": "^4.2.0", | ||
"codecov": "^3.5.0", | ||
"conventional-changelog-cli": "^2.0.21", | ||
"cross-env": "^5.2.0", | ||
"cz-conventional-changelog": "^2.1.0", | ||
"eslint": "^5.16.0", | ||
"eslint-config-nfl": "^12.0.0", | ||
|
@@ -77,31 +73,33 @@ | |
"karma-coverage": "^1.1.2", | ||
"karma-html-reporter": "^0.2.7", | ||
"karma-mocha": "^1.3.0", | ||
"karma-rollup-preprocessor": "^7.0.0", | ||
"karma-sourcemap-loader": "^0.3.7", | ||
"karma-spec-reporter": "^0.0.32", | ||
"karma-tap-reporter": "^0.0.6", | ||
"karma-webpack": "^3.0.5", | ||
"mocha": "^6.1.4", | ||
"prettier": "^1.17.1", | ||
"react": "^16.8.6", | ||
"react-dom": "^16.8.6", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.12.1", | ||
"rollup-plugin-babel": "^4.3.2", | ||
"rollup-plugin-commonjs": "^10.0.0", | ||
"rollup-plugin-node-resolve": "^5.0.0", | ||
"rollup-plugin-replace": "^2.2.0", | ||
"sinon": "^7.3.2", | ||
"sinon-chai": "^3.3.0", | ||
"webpack": "^4.31.0" | ||
"sinon-chai": "^3.3.0" | ||
}, | ||
"scripts": { | ||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"clean": "rimraf lib coverage es", | ||
"lint": "eslint --ignore-path .gitignore --fix -- .", | ||
"test": "cross-env BABEL_ENV=test karma start karma.config.js", | ||
"test": "karma start karma.config.js", | ||
"posttest": "istanbul report lcov text", | ||
"pretest": "npm run clean && npm run lint", | ||
"commit": "git-cz", | ||
"compile": "npm run compile:commonjs && npm run compile:es", | ||
"compile:commonjs": "cross-env BABEL_ENV=commonjs babel src --out-dir lib", | ||
"compile:es": "cross-env BABEL_ENV=es babel src --out-dir es --ignore test.js", | ||
"prepublish": "npm run compile" | ||
"build": "rollup -c", | ||
"prepublish": "npm run build" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
import babel from "rollup-plugin-babel"; | ||
|
||
import pkg from "./package.json"; | ||
|
||
const baseConfig = { | ||
input: "src/index.js", | ||
plugins: [ | ||
babel({ | ||
exclude: "node_modules/**" | ||
}) | ||
], | ||
external: [ | ||
...Object.keys(pkg.dependencies), | ||
...Object.keys(pkg.peerDependencies) | ||
] | ||
}; | ||
|
||
export default [ | ||
Object.assign( | ||
{ | ||
output: { | ||
file: "lib/Helmet.js", | ||
format: "cjs" | ||
} | ||
}, | ||
baseConfig | ||
), | ||
Object.assign( | ||
{ | ||
output: { | ||
file: "es/Helmet.js", | ||
format: "esm" | ||
} | ||
}, | ||
baseConfig | ||
) | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.