Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/frozzare/create-project
Create project is a command line tool for create new project from a boilerplate.
https://github.com/frozzare/create-project
boilerplate boilerplate-template create-project
Last synced: 4 days ago
JSON representation
Create project is a command line tool for create new project from a boilerplate.
- Host: GitHub
- URL: https://github.com/frozzare/create-project
- Owner: frozzare
- License: mit
- Created: 2018-05-15T15:44:23.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-03-08T18:27:55.000Z (over 5 years ago)
- Last Synced: 2024-06-20T16:49:16.988Z (5 months ago)
- Topics: boilerplate, boilerplate-template, create-project
- Language: Go
- Homepage:
- Size: 9.93 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# create-project [![Build Status](https://travis-ci.org/frozzare/create-project.svg?branch=master)](https://travis-ci.org/frozzare/create-project) [![GoDoc](https://godoc.org/github.com/frozzare/create-project?status.svg)](http://godoc.org/github.com/frozzare/create-project) [![Go Report Card](https://goreportcard.com/badge/github.com/frozzare/create-project)](https://goreportcard.com/report/github.com/frozzare/create-project)
Create project is a command line tool for create new project from a boilerplate.
Check out the [examples](https://github.com/frozzare/create-project/tree/master/examples).
## Installation
```
go get -u github.com/frozzare/create-project
```or using [homebrew](https://brew.sh/).
```
brew install frozzare/tap/create-project
```## Usage
Create a `project.json` in your boilerplate directory.
```js
{
"name": "simple"
}
```Then create a directory called `{{.name}}` with a `main.js` file that contains this:
```js
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 another JSON structure in your `project.json`
```js
{
"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.
```js
{
"fields": {
"name": "app"
},
"labels": {
"name": "Name"
},
"commands": [
"touch test"
]
}
```## License
MIT © [Fredrik Forsmo](https://github.com/frozzare)