Skip to content

Commit

Permalink
Separate demo files
Browse files Browse the repository at this point in the history
  • Loading branch information
cookpete committed Jan 9, 2016
1 parent 4800724 commit c7230e7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
node_modules
npm-debug.log
.DS_Store
lib
demo
/lib
/demo
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion src/App.js → src/demo/App.js
Original file line number Diff line number Diff line change
@@ -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 = {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit c7230e7

Please sign in to comment.