-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gatsby): move gatsby plugin to main repo
- Loading branch information
Showing
98 changed files
with
4,361 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# build | ||
|
||
Build a Gatsby app | ||
|
||
Properties can be configured in angular.json when defining the executor, or when invoking it. | ||
|
||
## Properties | ||
|
||
### color | ||
|
||
Default: `true` | ||
|
||
Type: `boolean` | ||
|
||
Enable colored terminal output. | ||
|
||
### graphqlTracing | ||
|
||
Type: `boolean` | ||
|
||
Trace every graphql resolver, may have performance implications. | ||
|
||
### openTracingConfigFile | ||
|
||
Type: `string` | ||
|
||
Tracer configuration file (OpenTracing compatible). | ||
|
||
### prefixPaths | ||
|
||
Type: `boolean` | ||
|
||
Build site with link paths prefixed (set pathPrefix in your config). | ||
|
||
### profile | ||
|
||
Type: `boolean` | ||
|
||
Build site with react profiling. | ||
|
||
### uglify | ||
|
||
Default: `true` | ||
|
||
Type: `boolean` | ||
|
||
Build site without uglifying JS bundles (true by default). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# server | ||
|
||
Starts server for app | ||
|
||
Properties can be configured in angular.json when defining the executor, or when invoking it. | ||
|
||
## Properties | ||
|
||
### buildTarget | ||
|
||
Type: `string` | ||
|
||
Target which builds the application | ||
|
||
### host | ||
|
||
Default: `localhost` | ||
|
||
Type: `string` | ||
|
||
Host to listen on. | ||
|
||
### https | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
Serve using HTTPS. | ||
|
||
### open | ||
|
||
Type: `boolean` | ||
|
||
Open the site in your (default) browser for you. | ||
|
||
### port | ||
|
||
Default: `4200` | ||
|
||
Type: `number` | ||
|
||
Port to listen on. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
# application | ||
|
||
Create an application | ||
|
||
## Usage | ||
|
||
```bash | ||
nx generate application ... | ||
``` | ||
|
||
```bash | ||
nx g app ... # same | ||
``` | ||
|
||
By default, Nx will search for `application` in the default collection provisioned in `angular.json`. | ||
|
||
You can specify the collection explicitly as follows: | ||
|
||
```bash | ||
nx g @nrwl/gatsby:application ... | ||
``` | ||
|
||
Show what will be generated without writing to disk: | ||
|
||
```bash | ||
nx g application ... --dry-run | ||
``` | ||
|
||
## Options | ||
|
||
### directory | ||
|
||
Alias(es): d | ||
|
||
Type: `string` | ||
|
||
A directory where the project is placed | ||
|
||
### e2eTestRunner | ||
|
||
Default: `cypress` | ||
|
||
Type: `string` | ||
|
||
Possible values: `cypress`, `none` | ||
|
||
Adds the specified e2e test runner | ||
|
||
### js | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
Generate JavaScript files rather than TypeScript files | ||
|
||
### name | ||
|
||
Type: `string` | ||
|
||
### style | ||
|
||
Alias(es): s | ||
|
||
Default: `css` | ||
|
||
Type: `string` | ||
|
||
Possible values: `css`, `scss`, `styl`, `less`, `styled-components`, `@emotion/styled`, `none` | ||
|
||
The file extension to be used for style files. | ||
|
||
### tags | ||
|
||
Alias(es): t | ||
|
||
Type: `string` | ||
|
||
Add tags to the project (used for linting) | ||
|
||
### unitTestRunner | ||
|
||
Default: `jest` | ||
|
||
Type: `string` | ||
|
||
Possible values: `jest`, `none` | ||
|
||
Adds the specified unit test runner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
# component | ||
|
||
Create a component | ||
|
||
## Usage | ||
|
||
```bash | ||
nx generate component ... | ||
``` | ||
|
||
By default, Nx will search for `component` in the default collection provisioned in `angular.json`. | ||
|
||
You can specify the collection explicitly as follows: | ||
|
||
```bash | ||
nx g @nrwl/gatsby:component ... | ||
``` | ||
|
||
Show what will be generated without writing to disk: | ||
|
||
```bash | ||
nx g component ... --dry-run | ||
``` | ||
|
||
### Examples | ||
|
||
Generate a component in the mylib library: | ||
|
||
```bash | ||
nx g component my-component --project=mylib | ||
``` | ||
|
||
Generate a class component in the mylib library: | ||
|
||
```bash | ||
nx g component my-component --project=mylib --classComponent | ||
``` | ||
|
||
## Options | ||
|
||
### directory | ||
|
||
Alias(es): d | ||
|
||
Type: `string` | ||
|
||
Create the component under this directory (can be nested). | ||
|
||
### export | ||
|
||
Alias(es): e | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
When true, the component is exported from the project index.ts (if it exists). | ||
|
||
### flat | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
Create component at the source root rather than its own directory. | ||
|
||
### js | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
Generate JavaScript files rather than TypeScript files. | ||
|
||
### name | ||
|
||
Type: `string` | ||
|
||
The name of the component. | ||
|
||
### project | ||
|
||
Alias(es): p | ||
|
||
Type: `string` | ||
|
||
The name of the project. | ||
|
||
### skipTests | ||
|
||
Default: `false` | ||
|
||
Type: `boolean` | ||
|
||
When true, does not create "spec.ts" test files for the new component. | ||
|
||
### style | ||
|
||
Alias(es): s | ||
|
||
Default: `css` | ||
|
||
Type: `string` | ||
|
||
Possible values: `css`, `scss`, `styl`, `less`, `styled-components`, `@emotion/styled`, `none` | ||
|
||
The file extension to be used for style files. |
Oops, something went wrong.