Skip to content

Commit

Permalink
See #18. Force install of Coffee-Formatter for testing.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Dec 28, 2014
1 parent 220fc76 commit c9ede3d
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ before_install:
- brew install uncrustify
# PHP
# - pear install PHP_Beautifier-beta
# CoffeeScript
- npm install coffee-formatter
1 change: 1 addition & 0 deletions lib/beautify.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -364,5 +364,6 @@ plugin.configDefaults = _.merge(
plugin.activate = ->
handleSaveEvent()
plugin.subscribe atom.config.observe("atom-beautify.beautifyOnSave", handleSaveEvent)
atom.workspaceView.command "beautify", beautify
atom.workspaceView.command "beautify:editor", beautify
atom.workspaceView.command "beautify:file", beautifyFile
4 changes: 2 additions & 2 deletions lib/options.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,13 @@ module.exports =
strip ?= require("strip-json-comments")
externalOptions = JSON.parse(strip(contents))
catch e
console.log "Failed parsing config as JSON: " + configPath
# console.log "Failed parsing config as JSON: " + configPath
# Attempt as YAML
try
yaml ?= require("js-yaml")
externalOptions = yaml.safeLoad(contents)
catch e
console.log "Failed parsing config as YAML: " + configPath
console.log "Failed parsing config as YAML and JSON: " + configPath
externalOptions = {}
else
externalOptions = {}
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"typescript-formatter": "~0.1.4"
},
"activationEvents": [
"beautify",
"beautify:editor",
"beautify:file",
"core:save",
Expand Down

0 comments on commit c9ede3d

Please sign in to comment.