ohayolibs
Version:
Ohayo is a set of essential modules for ohayojp.
36 lines (28 loc) • 1.44 kB
Markdown
order: 10
title: ng add
subtitle: Create scaffold
type: Documents
## Overview
```bash
ng add ohayojp
# If you want to create an English version, then:
ng add ohayojp --defaultLanguage=en
```
## Options
| Name | Default | Description |
| ------------------- | ------- | ----------------------------------------------------------------------- |
| `--form` | `true` | Whether include dynamic form |
| `--mock` | `true` | Whether include mock |
| `--hmr` | `true` | Whether include HMR |
| `--defaultLanguage` | `zh` | Default language, [Supported language list](/cli/plugin/en#Supported-language-list) |
| `--codeStyle` | `false` | Whether include code style |
| `--i18n` | `false` | Whether include i18n |
| `--npm` | `false` | Whether include `npm` taobao mirror configuration file (Chinese users) |
| `--yarn` | `false` | Whether include `yarn` taobao mirror configuration file (Chinese users) |
For example, generate a project with i18n:
```bash
ng add ohayojp --i18n --defaultLanguage=en
```
See more [plugins](/cli/plugin).