@politico/interactive-bin
JS Utilities used in the creation and distribution of interactive news at POLITICO.
Installing Globally
To install globally:
npm install -g @politico/interactive-bin
Then you can use its commands by running:
pib <command> <...arguments>
Installing In A Project
If you'd prefer to install it on a per project basis you can install it:
npm install @politico/interactive-bin --save-dev
Using The Scripts
Include the following scripts in your project's package.json
:
{
"start": "pib start",
"build": "pib build",
"preview": "pib preview",
"api": "pib api",
"pub": "pib publish",
"phelp": "pib --help"
}
Then you can run the commands using npm run
or yarn
from any directory in your project and be confident that the pathing will work correctly.
More docs to come...