@nx-go/nx-go
Advanced tools
Comparing version 1.4.0 to 1.5.0
{ | ||
"name": "@nx-go/nx-go", | ||
"version": "1.4.0", | ||
"version": "1.5.0", | ||
"main": "src/index.js", | ||
@@ -5,0 +5,0 @@ "schematics": "./collection.json", |
@@ -73,3 +73,3 @@ <div align="center"> | ||
"cmd": "gow", | ||
"main": "apps/api/src/main.go" | ||
"main": "apps/api/main.go" | ||
} | ||
@@ -76,0 +76,0 @@ } |
import { BuilderContext, BuilderOutput } from '@angular-devkit/architect'; | ||
import { Observable } from 'rxjs'; | ||
import { BuildBuilderSchema } from './schema'; | ||
export declare function runBuilder(options: BuildBuilderSchema, context: BuilderContext): Observable<BuilderOutput>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<BuildBuilderSchema>; | ||
import { LintBuilderSchema } from './schema'; | ||
export declare function runBuilder(options: LintBuilderSchema, context: BuilderContext): Observable<BuilderOutput>; | ||
declare const _default: import("@angular-devkit/architect/src/internal").Builder<LintBuilderSchema>; | ||
export default _default; |
@@ -11,5 +11,5 @@ "use strict"; | ||
return rxjs_1.from(context.getProjectMetadata((_a = context === null || context === void 0 ? void 0 : context.target) === null || _a === void 0 ? void 0 : _a.project)).pipe(operators_1.map((project) => { | ||
const root = project.root; | ||
const sources = `${root}/**/*.go`; | ||
return go_utils_1.runGoCommand(context, 'fmt', [sources]); | ||
const cwd = `${project.root}`; | ||
const sources = `./...`; | ||
return go_utils_1.runGoCommand(context, 'fmt', [sources], { cwd }); | ||
})); | ||
@@ -16,0 +16,0 @@ } |
@@ -5,5 +5,5 @@ import { Architect } from '@angular-devkit/architect' | ||
import { join } from 'path' | ||
import { BuildBuilderSchema } from './schema' | ||
import { LintBuilderSchema } from './schema' | ||
const options: BuildBuilderSchema = {} | ||
const options: LintBuilderSchema = {} | ||
@@ -10,0 +10,0 @@ describe('Command Runner Builder', () => { |
import { JsonObject } from '@angular-devkit/core' | ||
export interface BuildBuilderSchema extends JsonObject { | ||
outputPath: string | ||
main: string | ||
} | ||
export interface LintBuilderSchema extends JsonObject {} |
@@ -32,3 +32,3 @@ "use strict"; | ||
const appProjectRoot = normalizedOptions.projectRoot; | ||
const sourceRoot = `${appProjectRoot}/src`; | ||
const sourceRoot = appProjectRoot; | ||
const project = workspace.projects.add({ | ||
@@ -35,0 +35,0 @@ name: normalizedOptions.projectName, |
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
28870
470