Skip to content

Commit

Permalink
fix: use reporter from helpers-engine
Browse files Browse the repository at this point in the history
  • Loading branch information
varl committed Feb 6, 2019
1 parent 53e5b1b commit ef79104
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/cmds/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const fs = require('fs')

// support crew
const { collectFiles, whitelisted } = require('../files.js')
const log = require('../log.js')
const log = require('@dhis2/cli-helpers-engine').reporter

// heavy lifters
const prettify = require('../prettier.js')
Expand Down
3 changes: 2 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
const path = require('path')
const fs = require('fs')

const log = require('./log.js')
const log = require('@dhis2/cli-helpers-engine').reporter

const { readFile, writeFile } = require('./files.js')

function wipe_prop_cfg(repo) {
Expand Down
2 changes: 1 addition & 1 deletion src/files.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const fs = require('fs')
const path = require('path')

const log = require('./log.js')
const log = require('@dhis2/cli-helpers-engine').reporter

const whitelist = ['.js', '.json', '.css', '.scss', '.md', '.jsx']
const blacklist = ['node_modules', 'build', 'dist', 'target']
Expand Down
2 changes: 1 addition & 1 deletion src/git.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

const { execSync } = require('child_process')

const log = require('./log.js')
const log = require('@dhis2/cli-helpers-engine').reporter

function stage(files, dir) {
log.info(`Stage ${files.length} file(s).`)
Expand Down
23 changes: 0 additions & 23 deletions src/log.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/prettier.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const prettier = require('prettier')
const path = require('path')

const log = require('./log.js')
const log = require('@dhis2/cli-helpers-engine').reporter

const { readFile, writeFile } = require('./files.js')

Expand Down

0 comments on commit ef79104

Please sign in to comment.