Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Changes needed in order to implement Compass back to Yeoman's generator-webapp.
-sass: {
- files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'],
- tasks: ['sass:server', 'autoprefixer']
-}
+compass: {
+ files: ['<%= config.app %>/styles/{,*/}*.{scss,sass}'],
+ tasks: ['compass:server', 'autoprefixer']
+}
...
-sass: {
- dist: {
- files: [{
- expand: true,
- cwd: '<%= config.app %>/styles',
- src: ['*.scss'],
- dest: '.tmp/styles',
- ext: '.css'
- }]
- },
- server: {
- files: [{
- expand: true,
- cwd: '<%= config.app %>/styles',
- src: ['*.scss'],
- dest: '.tmp/styles',
- ext: '.css'
- }]
- }
-}
+compass: {
+ options: {
+ sassDir: '<%= config.app %>/styles',
+ cssDir: '.tmp/styles',
+ generatedImagesDir: '.tmp/images/generated',
+ imagesDir: '<%= config.app %>/images',
+ javascriptsDir: '<%= config.app %>/scripts',
+ fontsDir: '<%= config.app %>/styles/fonts',
+ importPath: './bower_components',
+ httpImagesPath: '/images',
+ httpGeneratedImagesPath: '/images/generated',
+ httpFontsPath: '/styles/fonts',
+ relativeAssets: false,
+ assetCacheBuster: false
+ },
+ dist: {
+ options: {
+ generatedImagesDir: '<%= config.dist %>/images/generated'
+ }
+ },
+ server: {
+ options: {
+ debugInfo: true
+ }
+ }
+}
...
concurrent: {
server: [
- 'sass:server',
+ 'compass:server',
'coffee:dist',
'copy:styles'
],
test: [
'coffee',
'copy:styles'
],
dist: [
'coffee',
- 'sass',
+ 'compass',
'copy:styles',
'imagemin',
'svgmin'
]
}
@fusionstrings

This comment has been minimized.

Copy link

commented May 2, 2014

one comma is missing at line #51

@silvenon

This comment has been minimized.

Copy link
Owner Author

commented Jun 29, 2014

@fusionstrings thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.