# frontend-driver

> A driver for multiple frontend projects with individual gruntfiles and package.json.

Latest version **1.4.0** (published 2016-12-07) · 0 weekly downloads

## Install

```sh
npm install frontend-driver
pnpm add frontend-driver
yarn add frontend-driver
bun add frontend-driver
```

Provides the command `frontend-driver`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2016-12-07 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Daniel Franklin |
| Maintainers | dfranklin |

## Links

- npm: https://www.npmjs.com/package/frontend-driver
- Repository: https://github.com/DouganRedhammer/Frontend-Driver
- Homepage: https://github.com/DouganRedhammer/Frontend-Driver#readme
- Issues: https://github.com/DouganRedhammer/Frontend-Driver/issues
- npm.io page: https://npm.io/package/frontend-driver

## Dependencies (3)

- [q](https://npm.io/package/q.md) ^1.4.1
- [yargs](https://npm.io/package/yargs.md) ^3.9.0
- [shelljs](https://npm.io/package/shelljs.md) ^0.4.0

## Recent versions

- 1.4.0 (latest) — 2016-12-07
- 1.3.0 — 2016-10-18
- 1.2.0 — 2016-06-09
- 1.1.0 — 2016-06-08
- 1.0.0 — 2016-04-21

## README

# Frontend-Driver
A node utility to facilitate installing dependencies and building multiple frontend projects.  
Walks through all directories in the project directory. Frontend-driver must be called from the project root directory, in this case projects/
```
projects
│
└───Project1
    │  bower.json
    │  Guntfile.js
    │  package.json
    │  src
└───Project2
    │  bower.json
    │  Guntfile.js
    │  package.json
    │  src
└───Project3
    │  bower.json
    │  Guntfile.js
    │  package.json
    │  src
```


## Dependencies
* q
* shelljs
* yargs

## Installation

npm install -g frontend-driver

## Usage
 Runs npm install on all frontend projects.
````javascript
$ frontend-driver install 
````

 Runs npm install and bower install on all frontend projects.
````javascript
$ frontend-driver install --node --bower
````

 Runs npm install and bower install on all frontend projects synchronously.
````javascript
$ frontend-driver install --node --bower -s
````

 Runs npm install on all frontend project directories located within the path specified.
````javascript
$ frontend-driver install --path=C:\projects\web\FrontEnd\  
````
Runs grunt dev on all frontend project directories located within the directory frontend-driver was called from.
````javascript
$ frontend-driver build --env=dev
````
Runs grunt dev on all frontend project directories located within the path specified.
````javascript
$ frontend-driver build --env=dev --path=C:\\projects\\web\FrontEnd\\   
````

Runs grunt dev \-\-force on all frontend project directories and labels the output with the directory name.
````javascript
$ frontend-driver build --env=dev -l -f
````

Runs grunt dev \-\-force synchronously on all frontend project directories.
````javascript
$ frontend-driver build --env=dev -f -s 
````

## Options

**\-\-path**  
(Optional) Path to the Frontend directory

**\-\-env [string]**  
Build environment. (The grunt task to run)

**\-\-node [boolean] [default: true]** (Optional)  
Install node modules. Install only.
                                                       
**\-\-bower [boolean] [default: true]** (Optional)  
Install bower components. Install only.
                                                       
**-l, \-\-label [boolean] [default: true]** (Optional)  
Label output with the folder name.
                                                       
**-f, \-\-force [boolean] [default: true]** (Optional)  
Adds the force command to all Grunt tasks. Build only.

## License

MIT License

Copyright (c) 2016 Daniel Franklin

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
_Source: https://npm.io/package/frontend-driver · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
