1 |
|
2 |
|
3 | /**
|
4 | * Format files.
|
5 | */
|
6 |
|
7 |
|
8 |
|
9 | process.chdir(`${__dirname}/..`)
|
10 |
|
11 | const { runTasks } = require('ape-tasking')
|
12 | const { formatJs } = require('ape-formatting')
|
13 |
|
14 | runTasks('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)
|