6.1.0 • Published 3 years ago

@marko/create v6.1.0

Weekly downloads
162
License
MIT
Repository
github
Last release
3 years ago

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 webpack

yarn

yarn create marko

pnpm

pnpx @marko/create

Options

  • --dir: Provide a different directory to setup the project in (default to pwd).
  • --template: The name of an example from marko-js/examples.
    • An example name
      webpack
      rollup
    • A tag/branch/commit other than master is supported
      basic#next     # example branch
      webpack#v1.2.3 # repo release tag
      rollup#62e9fb1 # repo commit hash
  • --installer: Override the package manager used to install dependencies. By default will determine from create command and fallback to npm.
    • marko-create --installer pnpm

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.

6.1.0

3 years ago

6.0.2

3 years ago

6.0.1

3 years ago

6.0.0

3 years ago

5.0.4

4 years ago

5.0.3

4 years ago

5.0.2

4 years ago

5.0.1

4 years ago

5.0.0

4 years ago

4.2.0

4 years ago

4.1.1

5 years ago

4.1.0

5 years ago

4.0.0

5 years ago

3.3.0

5 years ago

3.2.1

5 years ago

3.2.0

5 years ago

3.1.7

5 years ago

3.1.6

6 years ago

3.1.0

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago