Git Product home page Git Product logo

cross-run's Introduction

cross-run

Unix CI Modern Node

[DEPRECATED] cross-env now supports npm scripts, please use it instead

Like cross-env, but able to run npm scripts.

It prepends all npm paths like node_modules/.bin to PATH before executing provided script.

Why?

Prepending npm binary paths to PATH allows shell-scripting outside of JSON file.

This package follows the mindset of scripty but prefers to not use npm run at all.

Installation

npm install -g cross-run

Usage

First of all, you can use it, just like cross-env:

{
  "scripts": {
    "build": "run NODE_ENV=production webpack --config build/webpack.config.js"
  }
}

But you can use the same command directly from command line:

run NODE_ENV=production webpack --config build/webpack.config.js

You can put the same command as above to script/build and it cross-platform with:

run scripts/build

LICENSE

MIT

cross-run's People

Contributors

sheerun avatar nogsmpls avatar alonbardavid avatar amilajack avatar inyono avatar marcioj avatar naholyr avatar nkbt avatar toddbluhm avatar zhuangya avatar jiangyuan avatar

Stargazers

minhduc avatar Jon avatar Martin van Driel avatar 文蔺 avatar Daniel Sam avatar Jason Miller avatar Fritz Lin avatar James Edward Lewis II avatar Kris Kaczor avatar  avatar

Watchers

 avatar James Cloos avatar  avatar

Forkers

nguyenlam00

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.