-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
-Removed plugin folder, moved all code to src/
-added more eslint rules for es6 -upped version to 1.1.0 -added PowerQuery version of sped alert, but won't be useful until we move to 9.x
- Loading branch information
Showing
60 changed files
with
232 additions
and
764 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["transform-es2015-modules-amd"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,88 @@ | ||
var gulp = require("gulp"); | ||
var gulp = require('gulp'); | ||
var plugins = require('gulp-load-plugins')(); | ||
var config = require('./config.json'); | ||
|
||
require("../tasks")(gulp); | ||
var minimist = require('minimist'); | ||
var del = require('del'); | ||
var lazypipe = require('lazypipe'); | ||
var runSequence = require('run-sequence'); | ||
|
||
var knownOptions = { | ||
string: ['env'], | ||
default: { | ||
env: process.env.NODE_ENV || 'pstest2', | ||
'use-babel': true, | ||
} | ||
}; | ||
|
||
var options = minimist(process.argv.slice(2), knownOptions); | ||
|
||
gulp.task('deploy', function() { | ||
return gulp.src([ | ||
'dist/web_root/scripts/**', | ||
'dist/web_root/images/**' | ||
], { | ||
base: 'dist/web_root' | ||
}) | ||
.pipe(plugins.debug()) | ||
.pipe(deploy()); | ||
}); | ||
|
||
gulp.task('build-then-deploy', function(callback) { | ||
return runSequence('build', 'deploy', callback); | ||
}); | ||
|
||
gulp.task('build', ['build-static', 'babel']); | ||
|
||
gulp.task('build-static', function() { | ||
return gulp.src([ | ||
'src/**', | ||
'!src/**/*.js', | ||
'!./src/web_root/scripts/**/*', | ||
'!./src/web_root/scripts' | ||
]) | ||
.pipe(plugins.debug()) | ||
.pipe(gulp.dest('dist')); | ||
}); | ||
|
||
gulp.task('package', function() { | ||
return gulp.src('dist/**') | ||
.pipe(plugins.debug()) | ||
.pipe(plugins.zip('plugin.zip')) | ||
.pipe(gulp.dest('./')); | ||
}); | ||
|
||
gulp.task('babel', function() { | ||
return gulp.src([ | ||
'./src/**/*.js' | ||
], { | ||
base: './src/web_root' | ||
}) | ||
.pipe(preprocess()) | ||
.pipe(plugins.debug()) | ||
.pipe(plugins.if(options['use-babel'], plugins.babel())) | ||
.pipe(gulp.dest('dist/web_root')); | ||
}); | ||
|
||
var deploy = lazypipe() | ||
.pipe(function() { | ||
var env = options.env; | ||
return plugins.if(config.hasOwnProperty(env), plugins.sftp(config[env].deploy_credentials)) | ||
}); | ||
|
||
var preprocess = lazypipe() | ||
.pipe(function() { | ||
var env = options.env; | ||
return plugins.if(config.hasOwnProperty(env), plugins.preprocess({ | ||
context: { | ||
SAMS_URL: config[env].sams_url, | ||
API_URL: config[env].api_url | ||
} | ||
})); | ||
}); | ||
|
||
gulp.task('lint', function() { | ||
return gulp.src('src/**/*.js') | ||
.pipe(plugins.eslint()) | ||
.pipe(plugins.eslint.format()); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/asmtdescr.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/attendancedates.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/editlogentry.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/editstudtest.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/edittransportation.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
15 changes: 0 additions & 15 deletions
15
plugin/web_root/admin/students/more2.iepalert.leftnav.footer.txt
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/web_root/admin/students/newtransaction.iepalert.content.footer.txt
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.