Skip to content

Commit

Permalink
work on gruntification
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeGermuska committed Apr 30, 2013
1 parent 15a3188 commit 1b78f01
Show file tree
Hide file tree
Showing 905 changed files with 206,781 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1 +1,2 @@
.DS_Store
build
88 changes: 88 additions & 0 deletions Gruntfile.js
@@ -0,0 +1,88 @@
'use strict';

module.exports = function(grunt) {

// configurable paths
var soundciteConfig = {
source: 'soundcite',
build: 'build'
};

// Project configuration.
grunt.initConfig({
// Configs
pkg: grunt.file.readJSON('package.json'),
soundcite: soundciteConfig,

// Banner for the top of CSS and JS files
banner: '/* <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %>\n' +
' * <%= pkg.homepage %>\n' +
' * Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author %>;\n' +
' */\n',

// Uglify
uglify: {
uncompressed: {
options: {
beautify: true,
mangle: false,
preserveComments: true
},
files: {
'<%= soundcite.build %>/js/soundcite.js': '<%= soundcite.source %>/js/*'
}
},
compressed: {
files: {
'<%= soundcite.build %>/js/soundcite.min.js': '<%= soundcite.source %>/js/*'
}
}
},

// Copy
copy: {
dist: {
files: [
{
expand: true,
dot: true,
cwd: '<%= soundcite.source %>',
dest: '<%= soundcite.build %>',
src: [
'*.html',
'css/**',
'{img,font}/**'
]
}
]
}
},

// Clean
clean: {
dist: '<%= soundcite.build %>'
},

// Concat
concat: {
options: {
stripBanners: true,
banner: '<%= banner %>'
},
banner: {
files: {
'<%= soundcite.build %>/js/soundcite.js': ['<%= soundcite.build %>/js/soundcite.js'],
'<%= soundcite.build %>/js/soundcite.min.js': ['<%= soundcite.build %>/js/soundcite.min.js'],
'<%= soundcite.build %>/css/player.css': ['<%= soundcite.build %>/css/player.css']
}
}
}
});

// Load all Grunt task
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-contrib-clean');

// Define complex tasks
grunt.registerTask('build', ['clean', 'copy', 'uglify', 'concat']);
};
14 changes: 14 additions & 0 deletions node_modules/grunt-contrib-clean/.jshintrc

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

3 changes: 3 additions & 0 deletions node_modules/grunt-contrib-clean/.npmignore

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

5 changes: 5 additions & 0 deletions node_modules/grunt-contrib-clean/.travis.yml

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

6 changes: 6 additions & 0 deletions node_modules/grunt-contrib-clean/AUTHORS

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

28 changes: 28 additions & 0 deletions node_modules/grunt-contrib-clean/CHANGELOG

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

1 change: 1 addition & 0 deletions node_modules/grunt-contrib-clean/CONTRIBUTING.md

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

60 changes: 60 additions & 0 deletions node_modules/grunt-contrib-clean/Gruntfile.js

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

22 changes: 22 additions & 0 deletions node_modules/grunt-contrib-clean/LICENSE-MIT

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

82 changes: 82 additions & 0 deletions node_modules/grunt-contrib-clean/README.md

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

28 changes: 28 additions & 0 deletions node_modules/grunt-contrib-clean/docs/clean-examples.md

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

7 changes: 7 additions & 0 deletions node_modules/grunt-contrib-clean/docs/clean-options.md

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

3 changes: 3 additions & 0 deletions node_modules/grunt-contrib-clean/docs/clean-overview.md

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

1 change: 1 addition & 0 deletions node_modules/grunt-contrib-clean/docs/overview.md

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

0 comments on commit 1b78f01

Please sign in to comment.