-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #113 from remarkablemark/build/package
build(package): update dependencies, tidy docs and examples, generate sourcemap
- Loading branch information
Showing
11 changed files
with
183 additions
and
109 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
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 |
---|---|---|
@@ -1,6 +1,51 @@ | ||
node_modules | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (http://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules | ||
jspm_packages | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Build files | ||
build | ||
dist | ||
|
||
# Vim swap files | ||
*.swp | ||
*.log | ||
|
||
# Mac OS | ||
.DS_Store |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"hooks": { | ||
"pre-commit": "npm test && lint-staged", | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS" | ||
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS", | ||
"pre-commit": "npm run test:coverage && lint-staged" | ||
} | ||
} |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
{ | ||
"*.js": ["npm run lint:fix", "git add"] | ||
"*.js": ["npm run lint:fix", "git add"], | ||
"*.{html,json,md,yml}": ["prettier --write", "git add"], | ||
"*.*rc": ["prettier --write --parser json", "git add"] | ||
} |
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 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 |
---|---|---|
@@ -1,36 +1,38 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Load with Require.js (AMD)</title> | ||
</head> | ||
<body style="padding: 50px"> | ||
<div id="root"></div> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Load with Require.js (AMD)</title> | ||
</head> | ||
<body style="padding: 50px"> | ||
<div id="root"></div> | ||
|
||
<!-- Require.js --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script> | ||
<!-- Require.js --> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script> | ||
|
||
<script> | ||
requirejs.config({ | ||
paths: { | ||
'html-react-parser': '../dist/html-react-parser.min', | ||
'react': 'https://unpkg.com/react@16/umd/react.production.min', | ||
'react-dom': 'https://unpkg.com/react-dom@16/umd/react-dom.production.min' | ||
} | ||
}); | ||
<script> | ||
window.requirejs.config({ | ||
paths: { | ||
'html-react-parser': '../dist/html-react-parser.min', | ||
react: 'https://unpkg.com/react@16/umd/react.production.min', | ||
'react-dom': | ||
'https://unpkg.com/react-dom@16/umd/react-dom.production.min' | ||
} | ||
}); | ||
|
||
requirejs([ | ||
'react-dom', 'html-react-parser' | ||
], function(ReactDOM, HTMLReactParser) { | ||
ReactDOM.render( | ||
HTMLReactParser( | ||
'<h2 style="font-family:\'Lucida Grande\';">' + | ||
'HTMLReactParser loaded with Require.js' + | ||
'<\/h2>' | ||
), | ||
document.getElementById('root') | ||
); | ||
}); | ||
</script> | ||
</body> | ||
window.requirejs(['react-dom', 'html-react-parser'], function( | ||
ReactDOM, | ||
HTMLReactParser | ||
) { | ||
ReactDOM.render( | ||
HTMLReactParser( | ||
'<h2 style="font-family:\'Lucida Grande\';">' + | ||
'HTMLReactParser loaded with Require.js' + | ||
'<\/h2>' | ||
), | ||
document.getElementById('root') | ||
); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
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 |
---|---|---|
@@ -1,28 +1,32 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Load with Script Tag</title> | ||
</head> | ||
<body style="padding: 50px"> | ||
<div id="root"></div> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<title>Load with Script Tag</title> | ||
</head> | ||
<body style="padding: 50px;"> | ||
<div id="root"></div> | ||
|
||
<!-- HTMLReactParser depends on React --> | ||
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script> | ||
<script src="../dist/html-react-parser.min.js"></script> | ||
<!-- React --> | ||
<script src="https://unpkg.com/react@16/umd/react.production.min.js"></script> | ||
<!-- <script src="https://unpkg.com/react@15/dist/react.min.js"></script> --> | ||
|
||
<!-- ReactDOM --> | ||
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> | ||
<!-- HTMLReactParser --> | ||
<script src="../dist/html-react-parser.min.js"></script> | ||
|
||
<script> | ||
ReactDOM.render( | ||
HTMLReactParser( | ||
'<h2 style="font-family:\'Lucida Grande\';">' + | ||
'HTMLReactParser loaded with script tag' + | ||
'<\/h2>' | ||
), | ||
document.getElementById('root') | ||
); | ||
</script> | ||
</body> | ||
<!-- ReactDOM --> | ||
<script src="https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> | ||
<!-- <script src="https://unpkg.com/react-dom@15/dist/react-dom.min.js"></script> --> | ||
|
||
<script> | ||
ReactDOM.render( | ||
HTMLReactParser( | ||
'<h2 style="font-family: \'Lucida Grande\', sans-serif;">' + | ||
'HTMLReactParser loaded with script tag' + | ||
'<\/h2>' | ||
), | ||
document.getElementById('root') | ||
); | ||
</script> | ||
</body> | ||
</html> |
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
Oops, something went wrong.