php-create-project

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 16, 2018 License: MIT Imports: 4 Imported by: 0

README

create-project Build Status GoDoc Go Report Card

Create project is a command line tool for create new project from a boilerplate.

Check out the examples.

Installation

go get -u github.com/frozzare/create-project

or using homebrew.

brew install frozzare/tap/create-project

Usage

Create a project.json in your boilerplate directory.

{
    "name": "simple"
}

Then create a directory called {{.name}} with a main.js file that contains this:

var {{.name}} = function () {};

Then run:

create-project my-boilerplate dest-folder

You can also use a git url:

create-project https://github.com/user/my-boilerplate.git dest-folder

Labels

You can add labels to all fields using a another JSON structure in your project.json

{
    "fields": {
        "name": "app"
    },
    "labels": {
        "name": "Name"
    }
}

Commands

Commands array can be added when using labels. The commands will be executed after the project is generated.

{
    "fields": {
        "name": "app"
    },
    "labels": {
        "name": "Name"
    },
    "commands": [
        "touch test"
    ]
}

License

MIT © Fredrik Forsmo

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL