Skip to content

Instantly share code, notes, and snippets.

@mattd
Created November 15, 2012 18:36
Show Gist options
  • Save mattd/4080345 to your computer and use it in GitHub Desktop.
Save mattd/4080345 to your computer and use it in GitHub Desktop.
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
'<%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
handlebars: {
src: [
'app/scripts/lib/handlebars.runtime.js',
'app/scripts/templates.js'
],
dest: 'app/scripts/templates.js'
},
js: {
src: [
'app/scripts/lib/almond.js',
'dist/build/require.js'
],
dest: 'dist/release/scripts/lib/require.js'
},
css: {
src: ['dist/build/css/main.css'],
dest: 'dist/release/styles/css/main.css'
}
}
});
};/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
'<%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
handlebars: {
src: [
'app/scripts/lib/handlebars.runtime.js',
'app/scripts/templates.js'
],
dest: 'app/scripts/templates.js'
},
js: {
src: [
'app/scripts/lib/almond.js',
'dist/build/require.js'
],
dest: 'dist/release/scripts/lib/require.js'
},
css: {
src: ['dist/build/css/main.css'],
dest: 'dist/release/styles/css/main.css'
}
}
});
};/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Metadata.
pkg: grunt.file.readJSON('package.json'),
banner: '/*! <%= pkg.title || pkg.name %> - v<%= pkg.version %> - ' +
'<%= grunt.template.today("yyyy-mm-dd") %>\n' +
'<%= pkg.homepage ? "* " + pkg.homepage + "\\n" : "" %>' +
'* Copyright (c) <%= grunt.template.today("yyyy") %> ' +
'<%= pkg.author.name %>;' +
' Licensed <%= _.pluck(pkg.licenses, "type").join(", ") %> */\n',
// Task configuration.
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
handlebars: {
src: [
'app/scripts/lib/handlebars.runtime.js',
'app/scripts/templates.js'
],
dest: 'app/scripts/templates.js'
},
js: {
src: [
'app/scripts/lib/almond.js',
'dist/build/require.js'
],
dest: 'dist/release/scripts/lib/require.js'
},
css: {
src: ['dist/build/css/main.css'],
dest: 'dist/release/styles/css/main.css'
}
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment