Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
@amplication/code-gen-types
Advanced tools
This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.
Amplication Code gen types is the component that defines the shared data structures used by the amplication packages.
import { getSchemaForDataType } from "@amplication/code-gen-types";
getSchemaForDataType(EnumDataType.SingleLineText);
import { types } from "@amplication/code-gen-types";
const lookupProperties: types.Lookup = {
relatedEntityId: "exampleId",
allowMultipleSelection: false,
};
:bulb: Before you begin, make sure you have all the below installed:
node -v
Should be: v14.0.0
or newernpm -v
Should be: 7.0.0
or newergit version
Should start with: git version
After cloning the repository open its root directory and run the following commands:
npm install
npm run bootstrap
npm run build -- --scope @amplication/code-gen-types
Make sure you are in the data directory (packages/amplication-data
).
Once you are done making changes, run the following commands:
Format files (editors like VSCode can do it for you automatically)
npm run format
Lint files (editors like VSCode come with integration to display those continuously)
npm run lint
Run unit tests
npm test
Rebuild the package
npm run build
FAQs
This library supplies all the contracts for Amplication Code Generation. The purpose is to make the contracts available for inclusion in plugins.
The npm package @amplication/code-gen-types receives a total of 451 weekly downloads. As such, @amplication/code-gen-types popularity was classified as not popular.
We found that @amplication/code-gen-types demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.