Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/newamericafoundation/na-cli

a CLI scaffolding tool to quickly create new data viz projects
https://github.com/newamericafoundation/na-cli

Last synced: 12 days ago
JSON representation

a CLI scaffolding tool to quickly create new data viz projects

Awesome Lists containing this project

README

        

# New America's Data Viz Project Generator

### What it does

- Creates a new repo in the newamerica-graphics Github organization with your project name
- Clones the [data viz boilerplate](https://github.com/newamerica-graphics/data-viz-boilerplate) into a local folder
- Changes the remote of the local repo to the new repo in newamerica-graphics
- Replaces the project name in the `package.json` file
- Pushes the code to the new remote
- Installs local dependencies

### Installation

Things you need:

- git and node
- write access to the newamerica-graphics organization

Use with [npx](https://www.npmjs.com/package/npx) is recommended so that you don't have install anything globally or worry about keeping it up to date. But if you really want to install the package, you can use `npm install -g @newamerica/na-cli`.

### Usage

```
Usage: na-cli [command] [options]

Commands:
setup Scaffold a new data viz project with specified slug

Options:
-d, --directory an optional directory, defaults to current directory if omitted
-v, --version output the version number
-h, --help output usage information
```

### Example usage with npx
Note: npx does not require you to install the package.

```
npx @newamerica/na-cli na-cli setup nann_network_research -d ~/code
```