1.7.4 • Published 9 months ago

@ronin/codegen v1.7.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

RONIN Codegen

tests code coverage install size

This package generates TypeScript code based on RONIN models.

Usage

import { generate } from '@ronin/codegen';
import { model, string } from 'ronin/schema';

const User = model({
  slug: 'user',
  pluralSlug: 'users',
  fields: {
    name: string(),
    email: string({ required: true }),
  },
});

const generateCode = generate([User]);
//       ^? string

Testing

Use the following command to run the test suite:

bun test
1.7.4

9 months ago

1.7.3

9 months ago

1.7.2

9 months ago

1.7.1

9 months ago

1.7.0

9 months ago

1.6.1

9 months ago

1.6.0

9 months ago

1.5.0

10 months ago

1.4.1

10 months ago

1.4.0

10 months ago

1.3.0

10 months ago

1.2.2

10 months ago

1.2.1

10 months ago

1.2.0

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago

0.1.1

11 months ago

0.1.0

11 months ago

0.1.2

11 months ago

0.0.1

11 months ago