Skip to content

Commit c7230e7

Browse files
committed
Separate demo files
1 parent 4800724 commit c7230e7

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
22
npm-debug.log
33
.DS_Store
4-
lib
5-
demo
4+
/lib
5+
/demo

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"clean": "rimraf lib; rimraf demo",
88
"build:webpack": "NODE_ENV=production webpack --config webpack.config.prod.js",
99
"build:demo": "npm run clean && npm run build:webpack && cp index.html demo",
10-
"build:compile": "NODE_ENV=production babel src -d lib --ignore App.js,index.js",
10+
"build:compile": "NODE_ENV=production babel src -d lib --ignore src/demo",
1111
"start": "node server.js",
1212
"lint": "standard --verbose | snazzy",
1313
"test:mocha": "NODE_ENV=production mocha --require ignore-styles test/mocha --compilers js:babel-core/register",

src/App.js renamed to src/demo/App.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import React, { Component } from 'react'
22

3-
import ReactPlayer from './ReactPlayer'
3+
import './Range.scss'
4+
import ReactPlayer from '../ReactPlayer'
45

56
export default class App extends Component {
67
state = {
File renamed without changes.

webpack.config.dev.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
devtool: 'cheap-module-eval-source-map',
66
entry: [
77
'webpack-hot-middleware/client',
8-
'./src/index'
8+
'./src/demo/index'
99
],
1010
output: {
1111
path: path.join(__dirname, 'demo'),

webpack.config.prod.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var ExtractTextPlugin = require('extract-text-webpack-plugin')
44

55
module.exports = {
66
devtool: 'source-map',
7-
entry: './src/index',
7+
entry: './src/demo/index',
88
output: {
99
path: path.join(__dirname, 'demo'),
1010
filename: 'app.js',

0 commit comments

Comments
 (0)