template-to-file

a atom package use undescrore.tempalte transform template file to file when save

huangjinlin

608

0

0.3.0

MIT

GitHub

atom-template-to-file

a atom package use undescrore.tempalte transform template file to file when save

features

installation

apm install template-to-file

create

# command palette
Ctrl+Shift+P
input "Generate Package"

debug

#open devtool
Ctrl+Shift+I
#reload
Ctrl+Shift+F5/window reload(in command pannel)/Ctrl+R(in devtool)
#clear console
Ctrl+L(in devtool)

publish

# first time
git tag -a v0.1.0 -m "release 0.1.0 version"
git push origin --tags
apm publish minor
# other time
apm publish minor

resolve problem

1.how to active when init remove activationCommands in package.json

"activationCommands": {
  "atom-workspace": "template-to-file:toggle"
},

2.atom.notifications.addErrorgenerate error

try{

}catch(e){
-  atom.notifications.addError('error', {detail: e.toString(), dismissable: true});
+  throw e
}

refer to