UNPKG

@cavai/adonis-queue

Version:
15 lines (14 loc) 695 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const path_1 = require("path"); async function instructions(_projectRoot, app, sink) { // Copy over ExampleJob.ts new sink.files.MustacheFile(app.makePath('app'), 'Jobs/ExampleJob.ts', (0, path_1.join)(__dirname, 'templates/ExampleJob.txt')) .apply({ name: 'TestJob', filename: 'TestJob', useMustache: true }) .commit(); // Copy over Migration new sink.files.TemplateLiteralFile(app.makePath('database'), `migrations/${Date.now()}_queue_migration.ts`, (0, path_1.join)(__dirname, 'templates/queue_migration.txt')) .apply({}) .commit(); } exports.default = instructions;