A tool to generate app structure and configuration for Malven Co. projects on the web.
This is a set of generators based on yeoman-generator to aid in setting up commonly-used dependencies and application structure for web projects..
There are many types of generators which can reference other generators.
base:project-craft- generates a basic Craft appbase:project-static- generates a simple front end app with no back end and optional Twig templating
base:style- installs common style modules and dependencies and sets up a main.cssbase:scripts- creates the javascript structure and sets up an example main.tsbase:build- installs a vite + gulp build configuration
base:git- initializes a git repo and installs hooks and Github templatesbase:eslint- installs the rules and rc files for linting javascriptbase:stylelint- installs the rules and rc files for linting stylesheetsbase:husky- lint and test on git actions using husky and lint-stagedbase:buddy- add deployment configuration via Buddy.
base:craft-styleguide- used on top of abase:project-craftinstallation to add a simple styleguide.
- Install DDEV
Next, clone this repo and link it with npm:
git clone git@github.com:cmalven/generator-base.git
cd generator-base/
ddev start
ddev npm iFinally, generate your new project:
ddev npm run new ./generators/project-craft
# or
ddev npm run new ./generators/project-static
# or ... any other included generator# Run all tests once
ddev npm test
# Run a specific test once
ddev npm test -- test/project-craft.js
# Run all tests whenever a file changes
ddev npm run test:devMIT © Malven Co.