UNPKG

381 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * Format files.
5 */
6
7'use strict'
8
9process.chdir(`${__dirname}/..`)
10
11const { runTasks } = require('ape-tasking')
12const { formatJs } = require('ape-formatting')
13
14runTasks('format', [
15 () => formatJs([
16 '.*.bud',
17 'lib/.*.bud',
18 'example/*.js',
19 'doc/mocks/*.js',
20 'test/.*.bud'
21 ], {
22 ignore: [
23 'lib/index.js'
24 ]
25 })
26], true)