Skip to content

Smooth integration of angular2-material #884

Description

@maxime1992

Hi,

I think it would be interesting to have a smooth integration between angular2 and angular2-material.
Angular2 is now called a platform and not a framework because of all this ecosystem around it and having all of that merged within angular-cli would be awesome.

It's just my opinion, but having something like that would be nice :
ng new my-project --material or ng new my-project --mobile --material

Behind the hood it would
npm install --save @angular2-material/core

And initialize those files (so devs just have to add the components they need) :

angular-cli-build.js

/* global require, module */varAngular2App=require('angular-cli/lib/broccoli/angular2-app');module.exports=function(defaults){returnnewAngular2App(defaults,{vendorNpmFiles: ['systemjs/dist/system-polyfills.js','systemjs/dist/system.src.js','zone.js/dist/**/*.+(js|js.map)','es6-shim/es6-shim.js','reflect-metadata/**/*.+(js|js.map)','rxjs/**/*.+(js|js.map)','@angular/**/*.+(js|js.map)','@angular2-material/**/*.+(js|js.map)']});};

system-config.ts

/*********************************************************************************************** * User Configuration. **********************************************************************************************//** Map relative paths to URLs. */constmap: any={'@angular2-material': 'vendor/@angular2-material'};/** User packages configuration. */constpackages: any={'@angular2-material/core': {format: 'cjs',defaultExtension: 'js',main: 'core.js'}};/////////////////////////////////////////////////////////////////////////////////////////////////*********************************************************************************************** * Everything underneath this line is managed by the CLI. **********************************************************************************************/
....

This way it would be much easier to start a project with material-design and we wouldn't have to type as fast as Kara 🔥 !

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P5The team acknowledges the request but does not plan to address it, it remains open for discussioneffort1: easy (hours)

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions