Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
NowSquare
committed
Dec 11, 2016
0 parents
commit 51d68a8
Showing
473 changed files
with
58,721 additions
and
0 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,11 @@ | ||
.DS_Store | ||
Thumbs.db | ||
/node_modules | ||
/bower_components | ||
_notes | ||
.sass-cache | ||
npm-debug.log | ||
.idea | ||
/src/psd-wip/ | ||
/updates.txt | ||
/update.txt |
Large diffs are not rendered by default.
Oops, something went wrong.
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,16 @@ | ||
{ | ||
"name": "NowSquare Web Blocks", | ||
"version": "1.0.0", | ||
"dependencies": { | ||
"bootstrap": "v4.0.0-alpha.5", | ||
"font-awesome": "fontawesome#^4.7.0", | ||
"ekko-lightbox": "^4.0.2", | ||
"parsleyjs": "^2.4.4", | ||
"material-color": "^2.3.1", | ||
"owl.carousel": "^2.1.6", | ||
"typed.js": "^1.1.4", | ||
"particles.js": "^2.0.0", | ||
"flat-surface-shader": "*", | ||
"animatewithsass": "^3.2.2" | ||
} | ||
} |
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,152 @@ | ||
var gulp = require('gulp'), | ||
sass = require('gulp-ruby-sass'), | ||
autoprefixer = require('gulp-autoprefixer'), | ||
cssnano = require('gulp-cssnano'), | ||
jshint = require('gulp-jshint'), | ||
uglify = require('gulp-uglify'), | ||
imagemin = require('gulp-imagemin'), | ||
rename = require('gulp-rename'), | ||
concat = require('gulp-concat'), | ||
notify = require('gulp-notify'), | ||
cache = require('gulp-cache'), | ||
livereload = require('gulp-livereload'), | ||
del = require('del'); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Default task | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('default', ['clean'], function() { | ||
gulp.start('styles', 'scripts', 'copy', 'images'); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Watch | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('watch', function() { | ||
|
||
// Create LiveReload server | ||
livereload.listen(); | ||
|
||
// Watch .scss files | ||
gulp.watch('src/sass/**/*.scss', ['styles']); | ||
|
||
// Watch .js files | ||
gulp.watch('src/scripts/**/*.js', ['scripts']); | ||
|
||
// Watch image files | ||
gulp.watch('html/assets/images/**/*', ['images']); | ||
|
||
}); | ||
|
||
gulp.task('watch_styles', function() { | ||
|
||
// Create LiveReload server | ||
livereload.listen(); | ||
|
||
// Watch .scss files | ||
gulp.watch('src/sass/**/*.scss', ['styles']); | ||
|
||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Styles | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('styles', function() { | ||
return sass([ | ||
'src/sass/style.scss', | ||
'src/sass/bootstrap.scss', | ||
'src/sass/ekko-lightbox.scss', | ||
'src/sass/owl.carousel.theme.scss', | ||
'src/sass/fonts/font-awesome.scss', | ||
'bower_components/tether/src/css/tether.sass', | ||
'bower_components/owl.carousel/src/scss/owl.carousel.scss' | ||
], { | ||
style: 'expanded', | ||
loadPath: [ | ||
'src/sass', | ||
'bower_components/bootstrap/scss' | ||
] | ||
}) | ||
.pipe(autoprefixer({ | ||
browsers: ['last 2 version'], | ||
cascade: false | ||
})) | ||
.pipe(gulp.dest('html/assets/css')) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(cssnano()) | ||
.pipe(gulp.dest('html/assets/css')) | ||
.pipe(livereload()) | ||
.pipe(notify({ message: 'Styles task complete' })); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Scripts | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('scripts', function() { | ||
return gulp.src([ | ||
'bower_components/jquery/dist/jquery.js', | ||
'bower_components/tether/dist/js/tether.js', | ||
'bower_components/bootstrap/dist/js/bootstrap.js', | ||
'bower_components/owl.carousel/dist/owl.carousel.js', | ||
'bower_components/particles.js/particles.js', | ||
'bower_components/typed.js/js/typed.js', | ||
'bower_components/flat-surface-shader/deploy/fss.js', | ||
'src/scripts/**/*.js' | ||
]) | ||
// .pipe(jshint('.jshintrc')) | ||
// .pipe(jshint.reporter('default')) | ||
//.pipe(concat('scripts.js')) | ||
.pipe(gulp.dest('html/assets/js')) | ||
.pipe(rename({suffix: '.min'})) | ||
.pipe(uglify()) | ||
.pipe(gulp.dest('html/assets/js')) | ||
.pipe(livereload()) | ||
.pipe(notify({ message: 'Scripts task complete' })); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Images | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('images', function() { | ||
return gulp.src('html/assets/images/**/*') | ||
.pipe(imagemin({ optimizationLevel: 3, progressive: true, interlaced: true })) | ||
.pipe(gulp.dest('html/assets/images')) | ||
.pipe(livereload()) | ||
.pipe(notify({ message: 'Images task complete' })); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Copy | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('copy', function(){ | ||
gulp.src('bower_components/font-awesome/fonts/*.*') | ||
.pipe(gulp.dest('html/assets/fonts/font-awesome')); | ||
}); | ||
|
||
/* | ||
|-------------------------------------------------------------------------- | ||
| Cleanup | ||
|-------------------------------------------------------------------------- | ||
*/ | ||
|
||
gulp.task('clean', function() { | ||
return del(['html/assets/css', 'html/assets/js', 'html/assets/images']); | ||
}); |
Oops, something went wrong.