Skip to:
Content

BuddyPress.org

Changeset 9768


Ignore:
Timestamp:
04/18/2015 07:07:20 PM (11 years ago)
Author:
djpaul
Message:

Grunt: add tooling to convert SCSS to CSS files.

Fixes #6380

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Gruntfile.js

    r9697 r9768  
    6767
    6868                                        return false;
     69                                }
     70                        }
     71                },
     72                sass: {
     73                        admin: {
     74                                cwd: SOURCE_DIR,
     75                                extDot: 'last',
     76                                expand: true,
     77                                ext: '.css',
     78                                flatten: true,
     79                                src: ['bp-templates/bp-legacy/css/*.scss'],
     80                                dest: SOURCE_DIR + 'bp-templates/bp-legacy/css/',
     81                                options: {
     82                                        outputStyle: 'expanded'
    6983                                }
    7084                        }
     
    237251         * Register tasks.
    238252         */
    239         grunt.registerTask( 'src',     ['jsvalidate:src', 'jshint', 'scsslint', 'cssjanus'] );
     253        grunt.registerTask( 'src',     ['jsvalidate:src', 'jshint', 'scsslint', 'sass', 'cssjanus'] );
    240254        grunt.registerTask( 'commit',  ['src', 'checktextdomain', 'imagemin'] );
    241255        grunt.registerTask( 'build',   ['commit', 'clean:all', 'copy:files', 'uglify', 'jsvalidate:build', 'cssmin', 'makepot', 'exec:bpdefault'] );
Note: See TracChangeset for help on using the changeset viewer.