Skip to content

Commit

Permalink
feat(core): update to Nx and Angular 9 (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanWalker authored Mar 3, 2020
1 parent 0be75b4 commit f5f05c6
Show file tree
Hide file tree
Showing 95 changed files with 16,591 additions and 2,975 deletions.
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ packages/nativescript/src/schematics/**/_**files/**/*.json
packages/nativescript/src/schematics/**/App_Resources/**/*
packages/nativescript/src/schematics/**/hooks/**/*
packages/nativescript/src/schematics/**/tools/**/*
packages/nativescript/src/schematics/**/src/assets/*.min.css
packages/nativescript/src/schematics/xplat/_files/scss/fonticons/*.css
packages/nativescript-angular/src/schematics/xplat/_files/scss/fonticons/*.css
packages/web/src/schematics/**/_*/**/*.json
packages/xplat/src/schematics/**/_*/**/*.json
/.vscode
Expand Down
30 changes: 10 additions & 20 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,52 +1,42 @@
<a name="8.1.2"></a>
## [8.1.2](https://github.com/nstudio/xplat/compare/8.1.1...8.1.2) (2020-01-24)

## [8.1.2](https://github.com/nstudio/xplat/compare/8.1.1...8.1.2) (2020-01-24)

### Features

* **nativescript:** 6.3 and scoping updates ([#177](https://github.com/nstudio/xplat/issues/177)) ([dd54238](https://github.com/nstudio/xplat/commit/dd54238))


- **nativescript:** 6.3 and scoping updates ([#177](https://github.com/nstudio/xplat/issues/177)) ([dd54238](https://github.com/nstudio/xplat/commit/dd54238))

<a name="8.1.1"></a>
## [8.1.1](https://github.com/nstudio/xplat/compare/8.0.15...8.1.1) (2020-01-05)

## [8.1.1](https://github.com/nstudio/xplat/compare/8.0.15...8.1.1) (2020-01-05)

### Features

* **electron:** support for v7 ([#172](https://github.com/nstudio/xplat/issues/172)) ([e328f7a](https://github.com/nstudio/xplat/commit/e328f7a))


- **electron:** support for v7 ([#172](https://github.com/nstudio/xplat/issues/172)) ([e328f7a](https://github.com/nstudio/xplat/commit/e328f7a))

<a name="8.0.15"></a>
## [8.0.15](https://github.com/nstudio/xplat/compare/8.0.13...8.0.15) (2019-12-02)

## [8.0.15](https://github.com/nstudio/xplat/compare/8.0.13...8.0.15) (2019-12-02)

### Bug Fixes

* **generators:** feature now properly supports groupByName workspaces ([fb8d096](https://github.com/nstudio/xplat/commit/fb8d096))


- **generators:** feature now properly supports groupByName workspaces ([fb8d096](https://github.com/nstudio/xplat/commit/fb8d096))

<a name="8.0.13"></a>
## [8.0.13](https://github.com/nstudio/xplat/compare/8.0.11...8.0.13) (2019-11-24)

## [8.0.13](https://github.com/nstudio/xplat/compare/8.0.11...8.0.13) (2019-11-24)

### Features

* **nativescript:** 6.2 migration ([6b0ca80](https://github.com/nstudio/xplat/commit/6b0ca80))


- **nativescript:** 6.2 migration ([6b0ca80](https://github.com/nstudio/xplat/commit/6b0ca80))

<a name="8.0.11"></a>
## [8.0.11](https://github.com/nstudio/xplat/compare/8.0.10...8.0.11) (2019-11-21)

## [8.0.11](https://github.com/nstudio/xplat/compare/8.0.10...8.0.11) (2019-11-21)

### Features

* **nativescript:** 6.2 support ([#165](https://github.com/nstudio/xplat/issues/165)) ([2c81cc2](https://github.com/nstudio/xplat/commit/2c81cc2))


- **nativescript:** 6.2 support ([#165](https://github.com/nstudio/xplat/issues/165)) ([2c81cc2](https://github.com/nstudio/xplat/commit/2c81cc2))

<a name="8.0.10"></a>

Expand Down
34 changes: 14 additions & 20 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,33 +91,27 @@ body

The type must be one of the following:

- build
- chore
- feat
- fix
- refactor
- style
- cleanup
- docs
- test
- chore

#### Scope

The scope must be one of the following:

- generators
- scripts
- angular
- electron
- ionic
- nativescript
- web
- elements
- helpers
- react
- vue
- build
- changelog
- contributing
- angular - anything Angular specific
- core - anything xplat core specific
- docs - anything related to docs infrastructure
- electron - anything Electron specific
- ionic - anything Ionic specific
- nativescript - anything NativeScript specific
- node - anything Node specific
- platform - anything platform specific
- testing - anything testing specific (e.g., jest or cypress)
- repo - anything related to managing the repo itself
- misc - misc stuff

#### Subject

Expand All @@ -126,7 +120,7 @@ The subject must contain a description of the change.
#### Example

```
feat(vue): application generator
feat(platform): vue application generator
`nx g @nstudio/vue:app myapp` adds a vue app
```
Expand Down
72 changes: 72 additions & 0 deletions docs/api-ionic-angular/schematics/feature.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# feature [hidden]

Create an Ionic Angular feature module configured for xplat projects and shared code.

## Usage

```bash
nx generate feature ...

```

## Options

### --adjustSandbox

Default: `false`

Type: `boolean`

Automatically add a button to link to the feature route. Supported on NativeScript only right now. Requires flags: --onlyProject --routing

### --createBase

Default: `false`

Type: `boolean`

Create base component for maximum code sharing.

### --name

Type: `string`

Feature name

### --onlyModule

Default: `false`

Type: `boolean`

Generate just the module and ignore the default component.

### --onlyProject

Default: `false`

Type: `boolean`

Generate for specified projects only and ignore shared code.

### --projects

Type: `string`

Project names

### --routing

Default: `false`

Type: `boolean`

Whether to generate routing support or not (Only when used with --onlyProject).

### --skipFormat

Default: `false`

Type: `boolean`

Skip formatting files
4 changes: 2 additions & 2 deletions docs/api-xplat/schematics/application.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ The prefix to apply to generated selectors.

### --routing

Default: `false`
Default: `true`

Type: `boolean`

Configure routing.
Use root routing module.

### --setupSandbox

Expand Down
22 changes: 18 additions & 4 deletions docs/xplat/getting-started/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,26 @@ yarn add --dev @nstudio/xplat
ng add @nstudio/xplat
```

# Generate apps
# Generate supporting architecture

After installing xplat tools, your default schematic collection should now be set to `@nstudio/xplat`.

The most common use case is to use the supporting xplat architecture. Initialize your workspace with the platforms you intend to develop apps with:

```
nx g init
```

After installing xplat tools, your default schematic collection should now be set to `@nstudio/xplat` allowing you to execute the following:
You will be prompted for which platforms to generate support for. You can optionally pass a collection of platforms:

```
nx g init --platforms web,nativescript
```

# Generate apps

```
nx generate app
nx g app
```

**Note:** If you're using an Nx workspace with any angular presets you may need to replace `nx` with `ng`. This also applies to the `nx serve appname` step.
Expand All @@ -66,7 +80,7 @@ Follow the prompts to generate the type of app you'd like:
If you would like to set your default schematics to anything other than `@nstudio/xplat` you can always execute app generators via the more verbose style:

```
nx generate @nstudio/xplat:app
nx g @nstudio/xplat:app
```

## Serving Application
Expand Down
Loading

0 comments on commit f5f05c6

Please sign in to comment.