Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* First commit integrating refactored JS code from Bruno Sampaio to remove reliance on Google Closure and support WebPack integration * Resolving issues with failing tests * Moving location of npm install call to match updated router_test.html * Updating documentation with WebPack information * Updating capitalisation of webpack as requested. * Adjusting spacing for note block * Updates to gulpfile, package and documentation addressing comments from @stof * Setting correct permissions on js files imported from Bruon's work * Correcting permissions, capitalisation, and version number * Adding non-static method for route setting to simplify commonJS implementation * Run a build prior to the JS test suite. Updated documentation. * Switching Travis to use the same install and test commands as documented * Updated gulpfile in an attempt to support PHP 5.3 on Travis * Updated gulpfile removing another choke point for Travis on PHP 5.3 * Setting babel parameters in gulpfile to allow removal of .babelrc to prevent unexpected dependencies in projects
- Loading branch information
Showing
13 changed files
with
803 additions
and
281 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
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
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,22 @@ | ||
const gulp = require('gulp'); | ||
const babel = require('gulp-babel'); | ||
const rename = require('gulp-rename'); | ||
const uglify = require('gulp-uglify'); | ||
const wrap = require('gulp-wrap'); | ||
|
||
gulp.task('js', function() { | ||
return gulp.src('js/router.js') | ||
.pipe(babel({ | ||
presets: ["es2015"], | ||
plugins: ["transform-object-assign"] | ||
})) | ||
.pipe(wrap({ src: 'js/router.template.js' })) | ||
.pipe(gulp.dest('public/js')) | ||
.pipe(rename({ extname: '.min.js' })) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('public/js')); | ||
}); | ||
|
||
gulp.task('default', function() { | ||
return gulp.start(['js']); | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.