Skip to content

Commit

Permalink
Init
Browse files Browse the repository at this point in the history
  • Loading branch information
antonj committed Dec 7, 2013
0 parents commit f7b61ff
Show file tree
Hide file tree
Showing 13 changed files with 799 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
node_modules
55 changes: 55 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,55 @@
/*global require, module */
module.exports = function (grunt) {
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

jshint: {
ignore_warning: {
options: {
'-W015' : true,
'globalstrict' : true
},
src: ['src/**/*.js']
}
},

uglify: {
build: {
files: {
'dist/viewpager.min.js': ['dist/viewpager.js']
}
}
},

browserify: {
js: {
src: 'src/viewpager.js',
dest: 'dist/viewpager.js'
}
},

qunit: {
all: ['tests/**/*.html']
},

watch: {
js: {
files: ['src/**/*.js'],
tasks: ['browserify'],
options: {
livereload: true
}
},

lint: {
files: ['src/**/*.js'],
tasks: ['jshint']
}
}
});

grunt.registerTask('default', ['watch']);
grunt.registerTask('dist', ['browserify', 'uglify']);
};
23 changes: 23 additions & 0 deletions bower.json
@@ -0,0 +1,23 @@
{
"name": "viewpager",
"version": "0.0.1",
"authors": [
"Anton Johansson <hello@antonj.se>",
"Fredrik Jonsson <hello@fredrikj.se>"
],
"description": "Paging views like a boss",
"main": "dist/viewpager.js",
"keywords": [
"scroller",
"pager",
"slideshow"
],
"license": "MIT",
"homepage": "viewpager.com",
"private": true,
"ignore": [
"**/.*",
"examples",
"node_modules"
]
}

0 comments on commit f7b61ff

Please sign in to comment.