adding nick to gruntfile so that we can continue to use _pure_ as the name even if _purecss_ is the package name for NPM

This commit is contained in:
James Alley 2015-03-05 10:25:10 -08:00
parent 8a650c36f9
commit 21f8a27eaa

View File

@ -4,6 +4,7 @@ module.exports = function (grunt) {
grunt.initConfig({ grunt.initConfig({
nick : 'pure',
pkg : grunt.file.readJSON('package.json'), pkg : grunt.file.readJSON('package.json'),
bower: grunt.file.readJSON('bower.json'), bower: grunt.file.readJSON('bower.json'),
@ -82,7 +83,7 @@ grunt.initConfig({
// Rollups // Rollups
{'build/<%= pkg.name %>.css': [ {'build/<%= nick %>.css': [
'build/base.css', 'build/base.css',
'build/grids.css', 'build/grids.css',
'build/buttons.css', 'build/buttons.css',
@ -91,7 +92,7 @@ grunt.initConfig({
'build/tables.css' 'build/tables.css'
]}, ]},
{'build/<%= pkg.name %>-nr.css': [ {'build/<%= nick %>-nr.css': [
'build/base.css', 'build/base.css',
'build/grids.css', 'build/grids.css',
'build/buttons.css', 'build/buttons.css',
@ -137,13 +138,13 @@ grunt.initConfig({
compress: { compress: {
release: { release: {
options: { options: {
archive: 'release/<%= pkg.version %>/<%= pkg.name %>-<%= pkg.version %>.tar.gz' archive: 'release/<%= pkg.version %>/<%= nick %>-<%= pkg.version %>.tar.gz'
}, },
expand : true, expand : true,
flatten: true, flatten: true,
src : 'build/*', src : 'build/*',
dest : '<%= pkg.name %>/<%= pkg.version %>/' dest : '<%= nick %>/<%= pkg.version %>/'
} }
}, },
@ -162,7 +163,7 @@ grunt.initConfig({
expand: true, expand: true,
cwd : 'build/', cwd : 'build/',
src : ['base*.css', '<%= pkg.name %>*.css'] src : ['base*.css', '<%= nick %>*.css']
}, },
yahoo: { yahoo: {