Beispiel #1
0
  async build () {
    if (process.env.SKIP_BUILD) {
      log.info('SKIP_BUILD environment variable is true, skipping "build" task')
      return
    }
    if (process.env.DRY_RUN) {
      log.debug('build')
      return
    }

    const start = process.hrtime()

    const asciidoctorCoreDependency = {
      user: this.asciidoctorCoreUser,
      repo: this.asciidoctorCoreRepo,
      version: this.asciidoctorCoreVersion,
      target: this.asciidoctorCoreTarget
    }

    bfs.mkdirsSync('build/css')
    await rebuild(asciidoctorCoreDependency, this.environments)
    generateFlavors(this.asciidoctorCoreTarget, this.environments)
    await uglifyModule.uglify()
    log.success(`Done in ${process.hrtime(start)[0]} s`)
  }
Beispiel #2
0
;(async () => {
  await builderModule.build()
  runTest()
  copyToDist(['browser', 'node', 'graalvm'])
  log.success(`Done in ${process.hrtime(start)[0]} s`)
})()
 ], function () {
   log.success('Done in ' + process.hrtime(start)[0] + 's');
   typeof callback === 'function' && callback();
 });