From f41a4b5426e11048171a8b3c460dcefb77c788c3 Mon Sep 17 00:00:00 2001 From: Julien Melissas Date: Sun, 7 Sep 2014 00:43:56 -0400 Subject: [PATCH] Initial Commit. --- .bowerrc | 3 + .editorconfig | 11 +++ .gitignore | 9 ++ .jshintrc | 16 ++++ apple-touch-icon-precomposed.png | Bin 0 -> 1210 bytes assets/img/.gitkeep | 0 assets/js/_main.js | 59 ++++++++++++ assets/js/plugins/.gitkeep | 0 assets/less/_bootstrap.less | 93 ++++++++++++++++++ assets/less/_global.less | 0 assets/less/_variables.less | 10 ++ assets/less/bootstrap-overrides/.gitkeep | 0 assets/less/components/_mixins.less | 65 +++++++++++++ assets/less/layouts/_footer.less | 0 assets/less/layouts/_general.less | 0 assets/less/layouts/_header.less | 0 assets/less/main.less | 14 +++ bower.json | 20 ++++ crossdomain.xml | 15 +++ favicon.ico | Bin 0 -> 4414 bytes gulpfile.js | 115 +++++++++++++++++++++++ humans.txt | 16 ++++ index.html | 40 ++++++++ package.json | 29 ++++++ robots.txt | 3 + templates/.gitkeep | 0 26 files changed, 518 insertions(+) create mode 100644 .bowerrc create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 .jshintrc create mode 100755 apple-touch-icon-precomposed.png create mode 100644 assets/img/.gitkeep create mode 100644 assets/js/_main.js create mode 100644 assets/js/plugins/.gitkeep create mode 100644 assets/less/_bootstrap.less create mode 100644 assets/less/_global.less create mode 100644 assets/less/_variables.less create mode 100644 assets/less/bootstrap-overrides/.gitkeep create mode 100644 assets/less/components/_mixins.less create mode 100644 assets/less/layouts/_footer.less create mode 100644 assets/less/layouts/_general.less create mode 100644 assets/less/layouts/_header.less create mode 100644 assets/less/main.less create mode 100644 bower.json create mode 100755 crossdomain.xml create mode 100755 favicon.ico create mode 100644 gulpfile.js create mode 100755 humans.txt create mode 100644 index.html create mode 100644 package.json create mode 100755 robots.txt create mode 100644 templates/.gitkeep diff --git a/.bowerrc b/.bowerrc new file mode 100644 index 0000000..cc48978 --- /dev/null +++ b/.bowerrc @@ -0,0 +1,3 @@ +{ + "directory": "assets/vendor" +} diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..cf8d7fa --- /dev/null +++ b/.editorconfig @@ -0,0 +1,11 @@ +# editorconfig.org + +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1a360a8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +# Include your project-specific ignores in this file +# Read about how to use .gitignore: https://help.github.com/articles/ignoring-files +node_modules +assets/vendor +assets/css/main.css.map +assets/css/*main*.css +assets/js/*scripts*.js +assets/js/vendor/modernizr.min.js +assets/rev-manifest.json diff --git a/.jshintrc b/.jshintrc new file mode 100644 index 0000000..136eae5 --- /dev/null +++ b/.jshintrc @@ -0,0 +1,16 @@ +{ + "bitwise": true, + "browser": true, + "curly": true, + "eqeqeq": true, + "eqnull": true, + "esnext": true, + "immed": true, + "jquery": true, + "latedef": true, + "newcap": true, + "noarg": true, + "node": true, + "strict": false, + "trailing": true +} diff --git a/apple-touch-icon-precomposed.png b/apple-touch-icon-precomposed.png new file mode 100755 index 0000000000000000000000000000000000000000..1d12f1c09a0dd4e762582aff3d373db8586cea04 GIT binary patch literal 1210 zcma)6QESsc9KRxzQ98l5>eHDaOjvW5H0_$WIJ%^B1v5%lv~Mm;Zfn?*i^}k3RY2g9yI(0laigH)bmfBzO0_-|zST|L^|fO?&;pY~fY`05IEH zGdp}dO5d40|CT<&+kCjmnmx8bx7oms2xz!;i@=s|?~o3$-Gir}$r1q9=Dlu@^{j`Q zLw(UsIb!06Tn)g|auV9kE@5zs?0A7L{C;;LK+n~M$5jhkp+WlI+F?XC4%fTR;jW{) z!t#B%lxW<*C(MS4zZb+>q6MJuATv$F@N{IwpQ#D6vB%i8w7O zBU;w~slGpE$E-un^POlMcMn2>IwYq1k;5-;doB$XYDPqCMx!pJd)X*6EK6$zF|z}Qv`k&#KBDKjTCHAH>y>&%Zq^J*YATJUv1%Bmq8fFh z)-Y" + ], + "private": true, + "ignore": [ + "**/.*", + "node_modules", + "assets/vendor" + ], + "dependencies": { + "modernizr": "2.8.2", + "jquery": "1.11.1", + "bootstrap": "3.2.0", + "respond": "1.4.2" + } +} diff --git a/crossdomain.xml b/crossdomain.xml new file mode 100755 index 0000000..29a035d --- /dev/null +++ b/crossdomain.xml @@ -0,0 +1,15 @@ + + + + + + + + + + + diff --git a/favicon.ico b/favicon.ico new file mode 100755 index 0000000000000000000000000000000000000000..69565ad375cee2682e3d6baf724127acc207ff69 GIT binary patch literal 4414 zcmeIup$z~a3`Eh7MiCM;vSYCSRJ4LA_}5&;$pgDm;e9( literal 0 HcmV?d00001 diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..e5f5700 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,115 @@ +var gulp = require('gulp'), + less = require('gulp-less'), + autoprefix = require('gulp-autoprefixer'), + sourcemaps = require('gulp-sourcemaps'), + rename = require('gulp-rename'), + concat = require('gulp-concat'), + minifyCSS = require('gulp-minify-css'), + jshint = require('gulp-jshint'), + uglify = require('gulp-uglify'), + livereload = require('gulp-livereload'), + stylish = require('jshint-stylish'), + rev = require('gulp-rev'), + modernizr = require('gulp-modernizr'); + +var paths = { + scripts: [ + 'assets/vendor/bootstrap/js/transition.js', + 'assets/vendor/bootstrap/js/alert.js', + 'assets/vendor/bootstrap/js/button.js', + 'assets/vendor/bootstrap/js/carousel.js', + 'assets/vendor/bootstrap/js/collapse.js', + 'assets/vendor/bootstrap/js/dropdown.js', + 'assets/vendor/bootstrap/js/modal.js', + 'assets/vendor/bootstrap/js/tooltip.js', + 'assets/vendor/bootstrap/js/popover.js', + 'assets/vendor/bootstrap/js/scrollspy.js', + 'assets/vendor/bootstrap/js/tab.js', + 'assets/vendor/bootstrap/js/affix.js', + 'assets/js/plugins/*.js', + 'assets/js/_*.js' + ], + jshint: [ + 'gulpfile.js', + 'assets/js/*.js', + '!assets/js/scripts.js', + '!assets/js/scripts.min.js', + '!assets/**/*.min-*' + ], + less: 'assets/less/main.less' +}; + +var destination = { + css: 'assets/css', + scripts: 'assets/js', + modernizr: 'assets/vendor/modernizr', + vendor: 'assets/js/vendor' +}; + +gulp.task('less', function() { + return gulp.src(paths.less) + .pipe(sourcemaps.init()) + .pipe(less()).on('error', function(err) { + console.warn(err.message); + }) + .pipe(autoprefix('last 2 versions', 'ie 8', 'ie 9', 'android 2.3', 'android 4', 'opera 12')) + .pipe(rename('./main.css')) + .pipe(sourcemaps.write()) + .pipe(gulp.dest(destination.css)) + .pipe(minifyCSS()) + .pipe(rename('./main.min.css')) + .pipe(gulp.dest(destination.css)) + .pipe(livereload({ auto: true })); +}); + +gulp.task('jshint', function() { + return gulp.src(paths.jshint) + .pipe(jshint()) + .pipe(jshint.reporter(stylish)); +}); + +gulp.task('js', ['jshint'], function() { + return gulp.src(paths.scripts) + .pipe(concat('./scripts.js')) + .pipe(gulp.dest(destination.scripts)) + .pipe(uglify()) + .pipe(rename('./scripts.min.js')) + .pipe(gulp.dest(destination.scripts)) + .pipe(livereload({ auto: true })); +}); + +gulp.task('modernizr', function() { + return gulp.src( + ['assets/js/scripts.min.js'], + ['assets/css/main.min.css'] + ) + .pipe(modernizr()) + .pipe(gulp.dest(destination.modernizr)) + .pipe(uglify()) + .pipe(rename('./modernizr.min.js')) + .pipe(gulp.dest(destination.vendor)); +}); + +// gulp.task('version', function() { +// return gulp.src(['assets/css/main.min.css', 'assets/js/scripts.min.js'], { base: 'assets' }) +// .pipe(rev()) +// .pipe(gulp.dest('assets')) +// .pipe(rev.manifest()) +// .pipe(gulp.dest('assets')); +// }); + +gulp.task('watch', function() { + livereload.listen(); + gulp.watch('assets/less/**/*.less', ['less']); + gulp.watch('assets/js/**/*.js', ['jshint', 'js']); + gulp.watch('**/*.php').on('change', function(file) { + livereload.changed(file.path); + }); + gulp.watch('**/*.html').on('change', function(file) { + livereload.changed(file.path); + }); +}); + +gulp.task('default', ['less', 'jshint', 'js', 'modernizr', 'watch']); +gulp.task('dev', ['default']); +gulp.task('build', ['less', 'jshint', 'js', 'modernizr']); diff --git a/humans.txt b/humans.txt new file mode 100755 index 0000000..b2b8b2f --- /dev/null +++ b/humans.txt @@ -0,0 +1,16 @@ +# humanstxt.org/ +# The humans responsible & technology colophon + +# TEAM + + Julien Melissas -- Web Developer -- @JulienMelissas + +# THANKS + + HTML5BoilerPlate: http://html5boilerplate.com/ + Roots: http://roots.io/ + +# TECHNOLOGY COLOPHON + + HTML5, CSS3 + jQuery, Bootstrap, Modernizr, Bower diff --git a/index.html b/index.html new file mode 100644 index 0000000..4bddfd5 --- /dev/null +++ b/index.html @@ -0,0 +1,40 @@ + + + + + + + + + Front End Framework Starter + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..5192351 --- /dev/null +++ b/package.json @@ -0,0 +1,29 @@ +{ + "name": "gc2", + "version": "1.0.0", + "author": "Craftpeak ", + "homepage": "http://craftpeak.com", + "scripts": { + "postinstall": "node node_modules/bower/bin/bower install && gulp dev" + }, + "engines": { + "node": ">= 0.10.0" + }, + "devDependencies": { + "bower": ">=1.3.9", + "gulp": "^3.8.7", + "gulp-autoprefixer": "0.0.8", + "gulp-concat": "^2.3.4", + "gulp-grunt": "^0.5.2", + "gulp-jshint": "^1.8.4", + "jshint-stylish": "^0.4.0", + "gulp-less": "^1.3.3", + "gulp-livereload": "^2.1.0", + "gulp-minify-css": "^0.3.7", + "gulp-modernizr": "https://github.com/doctyper/gulp-modernizr/tarball/develop", + "gulp-rename": "^1.2.0", + "gulp-sourcemaps": "^1.1.1", + "gulp-uglify": "^0.3.1", + "gulp-rev": "^1.1.0" + } +} diff --git a/robots.txt b/robots.txt new file mode 100755 index 0000000..ee2cc21 --- /dev/null +++ b/robots.txt @@ -0,0 +1,3 @@ +# robotstxt.org/ + +User-agent: * diff --git a/templates/.gitkeep b/templates/.gitkeep new file mode 100644 index 0000000..e69de29