wpm is very personal package manager for general purpose. wpm make developer be possible to download packages (Following wonderconf.json) and run package script (Following conf.json). For example developer can inject any file from package to one's project.
wpm
wpmPackageInit
wonderconf.json
wonder_modules/
---- [module_name]/
------ conf.json
wpm install -clean
wpm run wonderSample
For Android
{
"Android": [
{
"command": "settings.gradle",
"upsert": "awesomelib"
},
{
"command": "copy",
"src": "./Src/awesomelib/",
"dst": "./awesomelib/"
}
]
}
For Node.js HTTP Server (WonderHttpServer)
{
"node.js": [
{
"command": "copy",
"src": "Sample/",
"dst": ""
},
{
"command": "exec",
"parm": "npm install --prefix ./wonder_modules/WonderHttpServer/Core/"
},
{
"command": "copy",
"src": "Core/node_modules/",
"dst": "node_modules"
}
]
}
wonderconf.json for both above configurations
{
"name": "WonderSystem",
"description": "Simple Wonder System",
"host": "http://wondersaga.com/wonder_modules/",
"version": "0.0.1",
"dependencies": {
"Android": {
"projectPath": "./MyProjectPath/",
"TestGradleMod": "latest",
"settingGradleSubPath": "/"
},
"node.js": {
"projectPath": "./WonderHttpSample/",
"WonderHttpServer": "latest"
}
}
}
- exec: Run OS command
- -reverse_copy: Execute reverse copy
- help: Show helpful info
- install: Install package
- -clean: Remove repository before downloading it.
- npm: Call npm
- run: Execute command(s) inside the package
- uninstall: Uninstall package
- update: Update package
- version: Show wpm version
- view: View package info