Skip to content

Commit

Permalink
Rename Atom NPM to NPM
Browse files Browse the repository at this point in the history
  • Loading branch information
tomi77 committed Oct 2, 2016
1 parent 0670df0 commit 2abd80c
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 22 deletions.
16 changes: 8 additions & 8 deletions keymaps/atom-npm.cson
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
".platform-darwin":
"cmd-alt-n r": "atom-npm:run"
"cmd-alt-n i": "atom-npm:install-dependencies"
"cmd-alt-n u": "atom-npm:update-dependencies"
"cmd-alt-n o": "atom-npm:outdated"
"cmd-alt-n r": "npm:run"
"cmd-alt-n i": "npm:install-dependencies"
"cmd-alt-n u": "npm:update-dependencies"
"cmd-alt-n o": "npm:outdated"

".platform-linux, .platform-win32":
"ctrl-alt-n r": "atom-npm:run"
"ctrl-alt-n i": "atom-npm:install-dependencies"
"ctrl-alt-n u": "atom-npm:update-dependencies"
"ctrl-alt-n o": "atom-npm:outdated"
"ctrl-alt-n r": "npm:run"
"ctrl-alt-n i": "npm:install-dependencies"
"ctrl-alt-n u": "npm:update-dependencies"
"ctrl-alt-n o": "npm:outdated"
8 changes: 4 additions & 4 deletions lib/atom-npm.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ module.exports =

# Register command that toggles this view
@subscriptions.add atom.commands.add 'atom-workspace',
'atom-npm:run': () => getPackages().done (pkgs) -> new RunView pkgs
'atom-npm:outdated': () => getPackages().done (pkgs) -> new OutdatedView pkgs
'atom-npm:install-dependencies': () => getPackages().done (pkgs) -> new InstallDependenciesView pkgs
'atom-npm:update-dependencies': () => getPackages().done (pkgs) -> new UpdateDependenciesView pkgs
'npm:run': () => getPackages().done (pkgs) -> new RunView pkgs
'npm:outdated': () => getPackages().done (pkgs) -> new OutdatedView pkgs
'npm:install-dependencies': () => getPackages().done (pkgs) -> new InstallDependenciesView pkgs
'npm:update-dependencies': () => getPackages().done (pkgs) -> new UpdateDependenciesView pkgs

return

Expand Down
12 changes: 6 additions & 6 deletions menus/atom-npm.cson
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
"menu": [
"label": "Packages"
"submenu": [
"label": "Atom NPM"
"label": "NPM"
"submenu": [
"label": "Run"
"command": "atom-npm:run"
"label": "Run <script>"
"command": "npm:run"
,
"label": "Outdated"
"command": "atom-npm:outdated"
"command": "npm:outdated"
,
"label": "Install Dependencies"
"command": "atom-npm:install-dependencies"
"command": "npm:install-dependencies"
,
"label": "Update Dependencies"
"command": "atom-npm:update-dependencies"
"command": "npm:update-dependencies"
]
]
]
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
],
"activationCommands": {
"atom-workspace": [
"atom-npm:run",
"atom-npm:outdated",
"atom-npm:install-dependencies",
"atom-npm:update-dependencies"
"npm:run",
"npm:outdated",
"npm:install-dependencies",
"npm:update-dependencies"
]
},
"repository": "https://github.com/tomi77/atom-npm.git",
Expand Down

0 comments on commit 2abd80c

Please sign in to comment.