tt-frontend-components
v2.2.9
Published
tt-frontend React component
Downloads
166
Readme
Setup Installation (First Timer)
Install Node Js 8+
-> Download v8 then
Run npm install
on the root folder (this will install npm dependencies)
Check node -v
if return v8.0+
or not greater than 9
Structure of Project
src
is where library component is created, exporting your reusable library will be updated here and created.
demo
is folder where you can test against your creation of library you will see your changes right away on Running the App
Running the App
type in npm start
on the root folder
this will run demo folder
running on http://localhost:3000/
Test the App
type in npm test
on the root folder
npm run test:coverage
(run tests and produce a code coverage report in coverage/)
npm run test:watch
(start a test server and re-run tests on every change)
Steps publish the app on NPM
Update package.json
to increment the version (example : 1.0.1 > 1.0.2)
git add --all
add all changes
git commit -m "your message"
git push origin library
type in npm run build
on the root folder to ready for publish on NPM
npm run build -- --copy-files
when building css to publish
npm publish
to establish new update on npm package
Double check version here :
Reset
type in npm run clean
on the root folder