Skip to content

Commit

Permalink
Grunt replaced with Gulp (Love it)
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Jan 18, 2015
1 parent 2b42093 commit e18d166
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 76 deletions.
39 changes: 0 additions & 39 deletions Gruntfile.js

This file was deleted.

4 changes: 2 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"authors": [
"Bogdan Chadkin <[email protected]>"
],
"description": "skrollr plugin that makes presentation scrolling decks",
"main": "src/skrollr.decks.js",
"description": "Fullpage presentation decks with scrolling",
"main": "dist/skrollr.decks.js",
"keywords": [
"skrollr",
"decks",
Expand Down
11 changes: 7 additions & 4 deletions dist/skrollr.decks.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
/**
* skrollr-decks 0.2.0 (2014-12-05) - Makes fullpage presentation decks.
* Bogdan Chadkin - https://github.com/TrySound/skrollr-decks
* Free to use under terms of MIT license
/*!
* skrollr-decks 0.2.1
* Fullpage presentation decks with scrolling
* https://github.com/TrySound/skrollr-decks
*
* Released under the MIT license
* Copyright (c) 2015, Bogdan Chadkin <[email protected]>
*/

(function (module) {
Expand Down
14 changes: 8 additions & 6 deletions dist/skrollr.decks.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
var gulp = require('gulp'),
rename = require('gulp-rename'),
uglify = require('gulp-uglify'),
header = require('gulp-header'),
pkg = JSON.parse(require('fs').readFileSync('package.json')),
template = ['/*!',
' * <%= name %> <%= version %>',
' * <%= description %>',
' * <%= homepage %>',
' * ',
' * Released under the <%= license %> license',
' * Copyright (c) <%= new Date().getFullYear() %>, <%= author %>',
' */\n\n'].join('\n');


gulp.task('default', function () {
gulp.src('src/skrollr.decks.js')
.pipe(header(template, pkg))
.pipe(gulp.dest('dist'))
.pipe(rename({suffix: '.min'}))
.pipe(uglify({
preserveComments: 'some'
}))
.pipe(gulp.dest('dist'));
});
44 changes: 19 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,37 +1,31 @@
{
"name": "skrollr-decks",
"version": "0.2.0",
"description": "Makes fullpage presentation decks.",
"homepage": "https://github.com/TrySound/skrollr-decks",
"author": {
"name": "Bogdan Chadkin",
"email": "[email protected]"
"version": "0.2.1",
"description": "Fullpage presentation decks with scrolling",
"main": "gulpfile.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/TrySound/skrollr-decks.git"
},
"bugs": {
"url": "https://github.com/TrySound/skrollr-decks/issues"
},
"license": {
"type": "MIT",
"url": "https://github.com/TrySound/skrollr-decks/blob/master/LICENSE.txt"
},

"engines": {
"node": ">= 0.10.0"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-concat": "~0.4.0",
"grunt-contrib-uglify": "~0.5.0"
"url": "https://github.com/TrySound/skrollr-decks"
},
"keywords": [
"skrollr",
"decks",
"presentation",
"vanillajs"
]
],
"author": "Bogdan Chadkin <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/TrySound/skrollr-decks/issues"
},
"homepage": "https://github.com/TrySound/skrollr-decks",
"devDependencies": {
"gulp": "^3.8.10",
"gulp-header": "^1.2.2",
"gulp-rename": "^1.2.0",
"gulp-uglify": "^1.0.2"
}
}

0 comments on commit e18d166

Please sign in to comment.