in your own Ionic project:
- install it with NPM
$ npm i mv-ionic-components --save
- import it in
app.module.ts
:
import { ComponentsIonicModule } from 'mv-ionic-components';
@NgModule({
imports: [
/* .. */
ComponentsIonicModule.forRoot()
],
})
export class AppModule { }
- import it in the page module if needed
git clone git@github.com:Moventes/ionic-components.git
npm i
ionic serve
- add your code in
[PROJECT_ROOT]/componentes/src/components/
- declare your new component in
[PROJECT_ROOT]/componentes/src/componentes.module.ts
- declare your new component in
[PROJECT_ROOT]/componentes/src/lib.module.ts
- export it in
[PROJECT_ROOT]/componentes/src/public_api.ts
- add an example of use in
[PROJECT_ROOT]/src/pages
- increase the version number of the library in
[PROJECT_ROOT]/componentes/package.json
- publish on NPM repository with the command
npm run publish:npm