Skip to content

Instantly share code, notes, and snippets.

@hideki-a
Last active December 9, 2015 23:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hideki-a/4343675 to your computer and use it in GitHub Desktop.
Save hideki-a/4343675 to your computer and use it in GitHub Desktop.
The grunt.js sample in the case of using grunt-styleguide.
module.exports = function(grunt) {
'use strict';
grunt.initConfig({
compass: {
dev: {
reference: {
'htdocs/common/css': 'htdocs/_scss'
},
options: {
config: 'config.rb',
environment: 'development'
}
},
dist: {
reference: '<config:compass.dev.reference>',
options: {
config: 'config.rb',
environment: 'production',
force: true
}
}
},
styleguide: {
dist: {
options: {
framework: {
name: 'styledocco'
},
name: 'Styleguide',
include: ['htdocs/common/css/*.css']
},
files: {
'docs/style': 'htdocs/_scss/modules.scss'
}
}
}
});
grunt.registerTask('clean', function(dir) {
require('child_process').exec('rm -rf ' + dir);
});
grunt.loadNpmTasks('grunt-compass-multidir');
grunt.loadNpmTasks('grunt-styleguide');
grunt.registerTask('makeguide', 'clean:docs/style compass:dev styleguide');
};
// # Heading 01
//
// Heading 01モジュールの解説を書く
//
// ```
// <h1 class="hdg-01">Heading 01</h1>
// ```
//
.hdg-01{
color: #f00;
font-size: 18px;
span{
font-size: 12px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment