Skip to content

Commit

Permalink
Merge pull request #94 from soltycabbage/sass-compass
Browse files Browse the repository at this point in the history
sass/compassの導入
  • Loading branch information
karihei committed Mar 22, 2014
2 parents 205d960 + a0e9750 commit b09118f
Show file tree
Hide file tree
Showing 6 changed files with 457 additions and 140 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.idea
dump.rdb
.DS_Store
.sass-cache
16 changes: 15 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-compass');

grunt.initConfig({
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

watch: {
sass: {
files: 'public/scss/*.scss',
tasks: ['compass']
},

scripts: {
files: ['app/**/*.js', 'public/**/*.js'],
tasks: ['jshint']
Expand All @@ -19,6 +25,14 @@ module.exports = function(grunt) {
jshint: {
all: ['<%= watch.scripts.files %>'],
options: grunt.file.readJSON('.jshintrc')
},

compass: {
dist: {
options: {
config: 'config.rb'
}
}
}
});

Expand Down
24 changes: 24 additions & 0 deletions config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "public/css"
sass_dir = "public/scss"
images_dir = "public/res/img"
javascripts_dir = "javascripts"

# You can select your preferred output style here (can be overridden via the command line):
# output_style = :expanded or :nested or :compact or :compressed

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
# line_comments = false


# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass public/scss scss && rm -rf sass && mv scss sass
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-watch": "~0.5.3",
"grunt-contrib-jshint": "~0.7.2"
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-compass": "*"
}
}
Loading

0 comments on commit b09118f

Please sign in to comment.