3.1.0 • Published 6 years ago

projector-cli v3.1.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

projector-cli

Command-line tool for running Projector scripts

Installation

First, make sure you have Yarn and Node 8 (or above) installed.

Then install the following in your project:

yarn add --dev projector-cli

Usage

Create a projector.js file

exports.build = async () => {
  console.log('Hello World!');
};

Run the following command

yarn run -s projector ./path/to/projector.js build

You should see something like this

$ "/Users/me/projects/repo/node_modules/.bin/projector" "./projector.js" "build"
Hello World!
Done in 0.70s.

You can store this command inside of package.json#scripts

{
  "name": "project-name",
  "version": "1.0.0",
  "scripts": {
    "build": "projector ./projector.js build"
  },
  "devDependencies": {
    "projector": "*"
  }
}
3.1.0

6 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.0

7 years ago

1.0.0

7 years ago