Comments (7)
Sure thing @stevemao. Let me know when it is done and we can put mentions in our Readme's or find a way to merge.
from cz-cli.
Thanks @jimthedev
from cz-cli.
@jimthedev I never had time to do this. But My originally thought was to use handlebars templates to generate the commit messages.
from cz-cli.
@stevemao I considered it for a while, then decided to just execute "prompter" function inside an adapter and people could capture input however they prefer. I pass in inquirer by default but they could accept input in other ways if they wish. My main goal right now is npm3 support and building comprehensive tests. Both are coming along nicely.
from cz-cli.
What was the reason you didn't choose to use a templating engine?
from cz-cli.
Good question. I wanted to let the cli be as flexible as possible.
The adapters can use a template engine if they like. I just chose not to force any single template engine. Each adapter can use es6 template strings, handlebars, ejs, jade, etc. As long as they produce a string, I don't mind. :)
At the end of the day, the cli just wants the adapters to give it a composed string to commit. If someone wants to create a cz-conventional-commit-handlebars adapter that uses handlebars then they could do it very easily.
from cz-cli.
π
from cz-cli.
Related Issues (20)
- Can not write sentence case in when writing short description for change. HOT 2
- Vulnerability: Prototype Pollution via the main (merge) function HOT 2
- NPM warning breaks `cz` prompts when using `scripts` entry
- commitizen produces empty commit message after answering prompts HOT 3
- Showing timing (progress) during commit cli
- Text alignment issues in smaller terminal windows on Mac HOT 2
- bug: issue with LRU cache, cannot execute `git-cz`
- [Config loader] check if config key is in package.json before accepting it as a config file HOT 1
- Weird behaviour when using cz cli (global) outside a git repo
- pathspec 'git' did not match any file(s) known to git HOT 2
- Feature request: Submit on the command line: Is there a way to return to the previous field? HOT 1
- Feature request: Whether to support multiple types of commits in one submission HOT 1
- commit npm script actually works
- husky hook does not work HOT 2
- Nestor David SΓ‘nchez
- Behaves the same as git commit HOT 1
- Provide a way to prompt to amend commit message only
- cz commit error
- Question: Is it possible to write an adapter in ES6?
- Cannot create release version after creating a pre-release version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cz-cli.