Skip to content

Commit

Permalink
build config
Browse files Browse the repository at this point in the history
  • Loading branch information
hongmaoxiao committed Nov 16, 2017
1 parent bca2553 commit 1da88f1
Show file tree
Hide file tree
Showing 1,640 changed files with 9,177 additions and 45,914 deletions.
5 changes: 4 additions & 1 deletion .babelrc
@@ -1,3 +1,6 @@
{
"presets": ["env"]
"plugins": [
"external-helpers"
],
"presets": [ "es2015" ]
}
13 changes: 13 additions & 0 deletions GulpFile.js
@@ -0,0 +1,13 @@
var gulp = require('gulp')
var webserver = require('gulp-webserver')

gulp.task('serve', function() {
gulp.src('.')
.pipe(webserver({
livereload: true,
directoryListing: true,
open: true
}));
});

gulp.task('default', ['serve'])
10 changes: 10 additions & 0 deletions demo/index.html
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Now demo</title>
</head>
<body>
<script src="../dist/nowjs.js"></script>
</body>
</html>

0 comments on commit 1da88f1

Please sign in to comment.