sothuchi-test-package
v1.1.0
Published
Test package for SoThuChi app
Downloads
5
Readme
sothuchi-test-package
Test package for SoThuChi app configuration.
Installation
npm install sothuchi-test-packageUsage
import {
greet,
add,
formatCurrency,
multiply, // v1.1.0+
formatNumber, // v1.1.0+
calculatePercentage // v1.1.0+
} from 'sothuchi-test-package';
console.log(greet('Anh')); // "Hello from test package, Anh!"
console.log(add(1, 2)); // 3
console.log(formatCurrency(100000)); // "100.000 ₫"
// New in v1.1.0
console.log(multiply(5, 3)); // 15
console.log(formatNumber(1000000)); // "1.000.000"
console.log(calculatePercentage(25, 100)); // 25Versions
- 1.0.0: Basic utilities (greet, add, formatCurrency)
- 1.1.0: Added multiply, formatNumber, calculatePercentage
Development
This is a test package to learn package configuration and publishing.
Publishing Workflow
Publish version 1.1.0 (current):
cd packages/test-package
./publish.sh 1.1.0Publish version 1.0.0 (basic features):
cd packages/test-package
./rollback-version.sh # Rollback code to v1.0.0
./publish.sh 1.0.0 # Publish v1.0.0After publishing:
# Commit and tag
git add .
git commit -m "chore: publish sothuchi-test-package@{version}"
git tag test-package-v{version}
git push && git push --tags