How to use @seagull/commands - 7 common examples

To help you get started, we’ve selected a few @seagull/commands examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github seagull-js / seagull / packages / build / src / compile / typescript.ts View on Github external
async execute() {
    const tsBlob = await new FS.ReadFile(this.srcFile).execute()
    const result = ts.transpileModule(tsBlob, this.tsconfig)
    const { diagnostics, outputText } = result
    // TODO: handle diagnostics
    await new FS.WriteFile(this.dstFile, outputText).execute()
  }
github seagull-js / seagull / packages / build / src / compile / typescript.ts View on Github external
async execute() {
    const tsBlob = await new FS.ReadFile(this.srcFile).execute()
    const result = ts.transpileModule(tsBlob, this.tsconfig)
    const { diagnostics, outputText } = result
    // TODO: handle diagnostics
    await new FS.WriteFile(this.dstFile, outputText).execute()
  }
github seagull-js / seagull / packages / build / src / compile / typescript.ts View on Github external
async revert() {
    await new FS.DeleteFile(this.dstFile).execute()
  }
}
github seagull-js / seagull / packages / build / src / generate / server.ts View on Github external
async revert() {
    await new FS.DeleteFile(this.dstFile).execute()
  }
}
github seagull-js / seagull / packages / build / src / bundle / backend.ts View on Github external
async revert() {
    await new FS.DeleteFile(this.dstFile).execute()
  }
github seagull-js / seagull / packages / build / src / bundle / backend.ts View on Github external
async execute() {
    const stream = this.browserifyInstance.bundle()
    const content = await sts(stream)
    await new FS.WriteFile(this.dstFile, content).execute()
  }
github seagull-js / seagull / packages / build / src / generate / server.ts View on Github external
async execute() {
    const content = code
    await new FS.WriteFile(this.dstFile, content).execute()
  }

@seagull/commands

Side Effect Functions implemented as Command Pattern for the Seagull Framework

LGPL-3.0
Latest version published 1 year ago

Package Health Score

52 / 100
Full package analysis