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';npm install @highpoint/babel-plugin-meta-html
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
}
]
]
}
}
}cacheDirectory: Defaults tonode_modules/.cache/babel-plugin-meta-html. Set tofalseto 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).
| Variable | Example |
|---|---|
| PS_HOSTNAME | ps.example.com |
| PS_ENVIRONMENT | csdev |
| PS_NODE | SA |
| PS_USERNAME | username |
| PS_PASSWORD | password1 |