forked from bigspaceship/shine.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Benjamin Bojko
committed
Apr 2, 2014
0 parents
commit 394d99f
Showing
15 changed files
with
1,155 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
bower_components |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/* global module: false */ | ||
/* jshint camelcase: false */ | ||
|
||
'use strict'; | ||
|
||
module.exports = function(grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
// Metadata. | ||
pkg: grunt.file.readJSON('bower.json'), | ||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %> - ' + | ||
'<%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.copyright %>;' + | ||
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n', | ||
// Task configuration. | ||
concat: { | ||
options: { | ||
banner: '<%= banner %>', | ||
stripBanners: true | ||
}, | ||
dist: { | ||
src: ['lib/<%= pkg.name %>.*.js', 'lib/shine.js'], | ||
dest: 'dist/<%= pkg.name %>.js' | ||
} | ||
}, | ||
uglify: { | ||
options: { | ||
banner: '<%= banner %>', | ||
sourceMap: true, | ||
wrap: 'shinejs' | ||
}, | ||
dist: { | ||
src: '<%= concat.dist.dest %>', | ||
dest: 'dist/<%= pkg.name %>.min.js' | ||
} | ||
}, | ||
jshint: { | ||
options: { | ||
node: true, | ||
browser: true, | ||
esnext: true, | ||
bitwise: true, | ||
camelcase: true, | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
indent: 2, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
quotmark: 'single', | ||
undef: true, | ||
unused: true, | ||
strict: true, | ||
trailing: true, | ||
smarttabs: true | ||
}, | ||
gruntfile: { | ||
src: 'Gruntfile.js' | ||
}, | ||
lib_test: { | ||
src: ['lib/**/*.js', 'test/**/*.js'] | ||
} | ||
}, | ||
qunit: { | ||
files: ['test/**/*.html'] | ||
}, | ||
watch: { | ||
gruntfile: { | ||
files: '<%= jshint.gruntfile.src %>', | ||
tasks: ['jshint:gruntfile'] | ||
}, | ||
js: { | ||
files: ['<%= concat.dist.src %>'], | ||
tasks: ['jshint', 'concat', 'uglify'] | ||
}/*, | ||
lib_test: { | ||
files: '<%= jshint.lib_test.src %>', | ||
tasks: ['jshint:lib_test', 'qunit'] | ||
}*/ | ||
} | ||
}); | ||
|
||
// These plugins provide necessary tasks. | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-qunit'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
|
||
// Default task. | ||
grunt.registerTask('default', ['jshint', /*'qunit',*/ 'concat', 'uglify']); | ||
|
||
}; |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{ | ||
"name": "shine", | ||
"title": "shine.js", | ||
"version": "0.1.0", | ||
"authors": [ | ||
"Benjamin Bojko <benjaminbojko.com>" | ||
], | ||
"copyright": "Big Spaceship", | ||
"licenses": [ | ||
{ | ||
"type": "MIT" | ||
} | ||
], | ||
"description": "Cast realistic shadows from your HTML elements", | ||
"main": "dist/shine.min.js", | ||
"moduleType": [ | ||
"global" | ||
], | ||
"keywords": [ | ||
"lighting", | ||
"shadows", | ||
"text-shadow", | ||
"shadow", | ||
"light", | ||
"effect", | ||
"shading" | ||
], | ||
"homepage": "http://bigspaceship.github.io/shine.js", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
Oops, something went wrong.