-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compas framework #2774
Comments
WhyThe time has come, we are going full steam ahead in to framework mode. Starting a new Compas project from scratch currently involves a lot of boilerplate. Looking at the with-auth template, 7 folders and many more files just to run code generation, an api, a queue worker and of course tests. Most of it is just wiring things up in one of the few ways possible. We can do that automatically as well. WhatWhat if you could just run HowNot every backend is the same of course. Some require a different Postgres version. Others connect to external api's and would prefer to use code-gen compatible with OpenAPI specs. And we understand that you don't want to rewrite your existing backends to folder based routing. This means that we are slowly going move things in to the The first change in this direction has already been started. We are going to purpose the A peek aheadWe are aiming for the following behaviour... ... in development > compas
Loaded config...
Generating...
Launching prerequisites...
Starting watcher...
Waiting on syntax error in `src/foo/bar.js`...
Files are waiting to be linted...
# Input: L
Running the linter for 5 files...
All files are up-to-date. ... in CI > compas
Loaded config...
Generating...
Launching prerequisites...
Running linter...
Running tets...
Done! ... in production > compas prod
Loaded config...
Generating...
Starting api...
Starting queue...
# Or
> compas prod api
Loaded config...
Generating...
Starting api...
ConclusionThe road up ahead is exciting! There will be some bumps and breaking changes for sure. But the result should be faster, better integrated and most importantly more stable to build on. |
Tracking issue to make a Compas framework. For the why and how, check out #2774 (comment)
zakmes
CLI kind-of usablecompas
as dev dependencynpx -p compas zakmes init
auto-install as prod dependency$pkg install
compas docker
commandszakmes init docker
and related commands. We want people to use thezakmes
CLI in a variety of scenario's. So we shouldn't automatically boot up Docker in any scenario, like for example a frontend project.compas lint
zakmes init lint
zakmes init migrations
to add@compas/store
&migrations/.gitkeep
@compas/store
is installed and amigrations
dir exists.sql
&.js
files in the migrations directories.zakmes ci
zakmes init github
should add some default workflow fileszakmes prod
&zakmes prod queue
scripts/queue.js
override behaviour?create-compas
zakmes verify
load everything, without executing anythingcompas migrate
compas run ...
compas test
zakmes prod
The text was updated successfully, but these errors were encountered: