@highpoint/babel-plugin-meta-html
Populates meta-html references
Last updated a year ago by jkrehm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @highpoint/babel-plugin-meta-html 
SYNC missed versions from official npm registry.

Meta-HTML Babel Plugin

Replaces PeopleSoft meta-HTML found in JavaScript with values from PeopleSoft.

This is useful when developing JavaScript locally.

For example:

const message = '%Message(175, 5)';

will become

const message = 'Custom Properties';

Installation

npm install @highpoint/babel-plugin-meta-html

Usage

Copy .env-sample to your root directory and name it .env. Then populate it with values for your PeopleSoft environment. See "Environment Variables" below.

Add the plugin to your .babelrc file.

Simple example:

{
  "env": {
    "development": {
      "plugins": [
        "@highpoint/meta-html"
      ]
    }
  }
}

Advanced example:

{
  "env": {
    "development": {
      "plugins": [
          [
            "@highpoint/meta-html", {
              "cacheDirectory": "tmp",
              "cacheTTL": 600
            }
          ]
      ]
    }
  }
}

Options

  • cacheDirectory: Defaults to node_modules/.cache/babel-plugin-meta-html. Set to false to disable caching.
  • cacheTTL: Cache's time-to-live value, in seconds. Values older than this will be refreshed. Defaults to 86,400 seconds (one day).

Environment Variables

Variable Example
PS_HOSTNAME ps.example.com
PS_ENVIRONMENT csdev
PS_NODE SA
PS_USERNAME username
PS_PASSWORD password1

Current Tags

  • 3.0.0                                ...           latest (a year ago)

8 Versions

  • 3.0.0                                ...           a year ago
  • 2.0.0                                ...           a year ago
  • 1.0.0                                ...           a year ago
  • 0.2.2                                ...           2 years ago
  • 0.2.1                                ...           2 years ago
  • 0.2.0                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
  • 0.1.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 8
Last Month 8
Dependencies (5)
Dev Dependencies (11)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |