Coder Social home page Coder Social logo

strt's Introduction

strt

A file watching application restarter for your npm start command.

Features

  • Reliable - A development environment matching your production environment by running the same command you do in production (npm start).
  • Fast - Application restarts are super performant thanks to file watching from chokidar.
  • Simple - Offers sensible defaults for node.js applications.
  • Configurable - File watch & ignore patterns can be defined as well as being able to amend the command run.

Usage

strt can be installed locally or globally with either Yarn or npm.

Locally

yarn add strt --dev
npm install strt --dev

Once installed locally add a task to scripts within your package.json;

{
  "main": "index.js",
  "scripts": {
    "dev": "strt",
    "start": "node index.js"
  }
}

Now just run;

npm run dev

To start your application & begin watching for changes.

Globally

yarn global add strt
npm install --global strt

Once installed globally you can run strt on the command line from your application root to start watching for changes.

Options

--command (-c) [value] Command to run on file change (defaults to "npm start")

--files   (-f) [value] Glob pattern of files to watch for changes (defaults to ".")

--help    (-h)         Output usage information

--ignore  (-i) [value] Glob pattern of files to ignore (defaults to "node_modules")

--version (-v)         Output the version number

Contributing

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Link the package to the global module directory: npm link
  3. Within the module you want to test your local development instance of strt, just link it to the dependencies: npm link strt. Your local version of strt will now be used.

License

Released under the MIT license: opensource.org/licenses/MIT

strt's People

Contributors

chrisdwheatley avatar

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.