Skip to content

Instantly share code, notes, and snippets.

@simongcc
Created September 22, 2016 02:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simongcc/9c71f1da32aad12ed61e19f69aa992a4 to your computer and use it in GitHub Desktop.
Save simongcc/9c71f1da32aad12ed61e19f69aa992a4 to your computer and use it in GitHub Desktop.
@echo off
set file=config.rb
set project=%1
set lang=tc
echo( # Ensure UTF-8 css is correctly parsed by Ruby compiler >> %file%
echo(Encoding.default_external = "utf-8" >> %file%
echo( >> %file%
echo(# Require any additional compass plugins here. >> %file%
rem if use boostrap
rem echo require "bootstrap-sass" >> %file%
echo require "compass/import-once/activate" >> %file%
echo( >> %file%
echo # Set this to the root of your project when deployed: >> %file%
echo http_path = "/" >> %file%
echo css_dir = "%project%/%lang%/css" >> %file%
echo sass_dir = "_source" >> %file%
echo images_dir = "%project%/%lang%/img >> %file%"
echo javascripts_dir = "%project%/js" >> %file%
echo( >> %file%
echo #please mount //wosvr20/inetpub/ as z: to work ( //wosvr20/inetpub/_shared/scss/custom ) >> %file%
echo #z: is \\wosvr20\inetpub\, compass compiler does not support network path, need to mount it first >> %file%
echo add_import_path "z:/_shared/scss/custom" >> %file%
echo( >> %file%
echo # optional/depends on project >> %file%
echo # add_import_path "bower_components/foundation-sites/scss" >> %file%
echo # add_import_path "bower_components/motion-ui/src" >> %file%
rem set /p ".=" <nul >> %file%
rem show config file
rem type config.rb
@simongcc
Copy link
Author

Configuration reference

http://compass-style.org/help/documentation/configuration-reference/

example

 # Ensure UTF-8 css is correctly parsed by Ruby compiler especially if CSS contain non-latin file,
Encoding.default_external = "utf-8" 

# Require any additional compass plugins here. 
require "compass/import-once/activate" 

# Set this to the root of your project when deployed: 
http_path = "/" 
css_dir = "/tc/css" 
sass_dir = "_source" 
javascripts_dir = "/js" 

#please mount //wosvr20/inetpub/ as z: to work ( //wosvr20/inetpub/_shared/scss/custom ) 
#z: is \\wosvr20\inetpub\, compass compiler does not support network path, need to mount it first 
add_import_path "z:/_shared/scss/custom" 

# optional/depends on project 
# add_import_path "bower_components/foundation-sites/scss" 
# add_import_path "bower_components/motion-ui/src" 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment