Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 1x 2x 2x 2x 2x 2x 1x 2x 2x 2x 2x 2x 1x 1x 1x 1x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 7x 1x 1x 1x 1x 1x 1x 1x 1x | "use strict"; import ae86 from './ae86.js'; import bag from 'bagofcli'; import p from 'path'; const DIRNAME = p.dirname(import.meta.url).replace('file://', ''); function _init() { bag.logStepHeading('Creating example AE86 project'); new ae86().init(bag.exit); } function _gen(args) { args = args || {}; bag.logStepHeading('Generating website'); new ae86({ outDir: args.outDir }).generate(bag.exit); } function _watch(args) { args = args || {}; bag.logStepHeading('Watching for changes and automatically regenerating website'); new ae86({ outDir: args.outDir }).watch(bag.exit); } function _clean(args) { args = args || {}; bag.logStepHeading('Removing website'); new ae86({ outDir: args.outDir }).clean(bag.exit); } /** * Execute AE86 CLI. */ function exec() { const actions = { commands: { init: { action: _init }, gen: { action: _gen }, watch: { action: _watch }, drift: { action: _watch }, clean: { action: _clean } } }; bag.command(DIRNAME, actions); } const exports = { exec: exec }; export { exports as default }; |