diff --git a/.gitignore b/.gitignore index 3bcb4de1..81fcd784 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ node_modules npm-debug.log .DS_Store -lib -demo +/lib +/demo diff --git a/package.json b/package.json index 4dc25bbe..1d4c0860 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "clean": "rimraf lib; rimraf demo", "build:webpack": "NODE_ENV=production webpack --config webpack.config.prod.js", "build:demo": "npm run clean && npm run build:webpack && cp index.html demo", - "build:compile": "NODE_ENV=production babel src -d lib --ignore App.js,index.js", + "build:compile": "NODE_ENV=production babel src -d lib --ignore src/demo", "start": "node server.js", "lint": "standard --verbose | snazzy", "test:mocha": "NODE_ENV=production mocha --require ignore-styles test/mocha --compilers js:babel-core/register", diff --git a/src/App.js b/src/demo/App.js similarity index 98% rename from src/App.js rename to src/demo/App.js index 53492411..4dc82420 100644 --- a/src/App.js +++ b/src/demo/App.js @@ -1,6 +1,7 @@ import React, { Component } from 'react' -import ReactPlayer from './ReactPlayer' +import './Range.scss' +import ReactPlayer from '../ReactPlayer' export default class App extends Component { state = { diff --git a/src/index.js b/src/demo/index.js similarity index 100% rename from src/index.js rename to src/demo/index.js diff --git a/webpack.config.dev.js b/webpack.config.dev.js index 9b431812..69886b33 100644 --- a/webpack.config.dev.js +++ b/webpack.config.dev.js @@ -5,7 +5,7 @@ module.exports = { devtool: 'cheap-module-eval-source-map', entry: [ 'webpack-hot-middleware/client', - './src/index' + './src/demo/index' ], output: { path: path.join(__dirname, 'demo'), diff --git a/webpack.config.prod.js b/webpack.config.prod.js index 254e890d..66774896 100644 --- a/webpack.config.prod.js +++ b/webpack.config.prod.js @@ -4,7 +4,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin') module.exports = { devtool: 'source-map', - entry: './src/index', + entry: './src/demo/index', output: { path: path.join(__dirname, 'demo'), filename: 'app.js',