eso-manifest
Generates a manifest file for Elder Scrolls Online.
Available:- npm - Latest stable
- git - Sources and deployment
- esoui - Sources published for visibility.
Install
Code:
npm install -g eso-manifest
Command Line- Save configuration to `example-config.json`
Code:
{
"Title": "Addon Name",
"APIVersion": "100026",
"AddOnVersion": 1,
"Description": "Text description of the addon",
"Author": "ME!",
"SavedVariables": "SavedVars1 SavedVars2",
"DependsOn": "DependencyA DependencyB",
"OptionalDependsOn": "DependencyC DependencyD",
"Files": [
"lang/$(language).lua",
"addOnFile.lua",
"file.xml"
]
}
- From a terminal run:
Code:
eso-manifest --manifestFileName=addon.txt --inputJSONFileName=example-config.json
- Outputs to `addon.txt`:
Code:
# Manifest generated using eso-manifest. https://www.npmjs.com/package/eso-manifest
## Title: Addon Name
## APIVersion: 100026
## AddOnVersion: 1
## Author: ME!
## Description: Text description of the addon
## SavedVariables: SavedVars1 SavedVars2
## DependsOn: DependencyA DependencyB
## OptionalDependsOn: DependencyC DependencyD
lang/$(language).lua
addOnFile.lua
file.xml
# This Add-on is not created by, affiliated with, or sponsored by, ZeniMax Media Inc. or its affiliates.
# The Elder Scrolls® and related logos are registered trademarks or trademarks of ZeniMax Media Inc. in the United States
# and/or other countries. All rights reserved.
Node/JavaScript
Code:
const esoManifest = require('eso-manifest');
const destinationFile = 'manifest.txt';
const manifest = {
Title: 'Addon Name',
APIVersion: '100026',
AddOnVersion: 1, // Optional
Description: 'Text description of the addon', // Optional
Author: 'ME!', // Optional
SavedVariables: 'SavedVars1 SavedVars2', // Optional
DependsOn: 'DependencyA DependencyB', // Optional
OptionalDependsOn: 'DependencyC DependencyD', // Optional
Files: [
// Ordered list of file dependencies
'lang/$(language).lua',
'addOnFile.lua',
'file.xml'
]
};
// Where the magic happens :)
esoManifest.generateManifest(destinationFile, manifest, true);