forked from Chaospott/site
added external skrollr and first structure in index.html
This commit is contained in:
51
external/skrollr/Gruntfile.js
vendored
Normal file
51
external/skrollr/Gruntfile.js
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
module.exports = function(grunt) {
|
||||
//Configuration.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json') ,
|
||||
jshint: {
|
||||
options: {
|
||||
smarttabs: false,
|
||||
curly: true,
|
||||
immed: true,
|
||||
latedef: true,
|
||||
noarg: true,
|
||||
quotmark: 'single',
|
||||
undef: true,
|
||||
unused: true,
|
||||
strict: true,
|
||||
trailing: true,
|
||||
globals: {
|
||||
window: true,
|
||||
document: true,
|
||||
navigator: true,
|
||||
define: true,
|
||||
module: true
|
||||
}
|
||||
},
|
||||
all: ['src/**/*.js']
|
||||
},
|
||||
qunit: {
|
||||
all: ['test/index.html', 'test/loading.html']
|
||||
},
|
||||
uglify: {
|
||||
options: {
|
||||
banner: '/*! skrollr <%= pkg.version %> (<%= grunt.template.today("yyyy-mm-dd") %>) | Alexander Prinzhorn - https://github.com/Prinzhorn/skrollr | Free to use under terms of MIT license */\n'
|
||||
},
|
||||
|
||||
all: {
|
||||
files: {
|
||||
'dist/skrollr.min.js': 'src/skrollr.js'
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
//Dependencies.
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.loadNpmTasks('grunt-contrib-qunit');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
||||
//Tasks.
|
||||
grunt.registerTask('default', ['jshint', 'qunit', 'uglify']);
|
||||
grunt.registerTask('travis', ['jshint', 'qunit']);
|
||||
};
|
||||
Reference in New Issue
Block a user