Skip to content
This repository has been archived by the owner on Jul 19, 2019. It is now read-only.

Port example to use create-react-app #102

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions examples/vector-widget/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# dependencies
node_modules

# testing
coverage

# production
build

# misc
.DS_Store
.env
npm-debug.log
8 changes: 3 additions & 5 deletions examples/vector-widget/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
To try this example, run:

```
npm install
npm run build
$ npm install
$ npm start
```

in this directory, then open index.html in your browser.

**Note:** If you have any issues, ensure that you ran `npm install` from the root of the `react-art` project first.
in this directory, then open [http://localhost:3000](http://localhost:3000) it your browser.
7 changes: 0 additions & 7 deletions examples/vector-widget/app.js

This file was deleted.

22 changes: 0 additions & 22 deletions examples/vector-widget/index.html

This file was deleted.

17 changes: 8 additions & 9 deletions examples/vector-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
{
"devDependencies": {
"babel-core": "^6.7.7",
"babel-loader": "^6.2.4",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"react": "^15.0.2",
"react-dom": "^15.0.2",
"webpack": "^1.13.0"
"react-scripts": "0.6.1"
},
"dependencies": {
"react": "^15.3.2",
"react-art": "^0.15.1",
"react-dom": "^15.3.2"
},
"scripts": {
"postinstall": "npm install ../..",
"build": "webpack app.js bundle.js"
"start": "react-scripts start",
"build": "react-scripts build"
}
}
18 changes: 18 additions & 0 deletions examples/vector-widget/public/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!doctype html>
<html>
<head>
<title>VectorWidget</title>
</head>
<body>
<div id="root">
<p>If you're seeing this message, it means you haven't built this example. Try running:</p>

<pre><code>
npm install
npm start
</code></pre>

<p>Then open <a href="http://localhost:3000">http://localhost:3000</a> to view it in the browser.</p>
</div>
</body>
</html>
8 changes: 8 additions & 0 deletions examples/vector-widget/src/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import React from 'react';
import ReactDOM from 'react-dom';
import VectorWidget from './VectorWidget';

ReactDOM.render(
<VectorWidget />,
document.getElementById('root')
);
23 changes: 0 additions & 23 deletions examples/vector-widget/webpack.config.js

This file was deleted.

Loading