Skip to content

Commit

Permalink
feat: stop auto-install of prettier and other config files (#29)
Browse files Browse the repository at this point in the history
* feat: stop auto-install of prettier and other config files

* docs: update readme
  • Loading branch information
amcgee authored and varl committed Mar 18, 2019
1 parent c04d406 commit 8c030b1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ d2-style --help
d2-style js --help
d2-style js check --help
d2-style js apply --help
d2-style js install --help
```

## Setup for JavaScript project
Expand Down
4 changes: 0 additions & 4 deletions src/cmds/js_cmds/apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ const log = require('@dhis2/cli-helpers-engine').reporter
const { apply_fmt } = require('../../prettier.js')
const { stage_files, staged_files } = require('../../git.js')

const configure = require('../../config.js')

exports.command = 'apply [files..]'

exports.describe = 'Apply JS format.'
Expand Down Expand Up @@ -53,8 +51,6 @@ exports.handler = argv => {
}
}

configure(root_dir)

if (stage) {
const stagedFiles = stage_files(prettyFiles, root_dir)
log.debug('Staged files', stagedFiles)
Expand Down
7 changes: 7 additions & 0 deletions src/cmds/js_cmds/install.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const configure = require('../../config');

exports.command = "install"
exports.describe = "Install javascript tool configurations for use by IDE plugins"
exports.handler = () => {
configure(process.cwd())
}

0 comments on commit 8c030b1

Please sign in to comment.