mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
Build
This commit is contained in:
parent
5511238f54
commit
f1fcbc079b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
dist/
|
||||
node_modules/
|
27
gulpfile.js
Normal file
27
gulpfile.js
Normal 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
3
src/plugins.js
Normal file
@ -0,0 +1,3 @@
|
||||
export var Native = {
|
||||
thing: true,
|
||||
};
|
9
test/app/index.html
Normal file
9
test/app/index.html
Normal file
@ -0,0 +1,9 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="../../dist/ionic-native.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<h2>Test</h2>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user