dnys1 / amplify-codegen

Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building Amplify applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AWS Amplify

Discord Chat build:started

Reporting Bugs/Feature Requests

Open Bugs Feature Requests Enhancements Closed Issues

Amplify Codegen

Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building amplify applications. Packages are mainly used for frontend code generation including:

Package Description
amplify-codegen Amplify plugin for code generation
appsync-modelgen-plugin Model generator for Amplify Datastore
graphql-docs-generator Generates statements from GraphQL schema
graphql-types-generator Generates type annotations from GraphQL schema and statements

Developing

This section should get you running with Amplify Codegen. You will need the latest version of nodejs on your system and developing locally also requires yarn workspaces. You can install it here.

Start by, Forking the main branch of amplify-codegen.

$ git clone git@github.com:[username]/amplify-codegen.git
$ cd amplify-codegen

$ yarn setup-dev

Before pushing code or sending a pull request, do the following:

  • At the command line, run npm run lint at the top-level directory. This invokes lerna to check for lint errors in all of our packages.
  • You can use eslint to fix some of the lint errors. To use it, go to the package that has errors and run lint-fix
  • If there are any remaining lint errors, resolve them manually. Linting your code is a best practice that ensures good code quality so it's important that you don't skip this step.

Contributing

See the contribution guideline. https://github.com/aws-amplify/amplify-codegen/blob/master/CONTRIBUTING.md

About

Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building Amplify applications.

License:Apache License 2.0


Languages

Language:TypeScript 83.2%Language:JavaScript 16.6%Language:Handlebars 0.1%Language:Shell 0.1%