-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #266 from Geotab/MYG-47663_Convert_API_Runner_to_R…
…eact_&_add_various_new_features Myg 47663 convert api runner to react & add various new features
- Loading branch information
Showing
39 changed files
with
20,303 additions
and
11,557 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
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,26 @@ | ||
const gulp = require("gulp"); | ||
const browserSync = require('browser-sync').create(); | ||
|
||
// Function to properly reload your browser | ||
function reload(done) { | ||
browserSync.reload(); | ||
done(); | ||
} | ||
// 'gulp serve' -- open up your website in your browser and watch for changes | ||
// in all your files and update them when needed | ||
gulp.task('serve', (done) => { | ||
browserSync.init({ | ||
// tunnel: true, | ||
// open: false, | ||
server: ['dist'] | ||
// server: ['.tmp', 'dist'] | ||
}); | ||
done(); | ||
|
||
// Watch various files for changes and do the needful | ||
gulp.watch(['src/**/*.md', 'src/**/*.html', 'src/**/*.yml', 'src/**/*.js', 'src/**/*.css', 'src/**/*.jsx'], gulp.series('webpack', 'build:site', reload)); | ||
gulp.watch(['src/**/*.xml', 'src/**/*.txt'], gulp.series('site', reload)); | ||
gulp.watch('src/assets/javascript/**/*.js', gulp.series('scripts', reload)); | ||
gulp.watch('src/assets/scss/**/*.scss', gulp.series('styles')); | ||
gulp.watch('src/assets/images/**/*', gulp.series('images', reload)); | ||
}); |
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,19 @@ | ||
const gulp = require("gulp"); | ||
const webpack = require('webpack') | ||
const webpackConfig = require('../../webpack.config') | ||
const argv = require('yargs').argv; | ||
|
||
function webpackTask(cb) { | ||
return new Promise((resolve, reject) => { | ||
webpack(webpackConfig, (err, stats) => { | ||
if (err) { | ||
return reject(err) | ||
} | ||
if (stats.hasErrors()) { | ||
return reject(new Error(stats.compilation.errors.join('\n'))) | ||
} | ||
resolve() | ||
}) | ||
}) | ||
} | ||
gulp.task("webpack", webpackTask); |
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
Oops, something went wrong.