All Projects → trainyard → choo-cli

trainyard / choo-cli

Licence: MIT license
Command line scaffolding tools for choo

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to choo-cli

hyper
🎨 Hyper: A component-first CSS design system.
Stars: ✭ 26 (-60%)
Mutual labels:  scaffold
modular
Scaffold a react monorepo and its component parts.
Stars: ✭ 13 (-80%)
Mutual labels:  scaffold
laravel-scaffold-v1
The base for developing awesome projects
Stars: ✭ 15 (-76.92%)
Mutual labels:  scaffold
scaffold-command
Generates code for post types, taxonomies, blocks, plugins, child themes, etc.
Stars: ✭ 149 (+129.23%)
Mutual labels:  scaffold
hbuild
⚔repaid build web/vue/react project starter kit with cli
Stars: ✭ 37 (-43.08%)
Mutual labels:  scaffold
facebook-clone
Building Facebook clone. As usual, any additional styling will be up to you but the really important stuff is to get the data and back end working properly.
Stars: ✭ 14 (-78.46%)
Mutual labels:  scaffold
vue-boilerplate
An opinionated Vue.js 2 boilerplate with Vue Router, AVA and Istanbul
Stars: ✭ 27 (-58.46%)
Mutual labels:  scaffold
go-echo-server-sandbox
A scaffold of golang web server using labstack/echo
Stars: ✭ 12 (-81.54%)
Mutual labels:  scaffold
generator-deepexi-spring-cloud
deepexi java scaffold(spring cloud) generator
Stars: ✭ 30 (-53.85%)
Mutual labels:  scaffold
VineRelayStore
🔥 VineRelay is Content Management Boilerplate which enables you to quickly scaffold a shop with the basic features using React, Relay and GraphQL.
Stars: ✭ 16 (-75.38%)
Mutual labels:  scaffold
generator-go
A Yeoman generator to scaffold a simple golang application
Stars: ✭ 46 (-29.23%)
Mutual labels:  scaffold
ts-scaffold
🏗 ts-scaffold - Scaffold project for Typescript projects, with Unit Tests and basic dependencies set up
Stars: ✭ 13 (-80%)
Mutual labels:  scaffold
lnv-mobile-base
移动端开发脚手架-基于gulp的使用zepto、handlebars、sass并且带移动端适配方案(flexible.js)的前端工作流,旨在帮助移动端项目的开发
Stars: ✭ 41 (-36.92%)
Mutual labels:  scaffold
ms-bus
基于 avalon2 的 SPA 脚手架
Stars: ✭ 31 (-52.31%)
Mutual labels:  scaffold
g5-component
Event based Browserify component scaffold. ⚾
Stars: ✭ 15 (-76.92%)
Mutual labels:  scaffold
laravel-scaffold
Laravel + Inertia (Vue) + Tailwind Scaffold for new Projects
Stars: ✭ 33 (-49.23%)
Mutual labels:  scaffold
makes
A tool to scaffold new projects, simple enough that you would want to define your own skeletons (aka generators).
Stars: ✭ 18 (-72.31%)
Mutual labels:  scaffold
react-scaffolder
⚡ Scaffolding tool for React
Stars: ✭ 43 (-33.85%)
Mutual labels:  scaffold
wordpress-scaffold
The scaffold for GRRR's WordPress Pro setup.
Stars: ✭ 16 (-75.38%)
Mutual labels:  scaffold
uniapp-scaffold
基于Vue.js的跨平台小程序脚手架、设计语言、组件库及插拔式模板
Stars: ✭ 87 (+33.85%)
Mutual labels:  scaffold

choo-cli npm Build Status MIT Licensed

This is a tool for generating choo apps.

demo

To Install (you'll need at least node v6):

npm install choo-cli -g

Using choo-cli will scaffold out a project and help generate additional files like models, pages, and elements. It also generates common scripts you can use to build/test/serve your choo app.

# generate a new project folder,
# comes with package.json, readme, and recommended structure
choo new my-new-project 

# using yarn?
choo new my-new-project --yarn

# generate a new page
choo generate page my-new-page

# generate a new model
choo generate model my-new-model

# generate a new element
choo generate element my-new-element

# run your app at localhost:8080
npm start

# build your app for production
npm run build:prod

# test your app
npm test

Usage

Choo-cli runs off of node and npm, you can install choo-cli globably with the following command:

The basic signature of a choo-cli command look like this:

$ choo <command> <name> [options]

For example to create a new project skeleton we can run:

$ choo new my-project

You can now cd into my-project

$ cd my-project

Choo-cli will create a directory structure that for slim applications and reusability.

assets/        images and fonts, if you have any
elements/      standalone application-specific elements
lib/           generalized components, should be moved out of project later
models/        choo models
pages/         views that are directly mounted on the router
scripts/       shell scripts, to be interfaced with through `npm scripts`
client.js      main application entry; programmatic manifest file
package.json   manifest file

Custom templates

You can also install custom templates from Github, like this

$ choo new <project> from <github-user>/<github-repo>

Custom templates must have ejs templating syntax.

Using yarn

You can have the choo-cli use yarn over npm, like this

$ choo new <project> from <github-user>/<github-repo> --yarn
# or
$ choo new <project> --yarn
# or
$ choo new <project> --yarn from <github-user>/<github-repo>

Debug mode

Choo-cli uses debug - a popular logging framework.

Enable debug mode by adding an environment DEBUG to have choo-cli* as its value

DEBUG=choo-cli* choo new ...

Generators

You can use choo-cli to generate pieces of your project as you are developing. For example you can generate

Pages

$ choo generate page my-page

Models

$ choo generate model my-model

Elements

$ choo generate element my-element

npm scripts

Choo-cli was made for generating choo projects and code, and leverages npm scripts for certain project task. So in our project a set of npm scripts have already been generated that perform various tasks such as testing/serving/building/etc.

At any time you can review the complete list of npm scripts available by viewing package.json or by running the following command:

$ npm run

Here is complete list the the commands and their function

  • start - start dev server at localhost:8080
  • build:prod - builds your project to deploy to a server
  • test - runs unit tests, for now it will just run linting.
  • lint - runs eslint against your code

So for example you can run npm start to start a dev server. You can now see your app running at localhost:8080 first time this will pull in your node deps and start a budo server

License

MIT ©

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].