mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2026-05-20 00:06:24 +08:00
Build
This commit is contained in:
+27
@@ -0,0 +1,27 @@
|
||||
var gulp = require("gulp");
|
||||
sourcemaps = require("gulp-sourcemaps"),
|
||||
babel = require("gulp-babel"),
|
||||
concat = require("gulp-concat"),
|
||||
connect = require('gulp-connect');
|
||||
|
||||
gulp.task("default", ['build'], function () {
|
||||
});
|
||||
|
||||
gulp.task('build', function() {
|
||||
return gulp.src("src/**/*.js")
|
||||
.pipe(sourcemaps.init())
|
||||
.pipe(babel())
|
||||
.pipe(concat("ionic-native.js"))
|
||||
.pipe(sourcemaps.write("."))
|
||||
.pipe(gulp.dest("dist"));
|
||||
});
|
||||
|
||||
gulp.task('test', ['build', 'serve'], function() {
|
||||
|
||||
})
|
||||
|
||||
gulp.task('serve', function() {
|
||||
connect.server({
|
||||
root: '.'
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user