How to use @seagull/libraries - 10 common examples

To help you get started, we’ve selected a few @seagull/libraries 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 / services / prepare.ts View on Github external
private createPagesFolder() {
    const { appFolder } = this.config
    const location = path.join(appFolder, 'dist', 'assets', 'pages')
    createFolderRecursive(location, this.fs)
  }
  private copyStaticFolder() {
github seagull-js / seagull / packages / build / src / services / prepare.ts View on Github external
private createBackendFolder() {
    const { appFolder } = this.config
    const location = path.join(appFolder, 'dist', 'assets', 'backend')
    createFolderRecursive(location, this.fs)
  }
  private createPagesFolder() {
github seagull-js / seagull / packages / mock-cloudwatchlogs / src / mock_cloudwatchlogs_fs.ts View on Github external
private ensureLogGroup = (name: string) => {
    const dir = pathModule.join(this.localFolder, name)
    const dirExists = this.fsModule.existsSync(dir)
    return !dirExists && createFolderRecursive(dir, this.fsModule)
  }
github seagull-js / seagull / packages / mock-s3 / src / mock-fs.ts View on Github external
private ensureBucket = (name: string) => {
    const dir = pathModule.join(this.localFolder, name)
    const dirExists = this.fsModule.existsSync(dir)
    return !dirExists && createFolderRecursive(dir, this.fsModule)
  }
github seagull-js / seagull / packages / commands-logging / src / write_log.ts View on Github external
constructor(params: WriteLogRequest) {
    super()
    const events = mapLogToEvent(params.log, params.logLevel)
    this.params = {
      logEvents: events,
      logGroupName: `/${getAppName()}/data-log`,
      logStreamName: createStreamName(params.logStreamName),
    }
  }
github seagull-js / seagull / packages / commands-logging / src / read_log.ts View on Github external
constructor(params: GetLogsRequest) {
    super()
    const groupName = {
      logGroupName: params.logGroupName || `/${getAppName()}/data-log`,
    }
    this.params = { ...params, ...groupName }
  }
github seagull-js / seagull / packages / commands-logging / src / write_logs.ts View on Github external
constructor(params: WriteLogsRequest) {
    super()
    const events = mapLogToEvents(params.logs, params.logLevel)
    this.params = {
      logEvents: events,
      logGroupName: `/${getAppName()}/data-log`,
      logStreamName: createStreamName(params.logStreamName),
    }
  }
github seagull-js / seagull / packages / commands-logging / src / add_log.ts View on Github external
constructor(params: AddLogRequest) {
    super()
    const events = mapLogToEvent(params.log, params.logLevel)
    this.params = {
      logEvents: events,
      logGroupName: `/${getAppName()}/data-log`,
      logStreamName: params.logStreamName,
      sequenceToken: params.sequenceToken,
    }
  }
github seagull-js / seagull / packages / commands-logging / src / create_stream.ts View on Github external
constructor(logStreamName: string) {
    super()
    this.logGroupName = `/${getAppName()}/data-log`
    this.logStreamName = createStreamName(logStreamName)
  }
github seagull-js / seagull / packages / build / src / services / prepare.ts View on Github external
private deleteDistFolder() {
    const { appFolder } = this.config
    const location = path.join(appFolder, 'dist')
    removeFolderRecursive(location, this.fs)
  }