-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09297d4
commit a09efe0
Showing
13 changed files
with
2,006 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"presets": ["babel-preset-es2015-without-strict"], | ||
"plugins": ["transform-object-rest-spread"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env node | ||
var readTheMeter = require('../dist/reader'); | ||
|
||
readTheMeter.default(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<DOCTYPE HTML> | ||
<html> | ||
<head> | ||
</head> | ||
<body> | ||
</body> | ||
<script src="./main.bundle.js"></script> | ||
<script> | ||
document.write('<script src="http://' + (location.host || 'localhost').split(':')[0] + | ||
':35729/livereload.js?snipver=1"></' + 'script>') | ||
</script> | ||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import webpack from 'webpack'; | ||
import gulp from 'gulp'; | ||
import livereload from 'gulp-livereload'; | ||
import webpackConfig from './webpack.config'; | ||
import showStats from './showStats'; | ||
|
||
|
||
gulp.task('watchServer', () => { | ||
|
||
let conf = webpackConfig(true); | ||
|
||
console.log(conf); | ||
|
||
webpack(conf).watch(100, (err, stats) => { | ||
|
||
showStats(err, stats); | ||
|
||
}); | ||
|
||
}); | ||
|
||
gulp.task('watchClient', () => { | ||
|
||
let conf = webpackConfig(); | ||
|
||
livereload.listen({ | ||
port: 35729, | ||
}); | ||
|
||
webpack(conf).watch(100, (err, stats) => { | ||
|
||
showStats(err, stats); | ||
|
||
livereload.changed('reloaded'); | ||
|
||
}); | ||
|
||
}); | ||
|
||
gulp.task('watch', ['watchClient', 'watchServer']); |
Oops, something went wrong.