Package Exports
- @marko/create
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@marko/create) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
@marko/create
Used to create a template Marko project in a specific directory.
CLI
Installation
npm install marko-cli
Example
# Creates a Marko project in a folder called "myapp" in the current directory.
marko create myapp
Options
--dir
: Provide a different directory to setup the project in (default topwd
).
API
Installation
npm install @marko/create
Example
import { join } from "path";
import create from "@marko/create";
create({
dir: join(__dirname, "myapp")
}).then(() => {
// Project as been created and dependencies installed.
console.log("Project created");
});
Options
Options are the same as the CLI options.