bmvantunes / angular-cli-library-generator Goto Github PK
View Code? Open in Web Editor NEW[DEPRECATED] - Generate new components and documentation for your Angular (2+) library using @angular/cli
License: MIT License
[DEPRECATED] - Generate new components and documentation for your Angular (2+) library using @angular/cli
License: MIT License
Related with @angular/cli issue:
angular/angular-cli#7852
to have as template just
make sure we check the prefix in .angular-cli.json to use the correct one.
<original-component></original-component>
check if the CLI has an option to override existing component
routes = [
{ path: '', component: originalOne }
];
Add the badge inside README.md
🚨 You need to enable Continuous Integration on all branches of this repository. 🚨
To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.
Since we did not receive a CI status on the greenkeeper/initial
branch, we assume that you still need to configure it.
If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/
.
We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.
Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial
branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organiszation’s settings page, under Installed GitHub Apps.
Branch | Build failing 🚨 |
---|---|
Dependency | yargs |
Current Version | 10.1.0 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
yargs is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.
The new version differs by 4 commits.
232f9ca
chore(release): 10.1.1
e87f487
docs: fix middlware docs (#1037)
331d103
fix: Add dirname
sanity check on findUp
(#1036)
0942a15
chore: use chai 4.x (#1033)
See the full diff
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Use yargs to use a command like:
nglg component my-component
(the command can be changed during implementation)
The result of that command should be (inside src/app/components):
my-component
with files inside that folderFiles:
my-component.component.ts
- ChangeDetectionStrategy.OnPushmy-component.component.scss
my-component.component.html
my-component.component.spec.ts
my-component.module.ts
that declares and exports the componentindex.ts
with exports MyComponentComponent and exports MyComponentModuleThen look at ticket #6 to understand the rest of the command.
Branch | Build failing 🚨 |
---|---|
Dependency | @types/node |
Current Version | 8.5.3 |
Type | devDependency |
This version is covered by your current version range and after updating it in your project the build failed.
@types/node is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.
There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.
Your Greenkeeper Bot 🌴
Enable/Setup code-coverage and add the badge inside README.md
it is pointing to the demo index.ts file
make sure we check the style in .angular-cli.json to use the correct one css/scss/less extension.
Make the css not use any feature of this libraries to work everywhere!
Look at ticket #5 to have more background.
Create the following files inside that folder:
my-component-demo.component.ts
- ChangeDetectionStrategy.OnPushmy-component-demo.component.scss
my-component-demo.component.html
with content <my-component></my-component>
my-component-demo.component.spec.ts
my-component-demo-routing.module.ts
imports ../my-component.component as well as demoComponent and has an empty "" route to ./my-component-demo.componentmy-component-demo.module.ts
that imports MyComponentDemoRoutingModuleindex.ts
with exports MyComponentDemoModuleLook at ticket #7 for more steps
Delete and create the file src/app/demo/all-demo-routes.ts
The content of the file should be something like:
/********************************************************
** AUTO-GENERATED FILE, DON'T CHANGE **
********************************************************/
export const Routes = [
{ path: 'lazy', loadChildren: 'lazy-component/lazy-demo-component#lazy-demo.module' },
// all the folders inside ./src/app/components/****
];
Make sure Travis do the following steps:
Branch | Build failing 🚨 |
---|---|
Dependency | @angular/cli |
Current Version | 1.4.2 |
Type | dependency |
This version is covered by your current version range and after updating it in your project the build failed.
@angular/cli is a direct dependency of this project this is very likely breaking your project right now. If other packages depend on you it’s very likely also breaking them.
I recommend you give this issue a very high priority. I’m sure you can resolve this 💪
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
We should be able to refresh the nglg folder without having to generate a new component
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.