Skip to content

wapplr/wapplr-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wapplr-cli

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:

These wonderful packages have inspired us, so there are many similarities with them:

Installation

npm install -g wapplr-cli

Usage

npx wapplr-cli create src/my-package

Functions

create

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

start

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

build

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

clean

This command deletes all files created by wapplr-cli except wapplr.json.

npx wapplr-cli clean

wapplr.json

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"
    ]
}

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published