6.1.0 • Published 5 years ago
@marko/create v6.1.0
Used to create a template Marko project in a specific directory.
CLI
Example
npm
# Creates a Marko project
npm init @marko
# Creates a project called "myapp" from the "webpack" example template
npm init @marko myapp --template webpackyarn
yarn create markopnpm
pnpx @marko/createOptions
--dir: Provide a different directory to setup the project in (default topwd).--template: The name of an example from marko-js/examples.- An example name
webpack rollup - A tag/branch/commit other than
masteris supportedbasic#next # example branch webpack#v1.2.3 # repo release tag rollup#62e9fb1 # repo commit hash
- An example name
--installer: Override the package manager used to install dependencies. By default will determine from create command and fallback tonpm.marko-create --installer pnpm
API
Installation
npm install @marko/createExample
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.
6.1.0
5 years ago
6.0.2
5 years ago
6.0.1
5 years ago
6.0.0
5 years ago
5.0.4
5 years ago
5.0.3
5 years ago
5.0.2
5 years ago
5.0.1
5 years ago
5.0.0
6 years ago
4.2.0
6 years ago
4.1.1
6 years ago
4.1.0
6 years ago
4.0.0
7 years ago
3.3.0
7 years ago
3.2.1
7 years ago
3.2.0
7 years ago
3.1.7
7 years ago
3.2.0-alpha.86e5e3fd
7 years ago
3.2.0-alpha.c58c19ad
7 years ago
3.2.0-alpha.1d047e73
7 years ago
3.2.0-alpha.8b9e8d01
7 years ago
3.2.0-alpha.7b0fb4d9
7 years ago
3.2.0-alpha.8a9b7cfb
7 years ago
3.2.0-alpha.0ef43a53
7 years ago
3.2.0-alpha.3ce1f0bf
7 years ago
3.2.0-alpha.9a8d717c
7 years ago
3.2.0-alpha.dbc977e6
7 years ago
3.2.0-alpha.d4537edf
7 years ago
3.2.0-alpha.857c30a3
7 years ago
3.2.0-alpha.8eef2cbb
7 years ago
3.2.0-alpha.b0007ff1
7 years ago
3.2.0-alpha.b1d4df7e
7 years ago
3.2.0-alpha.2677ee4f
7 years ago
3.1.6
7 years ago
3.1.0
8 years ago
3.0.1
8 years ago
3.0.0
8 years ago
1.0.2
8 years ago
1.0.0
8 years ago