Natuna Framework came in source code form, so you can build it with your own tools. We used EsBuild as our default compiler and it's so fast. Learn more about EsBuild here
We would used a latest version of these packages, so please keep the latest update for these packages.
Builds all files in the src folder.
✔️ You need to build the files when:
src folder.❌ You DON'T need to build the files when:
package.json.To build files, you need to run:
npm run build or yarn build to perform a single production build.npm run build:dev or yarn build:dev to perform a development build.npm run dev or yarn dev to perform a watch build, which will automatically rebuild the files when you change them.Builds the database schema. This is required after you edit the database migration file so that the new schema will be applied to the database module.
Current database is only support MySQL, and its schema is generated from SQL migration file under .natuna/database/mysql/migration.sql.
To build database, you need to run:
npm run db:migrate or yarn db:migrate to perform a a database migration from the migration file.npm run db:create-schema or yarn db:create-schema to generate the new database schema from the migration file.npm run db:setup or yarn db:setup to perform 2 steps above.cd command.If you're ever wonder, yes, EsBuild is generating your whole file mostly under 1 second.
Generated using TypeDoc