Created
August 11, 2015 14:18
-
-
Save fleeting/c1e70c75d2c7dca9578a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{ | |
"directory": "./components/" | |
} |
This file contains hidden or 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
# editorconfig.org | |
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[*.bat] | |
end_of_line = crlf |
This file contains hidden or 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
{ | |
"name": "PROJECTNAME", | |
"version": "1.0.0", | |
"dependencies": { | |
"susy": "latest", | |
"monkee-mixins": "1.x", | |
"normalize.css": "latest", | |
"fastclick": "1.0.6" | |
} | |
} |
This file contains hidden or 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
var gulp = require('gulp'), | |
sass = require('gulp-ruby-sass'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
minifyCSS = require('gulp-minify-css'), | |
jshint = require('gulp-jshint'), | |
imagemin = require('gulp-imagemin'), | |
rename = require('gulp-rename'), | |
size = require('gulp-size'), | |
stripDebug = require('gulp-strip-debug'), | |
sourcemaps = require('gulp-sourcemaps'), | |
pkg = require('./package.json'); | |
var paths = { | |
styles: './css/sass/styles.scss', | |
scripts: ['./components/gsap/src/uncompressed/TweenMax.js', './js/main.js'] | |
}; | |
gulp.task('styles', ['components'], function() { | |
return sass(paths.styles, { sourcemap: false }) | |
.on('error', function (err) { | |
console.error('Error', err.message); | |
}) | |
.pipe(rename('app.css')) | |
.pipe(gulp.dest('./css/')) | |
.pipe(rename('app.min.css')) | |
.pipe(minifyCSS()) | |
.pipe(sourcemaps.write()) | |
.pipe(size()) | |
.pipe(gulp.dest('./css/')); | |
}); | |
gulp.task('components', function() { | |
return gulp.src(['./components/normalize.css/normalize.css']) | |
.pipe(rename('_normalize.scss')) | |
.pipe(gulp.dest('./components/normalize.css/')); | |
}); | |
gulp.task('scripts', ['lint'], function() { | |
gulp.src(paths.scripts) | |
.pipe(concat('app.js')) | |
.pipe(gulp.dest('./js/')) | |
.pipe(rename('app.min.js')) | |
//.pipe(stripDebug()) | |
.pipe(uglify({ preserveComments: 'some' })) | |
.pipe(size()) | |
.pipe(gulp.dest('./js/')); | |
}); | |
gulp.task('lint', function () { | |
return gulp.src(['./js/main.js']) | |
.pipe(jshint('./.jshintrc')) | |
.pipe(jshint.reporter('jshint-stylish')); | |
}); | |
// The default task (called when you run `gulp` from cli) | |
gulp.task('default', ['styles', 'scripts']); |
This file contains hidden or 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
{ | |
"name": "PROJECTNAME", | |
"version": "1.0.0", | |
"private": true, | |
"dependencies": {}, | |
"devDependencies": { | |
"gulp": "3.8.x", | |
"gulp-ruby-sass": "1.0.1", | |
"gulp-concat": "2.4.x", | |
"gulp-uglify": "1.0.x", | |
"gulp-minify-css": "0.3.x", | |
"gulp-jshint": "1.9.x", | |
"jshint-stylish": "1.x", | |
"gulp-rename": "1.2.x", | |
"gulp-size": "1.x", | |
"gulp-sourcemaps": "1.3.x", | |
"gulp-strip-debug": "1.0.x", | |
"mocha": "2.2.x", | |
"gulp-imagemin": "latest" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "ADD_REPO_URL" | |
}, | |
"keywords": [ | |
], | |
"author": "Monkee-Boy" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment