Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
add prepare script
Browse files Browse the repository at this point in the history
  • Loading branch information
raychenfj committed Jul 29, 2017
1 parent c4093f9 commit e8a53fa
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion example/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
16 changes: 10 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,29 +7,33 @@ 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'));
});

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')
})


3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e8a53fa

Please sign in to comment.