create-compas
Advanced tools
Comparing version 0.0.212 to 0.0.213
{ | ||
"name": "create-compas", | ||
"version": "0.0.212", | ||
"version": "0.0.213", | ||
"description": "Create compas based applications", | ||
@@ -18,3 +18,3 @@ "exports": { | ||
"dependencies": { | ||
"@compas/stdlib": "0.0.212", | ||
"@compas/stdlib": "0.0.213", | ||
"tar": "6.1.11" | ||
@@ -21,0 +21,0 @@ }, |
@@ -18,45 +18,3 @@ # create-compas | ||
All common components for creating backends, tooling and more in opinionated | ||
packages; from describing the api structure to testing the end result. | ||
## Features | ||
- Code generators for routers, validators, SQL queries, API clients and more | ||
- Logging, body parser and error handling out of the box | ||
- Persistence layer with Postgres for files, jobs and sessions | ||
- An extendable CLI that comes with a test runner and is able to run your | ||
database migrations. | ||
- Structured logging all throughout, giving you insight in the running system. | ||
## Requirements | ||
- Node.js >= 16 | ||
- Yarn 1.x.x / NPM | ||
## Why | ||
I had a time when I was mostly creating small backends and tools back to back. | ||
Always trying to improve them by choosing packages that align better with my | ||
views, new features or more opinionated defaults. To capture this flow and | ||
making those backends and tools easier to maintain, Compas was created. | ||
New features added should fall under the following categories: | ||
- It improves the interface between api and client in some way. An example may | ||
be to support websockets in @compas/code-gen | ||
- It improves the developer experience one way or another while developing an | ||
api For example the `compas docker` commands or various utilities provided by | ||
@compas/stdlib | ||
Although some parts heavily rely on conventions set by the packages, we | ||
currently aim not to be a framework. We aim to provide a good developer | ||
experience, useful abstractions around the basics, and a stable backend <-> | ||
client interface. | ||
## Docs and development | ||
See [the website](https://compasjs.com) for the | ||
[changelog](https://compasjs.com/changelog.html), all available APIs and various | ||
guides. | ||
For contributing see [contributing.md](https://compasjs.com/contributing.html). | ||
Quickly initialize a Compas project. Take a look at the | ||
[documentation](https://compasjs.com/getting-started.html). |
@@ -146,2 +146,9 @@ import { mkdir, readFile, writeFile } from "fs/promises"; | ||
if (metadata?.generating) { | ||
logger.info("Generating..."); | ||
await spawn("npx", metadata.generating.split(" "), { | ||
cwd: options.outputDirectory, | ||
}); | ||
} | ||
logger.info(`Done!`); | ||
@@ -148,0 +155,0 @@ if (metadata?.initMessage) { |
575
19170
20
+ Added@compas/stdlib@0.0.213(transitive)
+ Added@types/node@18.7.14(transitive)
+ Addeddotenv@16.0.2(transitive)
+ Addedpino@8.4.2(transitive)
- Removed@compas/stdlib@0.0.212(transitive)
- Removed@types/node@18.6.5(transitive)
- Removeddotenv@16.0.1(transitive)
- Removedpino@8.4.0(transitive)
Updated@compas/stdlib@0.0.213