urish / angular2-material-build

Material Design for Angular2
22 stars 2 forks source link

Build process and alpha 28 #4

Open evelant opened 9 years ago

evelant commented 9 years ago

This does not seem to work with alpha 28. What process did you use to build this? I didn't see any tasks in the angular gulpfile which would build a bundle of angular2_material like this.

urish commented 9 years ago

Hi, I spoke with the team about integrating this into their build process, but they said this is too early for them to have a published angular-material2, as they are still experimenting with it.

This is the gulp task I used in my build:

gulp.task('bundle.js.material', ['build.js.material'], function() {
  var devBundleConfig = {
    meta: {
      rx: { 
        build: false
      }
    },
    paths: {
        '*': 'dist/js/dev/es6/*.es6'
    }
  }

  return bundler.bundle(
      devBundleConfig,
      'angular2_material/material - angular2/angular2',
      './dist/build/angular2_material.dev.js',
      { sourceMaps: true });
});

I also manually inlined the templates, and added 'modules/*/*.scss' to the sass task source paths.

If you have some time and can create a PR for alpha28, I'd like to update the repo with a fresh build.