This commit is contained in:
Max Lynch 2015-11-24 11:07:41 -06:00
parent 5511238f54
commit f1fcbc079b
4 changed files with 41 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
dist/
node_modules/

27
gulpfile.js Normal file
View File

@ -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: '.'
});
});

3
src/plugins.js Normal file
View File

@ -0,0 +1,3 @@
export var Native = {
thing: true,
};

9
test/app/index.html Normal file
View File

@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<script src="../../dist/ionic-native.js"></script>
</head>
<body>
<h2>Test</h2>
</body>
</html>