SASS build task
You will need to install gulp -sass, as you mentioned. Then you need to add the following task to the assembly file. Please note that the plumber is part of the task and has also changed. This will lead to the fact that the clock will restore your sask when you edit it, and not break the work with syntax errors.
// compiles sass to css with sourcemaps gulp.task('build-css', function() { return gulp.src(paths.style) .pipe(plumber()) .pipe(changed(paths.style, {extension: '.css'})) .pipe(sourcemaps.init()) .pipe(sass()) .pipe(sourcemaps.write()) .pipe(gulp.dest('./styles')); });
Build task
You also need to add this new sass build task to your overall build task so that it is included in the build pipeline.
gulp.task('build', function(callback) { return runSequence( 'clean', ['build-system', 'build-html', 'build-css'], callback ); });
Using CSS framework in code
As you mentioned, if jspm install materialize allows jspm to take care of all the hard lifting for you. After installation, jspm will change the configuration paths to indicate the desired location. Then, when you need to reference it in code, you can import it in the usual way. To install, you want to add materialization to your package.json dependencies.
"jspm": { "dependencies": { "materialize": "github:Dogfalo/ materialize@0.96.0 ",
Then jspm will configure the map for you so that you can use the standard module syntax.
import 'materialize/js/collapsible';
Materialize does not use module syntax, so for now, you need to (a) import each part that you need, as described above, and (b) manually import jQuery, since materialization does not declare a dependency.
For more information, see my full entry, including examples here: http://www.foursails.co/blog/building-sass/