# grunt-gen-dpdjs

> Manually generate dpdjs in Deployd Framework as a grunt task. Mostly useful for UI packaging and deployment

Latest version **0.1.2** (published 2017-01-21) · 0 weekly downloads

## Install

```sh
npm install grunt-gen-dpdjs
pnpm add grunt-gen-dpdjs
yarn add grunt-gen-dpdjs
bun add grunt-gen-dpdjs
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2017-01-21 |
| First published | 2017-01-21 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | kechol, Moorthi PV |
| Maintainers | kechol, Moorthi PV |
| Keywords | deployd, dpdjs, nodejs, Nodejs REST |

## Links

- npm: https://www.npmjs.com/package/grunt-gen-dpdjs
- Repository: https://github.com/moorthi07/grunt-gen-dpdjs
- Homepage: https://github.com/moorthi07/grunt-gen-dpdjs#readme
- Issues: https://github.com/moorthi07/grunt-gen-dpdjs/issues
- npm.io page: https://npm.io/package/grunt-gen-dpdjs

## Recent versions

- 0.1.2 (latest) — 2017-01-21

## README

#Forked from
"https://github.com/Kechol/grunt-dpdjs"

# grunt-dpdjs

This task generate local dpd.js file for deployd.

Update:
Manually generate dpdjs in Deployd Framework as a grunt task. Mostly useful for UI packaging and deployment

Some deployd packages like 'dpd-fileupload' need the deployd server process to be passed as parameter to get env variables.
This package is modified to start the deployd server.

NOTE: While running 'Grunt' , this might through 'cannot connect to  database error', which can be ignored as dpdjs is created without any dependencies to the database.

## Getting Started
This plugin requires Grunt `>= 0.4.0`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-dpdjs --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-dpdjs');
```

## The "dpdjs" task

### Overview
In your project's Gruntfile, add a section named `dpdjs` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  dpdjs: {
    options: {
        serverPath: './',
        dest: 'tmp/dpd.js'
    }
  },
});
```

### Options

#### options.serverPath
Type: `String`
Default value: `'./'`

Base path for find `resources` dir.

#### options.dest
Type: `String`
Default value: `'public/js/dpd.js'`

A Path to distribute dpd.js.


## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

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