0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-10 23:36:14 -05:00

Made Ghost work with bourbon, grunt init works again

This commit is contained in:
Gabor Javorszky 2013-05-25 15:11:30 +01:00
parent c7f07fd8ce
commit b39efd2680
3 changed files with 21 additions and 13 deletions

View file

@ -27,12 +27,17 @@
},
// Compile all the SASS!
compass: {
options: {
config: "config.rb"
},
// No need for config, but separated for future options
admin: {}
sass: {
admin: {
files: {
'core/admin/assets/css/screen.css': 'core/admin/assets/sass/screen.scss'
}
}
},
shell: {
bourbon: {
command: 'bourbon install --path core/admin/assets/sass/modules/'
}
}
};
@ -40,11 +45,13 @@
grunt.loadNpmTasks("grunt-jslint");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-contrib-compass");
grunt.loadNpmTasks("grunt-contrib-sass");
grunt.loadNpmTasks("grunt-shell");
// Prepare the project for development
// TODO: Git submodule init/update (https://github.com/jaubourg/grunt-update-submodules)?
grunt.registerTask("init", ["compass:admin"]);
grunt.registerTask("init", ["shell:bourbon", "sass:admin"]);
// Run API tests only
grunt.registerTask("test-api", ["nodeunit:api"]);

View file

@ -3,7 +3,7 @@
* common property values throughout our styles. Don't overdo it.
*
* Table of Contents:
*
*
* Compass Shit
* Compass Plugins
* Colors
@ -19,7 +19,7 @@
============================================================================= */
// Bourbon - http://bourbon.io/
@import "bourbon";
@import "bourbon/bourbon";
$rounded: 2px;
$shadow: rgba(0,0,0,0.05) 0 1px 5px;
$default-transition-duration: 0.3s;

View file

@ -22,10 +22,11 @@
"bcrypt": "~0.7.5"
},
"devDependencies": {
"grunt": "0.4.x",
"grunt": "~0.4.1",
"grunt-contrib-nodeunit": "0.1.x",
"grunt-contrib-compass": "0.2.x",
"nodeunit": "0.8.x",
"grunt-jslint": "0.2.x"
"grunt-jslint": "0.2.x",
"grunt-shell": "~0.2.2",
"grunt-contrib-sass": "~0.3.0"
}
}