1.7.4 • Published 6 months ago

@ronin/codegen v1.7.4

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 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

6 months ago

1.7.3

6 months ago

1.7.2

6 months ago

1.7.1

6 months ago

1.7.0

6 months ago

1.6.1

6 months ago

1.6.0

7 months ago

1.5.0

7 months ago

1.4.1

7 months ago

1.4.0

7 months ago

1.3.0

7 months ago

1.2.2

7 months ago

1.2.1

7 months ago

1.2.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.1

7 months ago

1.0.0

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.1.2

8 months ago

0.0.1

8 months ago