Skip to content

Commit

Permalink
Move example to separate dir using bundled lib
Browse files Browse the repository at this point in the history
  • Loading branch information
likethemammal committed Jan 21, 2018
1 parent e4499a4 commit 8c7fef7
Show file tree
Hide file tree
Showing 12 changed files with 19,696 additions and 17 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
node_modules/
bin/
lib/
coverage/
3 changes: 1 addition & 2 deletions src/example.html → example/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
</head>
<body>
<div id="app"></div>
<script src="/lib.js"></script>
<script src="/example.js"></script>
<script src="/bundle.js"></script>
</body>
</html>
5 changes: 3 additions & 2 deletions src/example.js → example/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom'

import global_css from '@likethemammal/general-components/bin/global.css'
import OSSReactExample from '../lib'


ReactDOM.render(
<window.OSSReactExample />,
<OSSReactExample />,
document.getElementById('app')
)

0 comments on commit 8c7fef7

Please sign in to comment.