UNPKG

396 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 'ci/*.js',
18 'lib/.*.bud',
19 'example/*.js',
20 'doc/mocks/*.js',
21 'test/.*.bud'
22 ], {
23 ignore: [
24 'lib/index.js'
25 ]
26 })
27], true)