mvn-packager
v0.0.1
Published
Packaging frontend project like Maven
Downloads
3
Maintainers
Readme
mvn-packager
:package: Packaging frontend project like Maven
Why ?
Sometimes we need to treat frontend project like Maven do package, this repo will help you to create Maven like package from your dist
folder
Test Me
- Install :
npm install
oryarn install
- Run :
npm run test-it
- Will create file
pom.xml
and foldertarget
that have file fromdist
folder
Example Usage
const mvnPackager = require('/mvn-packager')
let version = process.env.npm_package_version
let groupId = 'com.irfan.project'
let packageName = 'mvn-packager'
let projectDir = 'dist'
let targetDir = 'target'
mvnPackager.package(version, groupId, packageName, projectDir, targetDir)