-
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.
Merge pull request #5 from surprisehighway/update-1.0.6
Move source above public. ES2015ify Gulp setup.
- Loading branch information
Showing
33 changed files
with
541 additions
and
337 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "<%= appName %>", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"homepage": "http://www.surprisehighway.com", | ||
"authors": [ | ||
"Rob Knecht <[email protected]>", | ||
|
@@ -24,10 +24,7 @@ | |
<% } %> | ||
<% if (framework == "incBootstrap"){ %>"bootstrap-sass": "~3.3.6",<% } %> | ||
<% if (framework == "incFoundation"){ %>"foundation-sites": "~6.1.2",<% } %> | ||
"html5shiv": "~3.7.0", | ||
"jquery": "~2.0.3", | ||
"modernizr": "~2.8.3", | ||
"jquery-placeholder": "~2.1.2" | ||
"jquery": "~3.2.1" | ||
}, | ||
"devDependencies": { | ||
<% if (framework != "incBootstrap"){ %>"normalize-scss": "~3.0.3"<% } %> | ||
|
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,74 @@ | ||
/* | ||
Generated on <%= date %> using <%= genName %> <%= genVersion %> | ||
*/ | ||
|
||
// Enter the proxy url running your local php server | ||
const local_proxy = '<%= appName %>.dev'; | ||
|
||
import { HTTP_PATH, SCSS_DIR, JS_DIR } from './gulp-tasks/paths'; | ||
|
||
import gulp from 'gulp'; | ||
import browserSync from 'browser-sync'; | ||
import styles from './gulp-tasks/styles'; | ||
import scripts from './gulp-tasks/scripts'; | ||
import { clean, cleanScripts, cleanStyles, cleanApp } from './gulp-tasks/clean'; | ||
import { distStyles, distScripts, distApp } from './gulp-tasks/dist'; | ||
import { wireMockups, wireStyleguide } from './gulp-tasks/bower'; | ||
|
||
|
||
browserSync.create(); | ||
|
||
// Process our sass | ||
gulp.task('styles', ['clean:styles'], styles); | ||
|
||
// Process our scripts | ||
gulp.task('scripts', ['clean:scripts'], scripts); | ||
|
||
|
||
// Delete everything in the dist directory | ||
gulp.task('clean', clean); | ||
|
||
// Delete all JS scripts in dist directory | ||
gulp.task('clean:scripts', cleanScripts); | ||
|
||
// Delete all CSS in dist directory | ||
gulp.task('clean:styles', cleanStyles); | ||
|
||
|
||
// Rev styles and scripts. | ||
gulp.task('dist:scripts', ['scripts'], distScripts); | ||
|
||
gulp.task('dist:styles', ['styles'], distStyles); | ||
|
||
gulp.task('dist', ['dist:scripts', 'dist:styles'], function() { return; }); | ||
|
||
|
||
// Wire bower components up to our mockup and styleguide templates. | ||
gulp.task('wire:mockups', wireMockups); | ||
|
||
<% if (addStyleGuide) { %> | ||
gulp.task('wire:styleguide', wireStyleguide); | ||
<% } %> | ||
|
||
// Watch for file changes. | ||
gulp.task('watch', function() { | ||
|
||
// Proxy Browser Sync through local url | ||
browserSync.init({ proxy: local_proxy, notify: false }); | ||
|
||
// Watch .scss files | ||
gulp.watch(SCSS_DIR + '/**/*.scss', ['dist:styles']); | ||
|
||
// Watch .js files | ||
gulp.watch(JS_DIR + '/**/*.js', ['dist:scripts']); | ||
|
||
// Watch mockups | ||
gulp.watch([HTTP_PATH+'/mockups/**/*.html', HTTP_PATH+'/mockups/**/*.php']).on('change', browserSync.reload); | ||
|
||
}); | ||
|
||
|
||
// Our default gulp tasks. | ||
gulp.task('default', ['dist', 'watch'], function(){}); |
Oops, something went wrong.