@@ -86,9 +86,9 @@ gulp.task('watch', ['build'], function() {
8686
8787function watchTask ( task ) {
8888 watch ( [
89- 'ionic /**/*.ts' ,
90- '!ionic /components/*/test/**/*' ,
91- '!ionic /util/test/*'
89+ 'src /**/*.ts' ,
90+ '!src /components/*/test/**/*' ,
91+ '!src /util/test/*'
9292 ] ,
9393 function ( file ) {
9494 if ( file . event === "unlink" ) {
@@ -99,7 +99,7 @@ function watchTask(task){
9999 }
100100 ) ;
101101
102- watch ( 'ionic /**/*.scss' , function ( ) {
102+ watch ( 'src /**/*.scss' , function ( ) {
103103 gulp . start ( 'sass' ) ;
104104 } ) ;
105105
@@ -201,7 +201,7 @@ gulp.task('bundle.system', function(){
201201 var tsResult = tsCompile ( getTscOptions ( 'es6' ) , 'system' )
202202 . pipe ( babel ( babelOptions ) ) ;
203203
204- var swiper = gulp . src ( 'ionic /components/slides/swiper-widget.system.js' ) ;
204+ var swiper = gulp . src ( 'src /components/slides/swiper-widget.system.js' ) ;
205205
206206 return merge ( [ tsResult , swiper ] )
207207 . pipe ( remember ( 'system' ) )
@@ -246,13 +246,13 @@ gulp.task('transpile', function(){
246246function tsCompile ( options , cacheName ) {
247247 return gulp . src ( [
248248 'typings/main.d.ts' ,
249- 'ionic /**/*.ts' ,
250- '!ionic /**/*.d.ts' ,
251- '!ionic /components/*/test/**/*' ,
252- '!ionic /util/test/*' ,
253- '!ionic /config/test/*' ,
254- '!ionic /platform/test/*' ,
255- '!ionic /**/*.spec.ts'
249+ 'src /**/*.ts' ,
250+ '!src /**/*.d.ts' ,
251+ '!src /components/*/test/**/*' ,
252+ '!src /util/test/*' ,
253+ '!src /config/test/*' ,
254+ '!src /platform/test/*' ,
255+ '!src /**/*.spec.ts'
256256 ] )
257257 . pipe ( cache ( cacheName , { optimizeMemory : true } ) )
258258 . pipe ( tsc ( options , undefined , tscReporter ) ) ;
@@ -267,10 +267,10 @@ gulp.task('sass', function() {
267267 var minifyCss = require ( 'gulp-minify-css' ) ;
268268
269269 gulp . src ( [
270- 'ionic /ionic.ios.scss' ,
271- 'ionic /ionic.md.scss' ,
272- 'ionic /ionic.wp.scss' ,
273- 'ionic /ionic.scss'
270+ 'src /ionic.ios.scss' ,
271+ 'src /ionic.md.scss' ,
272+ 'src /ionic.wp.scss' ,
273+ 'src /ionic.scss'
274274 ] )
275275 . pipe ( sass ( {
276276 includePaths : [ __dirname + '/node_modules/ionicons/dist/scss/' ] ,
@@ -312,7 +312,7 @@ gulp.task('sass.themes', function() {
312312 */
313313gulp . task ( 'fonts' , function ( ) {
314314 gulp . src ( [
315- 'ionic /fonts/*.+(ttf|woff|woff2)' ,
315+ 'src /fonts/*.+(ttf|woff|woff2)' ,
316316 'node_modules/ionicons/dist/fonts/*.+(ttf|woff|woff2)'
317317 ] )
318318 . pipe ( gulp . dest ( 'dist/fonts' ) ) ;
@@ -323,9 +323,9 @@ gulp.task('fonts', function() {
323323 */
324324gulp . task ( 'copy.scss' , function ( ) {
325325 return gulp . src ( [
326- 'ionic /**/*.scss' ,
327- '!ionic /components/*/test/**/*' ,
328- '!ionic /util/test/*'
326+ 'src /**/*.scss' ,
327+ '!src /components/*/test/**/*' ,
328+ '!src /util/test/*'
329329 ] )
330330 . pipe ( gulp . dest ( 'dist' ) ) ;
331331} ) ;
@@ -337,9 +337,9 @@ gulp.task('lint.scss', function() {
337337 var scsslint = require ( 'gulp-scss-lint' ) ;
338338
339339 return gulp . src ( [
340- 'ionic /**/*.scss' ,
341- '!ionic /components/*/test/**/*' ,
342- '!ionic /util/test/*'
340+ 'src /**/*.scss' ,
341+ '!src /components/*/test/**/*' ,
342+ '!src /util/test/*'
343343 ] )
344344 . pipe ( scsslint ( ) )
345345 . pipe ( scsslint . failReporter ( ) ) ;
@@ -363,8 +363,8 @@ gulp.task('copy.libs', function() {
363363
364364 // for swiper-widget
365365 var libs = gulp . src ( [
366- 'ionic /**/*.js' ,
367- 'ionic /**/*.d.ts'
366+ 'src /**/*.js' ,
367+ 'src /**/*.d.ts'
368368 ] )
369369 . pipe ( gulp . dest ( 'dist' ) ) ;
370370
@@ -383,7 +383,7 @@ gulp.task('copy.libs', function() {
383383gulp . task ( 'watch.e2e' , [ 'e2e' ] , function ( ) {
384384 watchTask ( 'bundle.system' ) ;
385385
386- watch ( 'ionic /components/*/test/**/*' , function ( file ) {
386+ watch ( 'src /components/*/test/**/*' , function ( file ) {
387387 gulp . start ( 'e2e.build' ) ;
388388 } ) ;
389389} ) ;
@@ -419,8 +419,8 @@ gulp.task('e2e.build', function() {
419419
420420 // Get each test folder with gulp.src
421421 var tsResult = gulp . src ( [
422- 'ionic /components/*/test/*/**/*.ts' ,
423- '!ionic /components/*/test/*/**/*.spec.ts'
422+ 'src /components/*/test/*/**/*.ts' ,
423+ '!src /components/*/test/*/**/*.spec.ts'
424424 ] )
425425 . pipe ( cache ( 'e2e.ts' ) )
426426 . pipe ( tsc ( getTscOptions ( ) , undefined , tscReporter ) )
@@ -431,8 +431,8 @@ gulp.task('e2e.build', function() {
431431 . pipe ( gulpif ( / e 2 e .j s $ / , createPlatformTests ( ) ) )
432432
433433 var testFiles = gulp . src ( [
434- 'ionic /components/*/test/*/**/*' ,
435- '!ionic /components/*/test/*/**/*.ts'
434+ 'src /components/*/test/*/**/*' ,
435+ '!src /components/*/test/*/**/*.ts'
436436 ] )
437437 . pipe ( cache ( 'e2e.files' ) )
438438
@@ -461,7 +461,7 @@ gulp.task('e2e.build', function() {
461461 function createPlatformTests ( file ) {
462462 return through2 . obj ( function ( file , enc , next ) {
463463 var self = this ;
464- var relativePath = path . dirname ( file . path . replace ( / ^ .* ?i o n i c ( \/ | \\ ) c o m p o n e n t s ( \/ | \\ ) / , '' ) ) ;
464+ var relativePath = path . dirname ( file . path . replace ( / ^ .* ?s r c ( \/ | \\ ) c o m p o n e n t s ( \/ | \\ ) / , '' ) ) ;
465465 relativePath = relativePath . replace ( '/test/' , '/' ) ;
466466 var contents = file . contents . toString ( ) ;
467467 platforms . forEach ( function ( platform ) {
@@ -486,7 +486,7 @@ gulp.task('e2e.build', function() {
486486 * Builds Ionic unit tests to dist/tests.
487487 */
488488gulp . task ( 'tests' , function ( ) {
489- return gulp . src ( 'ionic /**/test/**/*.spec.ts' )
489+ return gulp . src ( 'src /**/test/**/*.spec.ts' )
490490 . pipe ( cache ( 'tests' ) )
491491 . pipe ( tsc ( getTscOptions ( ) , undefined , tscReporter ) )
492492 . pipe ( rename ( function ( file ) {
@@ -497,7 +497,7 @@ gulp.task('tests', function() {
497497} ) ;
498498
499499gulp . task ( 'watch.tests' , [ 'tests' ] , function ( ) {
500- watch ( 'ionic /**/test/**/*.spec.ts' , function ( ) {
500+ watch ( 'src /**/test/**/*.spec.ts' , function ( ) {
501501 gulp . start ( 'tests' ) ;
502502 } ) ;
503503} ) ;
@@ -983,8 +983,8 @@ gulp.task('validate', function(done) {
983983gulp . task ( 'tslint' , function ( ) {
984984 var tslint = require ( 'gulp-tslint' ) ;
985985 return gulp . src ( [
986- 'ionic /**/*.ts' ,
987- '!ionic /**/test/**/*' ,
986+ 'src /**/*.ts' ,
987+ '!src /**/test/**/*' ,
988988 ] ) . pipe ( tslint ( ) )
989989 . pipe ( tslint . report ( 'verbose' ) ) ;
990990} ) ;
0 commit comments