-
Notifications
You must be signed in to change notification settings - Fork 479
Compatibility with Angular2 CLI #50
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
Comments
It is a native typescript library and as such does not need to be added to definitely typed. |
got it - so |
I don't think you should need to do anything. typescript will pick up the typings from the node_modules/angular2-jwt folder. You should only need typings for projects that don't distribute their typings in their npm module. Could be wrong though. |
I added the following line in var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
module.exports = function(defaults) {
return new Angular2App(defaults, {
vendorNpmFiles: [
// existing code
// .....
'angular2-jwt/**/*.+(js|js.map)' // <---------------------------
]
});
}; Would this solve your issue? The |
You'll need to add the following to get In var Angular2App = require('angular-cli/lib/broccoli/angular2-app');
module.exports = function(defaults) {
return new Angular2App(defaults, {
vendorNpmFiles: [
// existing code
// .....
'angular2-jwt/**/*.+(js|js.map)' // <---------------------------
]
});
}; In /** Map relative paths to URLs. */
const map: any = {
'angular2-jwt': 'vendor/angular2-jwt' // <---------------------------
};
/** User packages configuration. */
const packages: any = {
'angular2-jwt': { // <---------------------------
main: 'angular2-jwt.js' // <---------------------------
},
}; Above seems to be working for me. |
Can angular2-jwt be added to the DefinitelyTyped repo, like angular-jwt had been?
Adding it to the DefinitelyTyped repo is currently the path for compatibility with the Angular2 CLI
See: angular/angular-cli#274
The text was updated successfully, but these errors were encountered: