diff --git a/example/package.json b/example/package.json index 65fa61d..9e684c2 100644 --- a/example/package.json +++ b/example/package.json @@ -28,7 +28,7 @@ "rxjs": "5.1.1", "sw-toolbox": "3.6.0", "zone.js": "^0.8.10", - "ion-multi-picker": "^2.0.3" + "ion-multi-picker": "^2.1.0" }, "devDependencies": { "@ionic/app-scripts": "1.3.7", diff --git a/example/src/app/app.module.ts b/example/src/app/app.module.ts index 5477b7e..fd638a4 100644 --- a/example/src/app/app.module.ts +++ b/example/src/app/app.module.ts @@ -5,7 +5,7 @@ import { MyApp } from './app.component'; import { TabsPage } from '../pages/tabs/tabs'; import { SimpleExamplePage } from '../pages/simple/simple'; import { AdvancedExamplePage } from '../pages/advanced/advanced'; -import { MultiPickerModule } from '../../../src'; +import { MultiPickerModule } from 'ion-multi-picker'; import { StatusBar } from '@ionic-native/status-bar'; import { SplashScreen } from '@ionic-native/splash-screen'; diff --git a/gulpfile.js b/gulpfile.js index 80bdd10..f89261c 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,15 +7,15 @@ var gulp = require('gulp'), runSequence = require('run-sequence'), argv = process.argv; -gulp.task('del', function() { +gulp.task('del', function () { return del(['dist', '*.scss', '*.tgz']); }); -gulp.task('copyhtml',function(){ +gulp.task('copyhtml', function () { gulp.src('src/components/multi-picker/*.html').pipe(gulp.dest('dist/components/multi-picker')); }) -gulp.task('copyscss', function() { +gulp.task('copyscss', function () { gulp.src('src/components/multi-picker/*.scss').pipe(gulp.dest('dist/components/multi-picker')); }); @@ -23,13 +23,17 @@ var shell = require('gulp-shell'); gulp.task('ngc', shell.task(['ngc -p ./config/tsconfig.build.json'])); gulp.task('pack', shell.task(['npm pack'])); -gulp.task('post', function(){ +gulp.task('post', function () { return del(['./config/node_modules', './config/src']); }); -gulp.task('default', function() { - runSequence('del','copyhtml', 'copyscss', 'ngc', 'pack','post') +gulp.task('pack', function () { + runSequence('del', 'copyhtml', 'copyscss', 'ngc', 'pack', 'post') }); +gulp.task('default', function () { + runSequence('del', 'copyhtml', 'copyscss', 'ngc', 'post') +}) + diff --git a/package.json b/package.json index 87f3a8f..79b5cfa 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "protractor": "protractor ./config/protractor.conf.js", "test": "karma start ./config/karma.conf.js", "build": "gulp", - "posttest": "remap-istanbul -i coverage/json/coverage-final.json -o coverage/html -t html" + "posttest": "remap-istanbul -i coverage/json/coverage-final.json -o coverage/html -t html", + "prepare":"npm run build" }, "files": [ "dist"