diff --git a/App.js b/example/App.js similarity index 83% rename from App.js rename to example/App.js index e6e93eb..c79b41d 100644 --- a/App.js +++ b/example/App.js @@ -1,5 +1,5 @@ import React from 'react'; -import Instant2FAComponent from './src/Instant2FAComponent.jsx'; +import Instant2FAComponent from '../src/Instant2FAComponent.jsx'; const App = () => { const onError = (e) => { diff --git a/index.html b/example/index.html similarity index 100% rename from index.html rename to example/index.html diff --git a/main.js b/example/main.js similarity index 100% rename from main.js rename to example/main.js diff --git a/webpack.config.js b/example/webpack.config.js similarity index 100% rename from webpack.config.js rename to example/webpack.config.js diff --git a/package.json b/package.json index 1e2e230..6a9143f 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,7 @@ "description": "", "main": "index.js", "scripts": { - "dev": "webpack-dev-server --inline --hot --port 3000", + "dev": "cd example && webpack-dev-server --inline --hot --port 3000", "compile": "npm-run-all --parallel compile:source compile:postcss", "compile:postcss": "postcss --use precss --use postcss-cssnext -d lib src/*.css", "compile:source": "babel src --out-dir lib",