Permalink
Browse files

work on gruntification

  • Loading branch information...
1 parent 15a3188 commit 1b78f015c1b098580be8ad891d917f67df254fc0 @JoeGermuska JoeGermuska committed Apr 30, 2013
Showing 905 changed files with 206,781 additions and 0 deletions.
View
@@ -1 +1,2 @@
.DS_Store
+build
View
@@ -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']);
+};

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
Oops, something went wrong.

0 comments on commit 1b78f01

Please sign in to comment.