guybrown78 / tf-ng-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a new Angular library project

Run ng generate library <project-name> to generate a new library project. This will generate a project in your workpspace that contains an Angular module with a component and a service.

Build

Run ng build tf-ng-form-components from the workspace folder to build the component, the output files are created in the dist/<project-name> folder.

Run ng build tf-ng-core from the workspace folder to build the component, the output files are created in the dist/tf-ng-core folder.

Publish

Navigate to the project dist folder with the command cd dist/<project-name>

cd dist/tf-ng-form-components

cd dist/tf-ng-core

Run the command npm publish to publish the component the npm.


tf-ng-core

make a component ...

ng g c tf-ng-< COMPONENT NAME > --project tf-ng-core

BUILD ...

**** UPDATE PACKAGE VERSION ****

ng build tf-ng-core

cd dist/tf-ng-core

npm publish

cd ../../

About


Languages

Language:TypeScript 46.2%Language:HTML 36.7%Language:CSS 14.8%Language:JavaScript 2.3%