项目作者: mvcds

项目描述 :
use samples as templates
高级语言: JavaScript
项目地址: git://github.com/mvcds/ust.git
创建时间: 2016-12-01T02:25:30Z
项目社区:https://github.com/mvcds/ust

开源协议:MIT License

下载


Use Samples as Templates

Build Status

In a node project is common to have a folder structure where files follow some naming convention, to avoid copying and pasting on the folder’s name and files you could type ust to use samples as templates

  1. $ yarn global add ust

Test it by checking the version

  1. $ ust --version

You can also install it on the current project, for developers only.

  1. $ yarn add ust --dev

In this case you’ll need to refer to the bin folder

  1. $ node_modules/.bin/ust --version

WIP

This project is a work in progess, therefore, it only worries about happy scenarios, so there aren’t any exception handling and somethings will change for sure.

We welcome suggestions as issues on github.

How to start using it

On your project’s package.json file create an object ust, its keys will be considered as ‘the name of your samples’, and the value the sample itself.

  1. "ust": {
  2. "sampleA": "path\to\file.js",
  3. "sampleB": path\to\directory
  4. }

Commands

To duplicate a sample use:

  1. ust use [sample] [name]

You can list all commands from the command line with:

  1. ust list

Planned

  1. ust create [sample]
  2. ust delete [sample]