1.7.4 • Published 11 months ago

@ronin/codegen v1.7.4

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

11 months ago

1.7.3

11 months ago

1.7.2

11 months ago

1.7.1

12 months ago

1.7.0

12 months ago

1.6.1

12 months ago

1.6.0

1 year ago

1.5.0

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.1.2

1 year ago

0.0.1

1 year ago