1.0.0 • Published 2 years ago

@ansiinc/library v1.0.0

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

NOTE: PLEASE DISREGARD ALL JAVASCRIPT FILES (.JS)

-Please add common functions in class commons (commons.ts) -If you wish to add new class please create another file in the root directory of this project using Typescript extension (.ts) -Our codes should be in Typescript and we should transpile it into Javascript before publishing to NPM


UPDATING / PUBLISHING THIS LIBRARY:

1) Open powershell and make sure the directory is pointed at the root of this project 2) Update version in package.json and versionHistory.xvr 3) Execute this command: npm run build -This build command will transpile our Typescript codes to Javascript 4) Execute this command: npm login -Fill in the following: Username: Enter NPM Username Password: Enter NPM Password Email: (this IS public) Enter NPM Email npm notice Please check your email for a one-time password (OTP) Enter one-time password from your authenticator app: Check Email for OTP -On success: Logged in as username on https://registry.npmjs.org/. 5) Execute this command: npm publish --access=public -On success:

  • @ansiinc/library@1.0.0 NOTE: #4 can be skipped if you have already login before

INSTALLING THIS LIBRARY TO OTHER PROJECTS

1) Open powershell and make sure the directory is pointed at the project's root 2) Execute this command: -To install latest version of the library npm i ansiinc/library@latest --save -To install specific version of the library (1.0.0 is a sample version): npm i ansiinc/library@1.0.0 --save 3) Import the library in your project source code: import { clsCommons } from '@ansiinc/library/lib/index'