Search…
Generating a New Project

Generate a component

To generate a new React component in island-ui-core.
1
yarn generate @nrwl/react:component MyComponent --project=island-ui-core
Copied!

Generate an application

To generate a simple React application:
1
yarn generate @nrwl/react:app my-app
Copied!
To get a React application with server-side-rendering, we recommend using Next.JS:
1
yarn generate @nrwl/next:app my-app
Copied!
To create a service, you can get started with NestJS like this:
1
yarn generate @nrwl/nest:app services/my-service
Copied!
You might want to check out our reference NextJS and NestJS projects.
For NextJS projects, be sure to configure our custom NextJS server.

Generate a library

To generate a React library.
1
yarn generate @nrwl/react:lib my-lib --linter eslint
Copied!
To create a NestJS module:
1
yarn generate @nrwl/nest:lib my-lib
Copied!
To create a JS library that can be used both on the frontend and the backend:
1
yarn generate @nrwl/node:lib my-lib
Copied!
Libraries are sharable across libraries and applications. They can be imported from @island.is/my-lib.
Applications and libraries can be structured in a hierarchy using subfolders:
1
yarn generate @nrwl/node:lib common/my-lib
2
3
# Imported from '@island.is/common/my-lib'
Copied!

Migrations

Using the sequelize-cli we support version controlled migrations that keep track of changes to the database.

Generate a migrations

1
yarn nx run <project>:migrate/generate
Copied!

Migrating

1
yarn nx run <project>:migrate
Copied!
Last modified 8mo ago