The source has two parts, the platform and a documentation app.
/src/app - Contains the documentation application
/src/platform - Contains the platform assets
Add a new directory based on the name to src/platform/[name]
and it should contain a folder structure that has the following:
index.ts
- exports values[name].component.ts
- component source[name].component.html
- component markup[name].component.css
- component css (change extention to scss manually, we want scss files to compile)[name].component.spec.ts
- component unit testpackage.json
- configurations used for npm to publish it (name[@covalent/name], version, dependencies, etc)README.md
- readme file with documentation for github and npm registry.
Then you will need to add a path src/system-config.ts
under the library barrels that points to your new component directory, such as 'platform/[name]',
.
You can use the ng generate component components/[name]
and it will generate the new component stub in src/app/components/[name]
.