Last active
November 11, 2015 19:53
-
-
Save amenuor/4f2d333cb3bde0b390cc to your computer and use it in GitHub Desktop.
FullStack
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
var gulp = require('gulp'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var source = require('vinyl-source-stream'); | |
gulp.task('build', function () { | |
return browserify('js/src/main.js') | |
.transform("babelify", {presets: ["es2015", "react"], plugins: ["./babelRelayPlugin"]}) | |
.bundle() | |
.pipe(source('app.js')) | |
.pipe(gulp.dest('js/dist')); | |
}); | |
gulp.task('watch', ['build'], function () { | |
gulp.watch('js/src/*.js', ['build']); | |
}); | |
gulp.task('default', ['watch']); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>FullStack</title> | |
<link rel="stylesheet" type="text/css" href="semantic/dist/semantic.min.css"> | |
</head> | |
<body> | |
<div id="example"></div> | |
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script> | |
<script type="text/javascript" src="semantic/dist/semantic.min.js"></script> | |
<script type="text/javascript" src="js/dist/app.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment