@marvinc.silva/sat
use samples as templates
Last updated 3 years ago by marvinc.silva .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @marvinc.silva/sat 
SYNC missed versions from official npm registry.

Samples As Templates

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 sat to use samples as templates

$ yarn global add @marvinc.silva/sat

Test it by checking the version

$ sat --version

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

$ yarn add @marvinc.silva/sat --dev

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

$ node_modules/.bin/sat --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 sat, its keys will be considered as 'the name of your samples', and the value the sample itself.

  "sat": {
    "sampleA": "path\to\file.js",
    "sampleB": path\to\directory
  }

Commands

To duplicate a sample use:

sat use [sample] [name]

You can list all commands from the command line with:

sat list

Planned

sat create [sample]
sat delete [sample]

Current Tags

  • 1.0.1                                ...           latest (3 years ago)

5 Versions

  • 1.0.1                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.2                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 5
Last Day 0
Last Week 1
Last Month 4
Dependencies (2)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |