From f1fcbc079bf07da35f3d9858bc606758f9482322 Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Tue, 24 Nov 2015 11:07:41 -0600 Subject: [PATCH] Build --- .gitignore | 2 ++ gulpfile.js | 27 +++++++++++++++++++++++++++ src/plugins.js | 3 +++ test/app/index.html | 9 +++++++++ 4 files changed, 41 insertions(+) create mode 100644 .gitignore create mode 100644 gulpfile.js create mode 100644 src/plugins.js create mode 100644 test/app/index.html diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000..1eae0cf67 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +dist/ +node_modules/ diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 000000000..214c3e1f7 --- /dev/null +++ b/gulpfile.js @@ -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: '.' + }); +}); diff --git a/src/plugins.js b/src/plugins.js new file mode 100644 index 000000000..d00d7acc2 --- /dev/null +++ b/src/plugins.js @@ -0,0 +1,3 @@ +export var Native = { + thing: true, +}; diff --git a/test/app/index.html b/test/app/index.html new file mode 100644 index 000000000..fd92fb224 --- /dev/null +++ b/test/app/index.html @@ -0,0 +1,9 @@ + + + + + + +

Test

+ +