@@ -8,21 +8,21 @@ var sourcemaps = require('gulp-sourcemaps');
88
99require ( "babel/polyfill" ) ;
1010
11- var path = './priv /javascript' ;
11+ var path = './src /javascript' ;
1212var stdLibPath = path + '/lib/**/*.js' ;
1313var testPath = path + '/test_build/tests/**/*.spec.js' ;
1414var libPath = path + '/lib' ;
1515
1616gulp . task ( 'test_build' , function ( ) {
17- return gulp . src ( [ './priv/javascript /lib/**/*.js'] )
17+ return gulp . src ( [ path + ' /lib/**/*.js'] )
1818 . pipe ( babel ( { sourceMap : false , modules :'common' } ) )
19- . pipe ( gulp . dest ( './priv/javascript /test_build/lib') ) ;
19+ . pipe ( gulp . dest ( path + ' /test_build/lib') ) ;
2020} ) ;
2121
2222gulp . task ( 'test_build_tests' , function ( ) {
23- return gulp . src ( [ './priv/javascript /tests/**/*.spec.js'] )
23+ return gulp . src ( [ path + ' /tests/**/*.spec.js'] )
2424 . pipe ( babel ( { sourceMap : false , modules :'common' } ) )
25- . pipe ( gulp . dest ( './priv/javascript /test_build/tests') ) ;
25+ . pipe ( gulp . dest ( path + ' /test_build/tests') ) ;
2626} ) ;
2727
2828gulp . task ( 'test' , [ 'test_build' , 'test_build_tests' ] , function ( ) {
@@ -31,23 +31,23 @@ gulp.task('test', ['test_build', 'test_build_tests'], function () {
3131} ) ;
3232
3333gulp . task ( 'lint' , function ( ) {
34- return gulp . src ( [ stdLibPath , testPath , '!./priv/javascript /build/**/*.js' ] )
34+ return gulp . src ( [ stdLibPath , testPath , '!' + path + ' /build/**/*.js'] )
3535 . pipe ( eslint ( ) )
3636 . pipe ( eslint . format ( ) )
3737 . pipe ( eslint . failOnError ( ) ) ;
3838} ) ;
3939
4040gulp . task ( 'dist_build' , function ( ) {
41- return gulp . src ( [ './priv/javascript/ **/*.js', '!./priv/javascript/ build/**/*.js' , '!./priv/javascript/ dist/**/*.js' , '!./priv/javascript/ dist_build/**/*.js' , '!./priv/javascript /tests/**/*.js' ] )
41+ return gulp . src ( [ path + '/ **/*.js', '!' + path + '/ build/**/*.js', '!' + path + '/ dist/**/*.js', '!' + path + '/ dist_build/**/*.js', '!' + path + ' /tests/**/*.js'] )
4242 . pipe ( babel ( { whitelist : [ 'flow' ] , optional : [ "minification.deadCodeElimination" ] } ) )
43- . pipe ( gulp . dest ( './priv/javascript /dist_build') ) ;
43+ . pipe ( gulp . dest ( path + ' /dist_build') ) ;
4444} ) ;
4545
4646gulp . task ( 'dist_add_source_map' , function ( ) {
47- return gulp . src ( [ './priv/javascript/dist/ elixir.js' ] )
47+ return gulp . src ( [ './priv/elixir.js' ] )
4848 . pipe ( sourcemaps . init ( ) )
4949 . pipe ( sourcemaps . write ( ) )
50- . pipe ( gulp . dest ( './priv/javascript/dist ' ) ) ;
50+ . pipe ( gulp . dest ( './priv' ) ) ;
5151} ) ;
5252
5353
0 commit comments