Skip to content

Commit

Permalink
DXJ-114 Fluence CLI: Per-project dependency management
Browse files Browse the repository at this point in the history
* feat: per-project dependency management

* fix: dependency install flags text and README

* feat: add appTSPath and appJSPAth properties to fluence.yaml

* fix: review
  • Loading branch information
shamsartem authored Sep 30, 2022
1 parent e766915 commit 5546006
Show file tree
Hide file tree
Showing 22 changed files with 1,583 additions and 752 deletions.
564 changes: 552 additions & 12 deletions README.md

Large diffs are not rendered by default.

14 changes: 10 additions & 4 deletions src/commands/aqua.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ import { Command, Flags } from "@oclif/core";
import chokidar from "chokidar";

import { initAquaCli } from "../lib/aquaCli";
import { initFluenceConfig } from "../lib/configs/project/fluence";
import { NO_INPUT_FLAG } from "../lib/const";
import { ensureAquaImports } from "../lib/helpers/aquaImports";
import { getIsInteractive } from "../lib/helpers/getIsInteractive";
import { ensureFluenceAquaDir } from "../lib/paths";
import { input } from "../lib/prompt";

export default class Aqua extends Command {
Expand Down Expand Up @@ -100,18 +101,23 @@ export default class Aqua extends Command {
"Enter path to the output directory. Will be created if it doesn't exists",
flagName: "input",
}),
import: importsFromFlags,
...aquaCliOptionalFlags
} = flags;

const fluenceConfig = await initFluenceConfig(this);

const aquaCliFlags = {
input: inputFromFlags,
output,
import: [...(importsFromFlags ?? []), await ensureFluenceAquaDir()],
...aquaCliOptionalFlags,
import: await ensureAquaImports({
commandObj: this,
flags,
fluenceConfig,
}),
};

const aquaCli = await initAquaCli(this);
const aquaCli = await initAquaCli(this, fluenceConfig);

const compile = (): Promise<string> =>
aquaCli({ flags: aquaCliFlags }, "Compiling");
Expand Down
297 changes: 0 additions & 297 deletions src/commands/dependency.ts

This file was deleted.

Loading

0 comments on commit 5546006

Please sign in to comment.