@nx-go/nx-go
Advanced tools
Comparing version 2.0.0-beta.4 to 2.0.0-beta.5
{ | ||
"name": "@nx-go/nx-go", | ||
"version": "2.0.0-beta.4", | ||
"version": "2.0.0-beta.5", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "generators": "./generators.json", |
@@ -74,20 +74,16 @@ <div align="center"> | ||
Find the key `projects.<app-name>.architect.serve.options` and set the `cmd` parameter to `gow`, like so: | ||
Open the file `apps/<app-name>/project.json` and in the `targets.serve.options` object and set the `cmd` parameter to `gow` and the `cwd` parameter to `.`, like so: | ||
```json | ||
```json5 | ||
{ | ||
"projects": { | ||
"api": { | ||
"architect": { | ||
"serve": { | ||
"builder": "@nx-go/nx-go:serve", | ||
"options": { | ||
"cmd": "gow", | ||
"cwd": ".", // Set working dir to project root so it picks up changes in `libs/*` | ||
"main": "apps/api/main.go" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
targets: { | ||
serve: { | ||
executor: '@nx-go/nx-go:serve', | ||
options: { | ||
cmd: 'gow', // This is the cmd that will be used | ||
cwd: '.', // Set working dir to project root so it picks up changes in `libs/*` | ||
main: 'apps/api/main.go', | ||
}, | ||
}, | ||
}, | ||
} | ||
@@ -94,0 +90,0 @@ ``` |
@@ -7,3 +7,3 @@ "use strict"; | ||
const projectNames = (0, devkit_1.names)(options.name); | ||
const templateOptions = Object.assign(Object.assign(Object.assign({}, options), projectNames), { underscoreName: projectNames.fileName.split('-').join('_'), offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), template: '' }); | ||
const templateOptions = Object.assign(Object.assign(Object.assign({}, options), projectNames), { packageName: (0, devkit_1.names)(options.projectName).fileName.split('-').join('_'), offsetFromRoot: (0, devkit_1.offsetFromRoot)(options.projectRoot), template: '' }); | ||
(0, devkit_1.generateFiles)(tree, srcFolder, options.projectRoot, templateOptions); | ||
@@ -10,0 +10,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28820
152