Last active
December 9, 2015 23:19
-
-
Save hideki-a/4343675 to your computer and use it in GitHub Desktop.
The grunt.js sample in the case of using grunt-styleguide.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// # 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