Skip to content

Smooth integration of angular2-material #884

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maxime1992 opened this issue May 22, 2016 · 2 comments
Closed

Smooth integration of angular2-material #884

maxime1992 opened this issue May 22, 2016 · 2 comments
Labels
effort1: easy (hours) P5 The team acknowledges the request but does not plan to address it, it remains open for discussion

Comments

@maxime1992
Copy link
Contributor

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 */

var Angular2App = require('angular-cli/lib/broccoli/angular2-app');

module.exports = function(defaults) {
  return new Angular2App(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. */
const map: any = {
  '@angular2-material': 'vendor/@angular2-material'
};


/** User packages configuration. */
const packages: 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 🔥 !

@filipesilva
Copy link
Contributor

Issue made obsolete by #1455.

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
effort1: easy (hours) P5 The team acknowledges the request but does not plan to address it, it remains open for discussion
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants