• Packages
  • Themes
  • Documentation
  • Blog
  • Discuss
Sign in

atom-npm-task-starter

Starts npm tasks on project open.
HankSmith22
0.6.0 278
1
  • Repo
  • Bugs
  • Versions
  • License
Flag as spam or malicious

atom-npm-task-starter

Installs! Version! License

Starts npm tasks on project open in Atom IDE. Mimicks the startup task functionality of IntelliJ Ultimate and the NPM task runner on project open in Visual Studio.

How it works

Parses your package.json for any scripts that prefix with "atom-npm-task-starter" and executes that script with NPM run.

Usage

Prefix a script inside your package.json with "atom-npm-task-starter".


Basic example

Watches every file with onchange and executes an echo when a file is changed:

"scripts": {
  "atom-npm-task-starter:watch:echo": "onchange \"*.*\" -v -w -d 500 -- echo onchangehappened"
},

Less/scss/sass example

Watches less files with onchange in a directory and compiles them with less when changed:

"scripts": {
  "build:less": "lessc scripts/css/less/style.less scripts/css/style.css",
  "atom-npm-task-starter:watch:less": "onchange \"scripts/css/less/*.less\" -v -w -d 500 -- npm run build:less"
},

nodemon example

Run a local install of nodemon on project open in windows:

"scripts": {
  "atom-npm-task-starter:demon": "set NODE_ENV=development&& nodemon \"./bin/www\" 127.0.0.1 3000"
},

Options inside Atom IDE

taskKey

Customize the key which triggers the running of tasks.

showTaskOutput

Displays the task output in the Atom IDE dev console.

showDebugOutput

Displays debug output in the Atom IDE dev console.

Misc

  • Untested on Linux

I think this package is bad news.

Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.

  • Terms of Use
  • Privacy
  • Code of Conduct
  • Releases
  • FAQ
  • Contact
with by