1.4.3 • Published 12 months ago

youboralib-util v1.4.3

Weekly downloads
27
License
MIT
Repository
bitbucket
Last release
12 months ago

util-plugins-js

js-standard-style

This package contains certain utilities to plugin building and developing, can be used to build manifests and create deployable folders.

Install

npm install --save-dev youboralib-util

Usage

var yuitl = require('youboralib-util')
yutil.manifest(options) // Will create a manifest.json file with source code analyzed
yutil.deployable(options) // Will create a manifest.json file with source code analyzed

You can also use the console:

$ ./node_modules/.bin/youboralib-util manifest
$ ./node_modules/.bin/youboralib-util deployable

Console commands will use default values.

Manifest

manifest receives an options object, that can receive:

  • output: Name of the output file. Default: 'manifest.json'.
  • package: Path to the package.json file of the adapter. Default: './package.json'.
  • adapter: Path to the adapter file. Default: './src/adapter.js'.
  • adsAdapters: Path to ads adapters folder Default: './src/ads/'.
  • callback: A function to be called when the script finishes. Default: null.

Generates a manifest.json file, analyzing the provided files.

Deployable

deployable receives an options object, that can receive:

Generates /deploy/ folder with files ready to deploy.

License

license receives an options object, that can receive:

  • package: Path to the package.json file or the parsed content of the file. Default: './package.json'.

Returns (or prints in console) the license banner for webpack.

1.4.3

12 months ago

1.4.2

1 year ago

1.4.1

4 years ago

1.4.0

5 years ago

1.3.4

5 years ago

1.3.3

6 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago