Yeoman generator for creating the development process, tools and a sample project for current-generation web applications.
yo confit
to re-generate configuration while preserving your changes (uses tags to identify generated-areas inside files) npm install -g yo
npm install -g generator-confit
yo confit [--skip-install] [--skip-run]
--skip-install
skips the installation of NPM and Bower dependencies--skip-run
skips the run command, which normally starts the build tool in develop mode (npm run dev
)Want to make life easier for web developers? Fix a bug? Become a contributer!
Confit is a Yeoman generator that generates web-development tools for the main development processes in web projects:
The tooling is generated by answering a series of simple questions about your project, turning a process that used to take weeks to tune correctly, into a 5 minute step. See the animated-gif above for an example.
Out of the box, Confit can generate a sample project for the settings you've chosen so that you can see that everything works!
Confit isolates you from the constant-churn of Javascript frameworks so that you can get started with a build-system which "just works". And in a few months time when you want to use newer tools, migration will be easier (than if you hadn't used Confit).
confit.yml
), so you can migrate your configuration to use newer build-tools more-easily.Confit wants to capture the information about your project which will not change when your build-tooling changes. This is the essence of Confit - decoupling your project configuration from the build-tool implementation of that configuration.
Confit can generate a sample project implemented using the chosen combination of technologies and tools.
It is recommended to generate the sample project the first time you run yo confit
.
There are sample project implementations for the following technology combinations:
Build Profile | JS Source Format | JS Frameworks Supported (optional) |
---|---|---|
Browser | ES6 | Angular 1.x, React |
Browser | Typescript | Angular 1.x, Angular 2 |
Node | ES6 |
All sample projects support the chosen CSS compiler (or plain CSS files) (only for Browser projects).
Confit is designed to be hassle-free when upgrading. As well as using semantic versioning, Confit has some smarts to make upgrading simple even when there are "breaking changes". It is always a good idea to commit all your source code to a repo BEFORE upgrading, so that if the upgrade doesn't turn out how you expected, you can revert to the previous version of the code.
Each Confit generator (Confit is composed of multiple generators) contains a version identifier.
When you upgrade to a new version of Confit, if any of the new generators have changed,
Confit will detect this and the generator will re-ask the questions for that section.
That will cause the generator's version in your confit.yml
file to be updated, as well
as new information being added to the file in some cases. Old / deprecated information will not be automatically removed.
Similarly for the generated tools, if the tooling changes, or you choose to use a different build profile which uses different tools, the old tools' files will not be removed.
There are several tags available for inserting generated content into the README.md file and CONTRIBUTING.md. Information inside README.md is aimed at end-users (consumers) of the package. Information inside CONTRIBUTING.md is aimed at developers who need to modify the package.
Tag | Description | Example |
---|---|---|
|
The package name as captured in the rendered as a H1 heading | # package-name |
|
The package description as captured in the package.json , rendered as a block quote |
> A description of my awesome package |
|
The installation commands for the package, from a consumer's perspective | npm install sample-app |
|
A tree representation of the directory structure | |
|
A link to CONTRIBUTING.md |
## Contributing See CONTRIBUTING.md. |
|
A link to the LICENSE file |
## License This software is licensed under the MIT Licence. See LICENSE. |
|
Heading for CONTRIBUTING.md |
# Contributing Welcome! Thanks for taking some time to find out more about how you can make package-name even better. |
|
Getting started with contributing to the project | # Getting Started. |
|
Description of the GitFlow development process | # GitFlow Development Process This project uses the GitHub Flow workflow... |
|
A list of the build-related commands | npm run build |
|
A list of the test-related commands | npm test |
|
A list of the verify-related commands | npm run verify |
|
A list of the commit-related commands | git status |
|
A list of the release-related commands | npm run release |
|
Information on how to safely change the generated configuration | ## Changing build-tool configuration There are 3 ways you can change the build-tool configuration for this project... |
The template syntax has to parsable as an EJS template, valid HTML and valid Markdown in both Stash and GitHub. Each syntax treats whitespace slightly differently. This syntax allows the templates to be inside the markdown files without being visible when rendered as HTML.
These are the companies that are sponsoring the development of Confit: