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

+ +