0.6.2 • Published 7 years ago

cyto v0.6.2

Weekly downloads
1
License
Apache-2.0
Repository
-
Last release
7 years ago

A declarative boilerplate generator designed to help you write less meaningless code.

npm Travis Coveralls

Installation

Cyto is primarily meant to be used as a global command line tool:

> yarn global add cyto
# or `npm install -g cyto`
> cyto init

Note: If you installed yarn via homebrew, you may need to update your config. Following the steps outlined in this comment should resolve that.

Cyto can also be used as a library in any node.js application (more on this later)

Why Use Cyto?

Boilerplate generation is not a new problem. Many libraries have tried to solve this issue before, the most notable being Yeoman. Yeoman was and still is great for spinning up boilerplate projects and has undoubtedly shaped how many people develop applications today. However, I've always some issues with it's approach to boilerplate generation, the most major being that it always felt like too much work to create your own generators. The Yeoman API is dense, to say the least, and although it does a lot for you, any truly useful generator always seemed to turn into a massive codebase on it's own (check out the Yeoman Angular generator as an example). I've always felt that boilerplate generation is a hard problem to solve because every developer has slightly different preferences. If you can't create your own generator easily, you're forced to use generators written by others. These almost always do too much or too little and lock you into someone else's design choices, which can be irritating at best and more work in the long run at worst.

Cyto is different. While Yeoman solves boilerplate generation through an imperative API, Cyto is declarative. Instead of programming out what actions to take in a generator, Cyto instead requires that you declare what you need through templates. By following a simple yet powerful declarative API, these templates are smaller, easier to reuse, and simpler to reason about than Yeoman generators.

Docs

  1. Getting Started
  2. Argument Types
  3. Creating Your Own Template
  4. Composing Templates
  5. Runtime Dependencies
  6. Partial Templates
  7. Base Templates
  8. Template Options
  9. Best Practices
  10. API Reference

Contributing

  1. Read the docs on contributing here and sign the CLA
  2. Clone this repository
  3. Run yarn or npm i
  4. Run npm run watch and leave it running
  5. Run npm link in a separate terminal
  6. You should now have the cyto command installed! It will update with your latest changes while you have npm watch active

Contributors

Cyto is written and maintained by Connor Taylor @taylorc93. However, it wouldn't have been possible without the help of these amazing people:

  1. Scott Staniewicz scottstanie
    • For all of the documentation edits and user testing
  2. Alicia Payette apayette
    • For designing the awesome logo
  3. Alex Kasemir annarichardson
    • For documentation edits and user testing
  4. Anna Richardson alexkasemir
    • For user testing
0.6.2

7 years ago

0.6.1

7 years ago

0.6.0

7 years ago

0.5.1

7 years ago

0.5.0

7 years ago

0.3.7

7 years ago

0.3.6

7 years ago

0.3.5

7 years ago

0.3.4

7 years ago

0.3.2

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago