Giter Club home page Giter Club logo

webdash-npm-scripts's Introduction

Webdash NPM Scripts

Run your frequently used npm scripts straight from the dashboard using one-click buttons.

npm install --save-dev webdash-npm-scripts

NPM Scripts preview

Features

Run your npm scripts straight from the dashboard using one-click buttons.

  • Quick-access your top 3 scripts
  • Access secondary scripts from dropdown
  • Cancel long running tasks
  • View command output

Configuration

This plugin creates 3 buttons for the first 3 scripts in your package.json and tosses the rest in a dropdown.

You can control if a command should end up as a button or in the list by rearranging the scripts in your package.json

simply add "serverScripts": ["start", "dev"] to root of your webdash.json

you can see output of tasks in terminal

Contributing

this project uses standard js for coding style, make sure to run npm run lint or yarn lint before commiting changes

Enjoying webdash?

Say Hi on Twitter: @JoubranJad

webdash-npm-scripts's People

Contributors

bardiarastin avatar jadjoubran avatar nicolesaidy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

webdash-npm-scripts's Issues

support tasks with long running scripts

Hello, i just installed webdash on one of my projects bootstrapped with create react app and i faced two issues:
1: running the start task the start button always keeps loading while i want my script to keep running (shows loading indicator)
suggestion as a user: for long running tasks show an ✔icon for status that this is running successfully
2: when i want to stop the process of watching my files compiling and ... there is no option to do that
suggestion: on click on ✔icon prompt user to stop that process

a problem for these suggestions is that i don't have any idea of how we could realize which scripts are long running tasks i would be happy to send a PR if you have any ideas ❤️

Error: spawn npm ENOENT

I got this error when I try to launch a script

λ npx webdash serve
F:\Bibu\Perso\myproj\api\node_modules\webdash\scripts\index.js
Webdash running on http://localhost:3456!
events.js:137
      throw er; // Unhandled 'error' event
      ^

Error: spawn npm ENOENT
    at _errnoException (util.js:1003:13)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
    at onErrorNT (internal/child_process.js:389:16)
    at process._tickCallback (internal/process/next_tick.js:152:19)

windows 10
node: v9.4.0
yarn: v1.5.1
npm: v5.6.0
webdash: v1.3.4
webdash-package-json: v1.3.1

Refreshing the dashboard with background tasks

Hey,

It's me again 😄

One little problem (is it ?) is when running a background task (like dev server) and then refreshing the dashboard, the task doesn't seem to be running anymore. Even if it's still running in the background. The only way to kill it is manually with the pid or exiting webdash (not a problem)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.