This module can handle the development of Wapplr, and facilitates the creation and build of end-user applications. This monorepo includes all helpers package from Wapplr:
- babel-plugin-css-to-js-transform
- babel-preset-wapplr
- eslint-config-wapplr
- postcss-config-wapplr
- wapplr-cli
- webpack-config-wapplr
These wonderful packages have inspired us, so there are many similarities with them:
npm install -g wapplr-cli
npx wapplr-cli create src/my-package
This command creates a new Wapplr package with my-package
name to the path/to/src/my-package
folder:
npx wapplr-cli create path/to/src/my-package
This command creates a new Wapplr package with my-package
name to the my-folder
folder:
npx wapplr-cli create my-package --root-path my-folder
This command creates a new Wapplr package with my-package
name to the current folder.
npx wapplr-cli create my-package
This command create a startable instance inside to the current directory to the ./run
folder from ./src
folder.
Then it runs that, and the browser will open.
npx wapplr-cli start
This command create a startable instance inside to the current directory to the ./run
folder from ./src
folder.
And it create a distribution to the ./dist
folder
npx wapplr-cli build
This command deletes all files created by wapplr-cli except wapplr.json
.
npx wapplr-cli clean
All commands create the descriptive file, what contain those properties. It is needed to wapplr-cli can recognize the Wapplr packages.
{
"time": "2021-01-01T00:00:00.488Z",
"runScript": "build",
"packageName": "wapplr",
"buildHash": "eekrlp",
"paths": {
"rootPath": "your\\path\\src\\wapplr",
"buildToolsPath": "your\\path\\node_modules\\wapplr-cli",
"srcPath": "your\\path\\src\\wapplr\\src",
"buildPath": "your\\path\\src\\wapplr\\run",
"distPath": "your\\path\\src\\wapplr\\dist",
"templateDirectory": "your\\path\\node_modules\\wapplr-cli\\wapplr-template"
},
"argv": [
"build"
]
}
MIT