Quantcast
Download
(2 Kb)
Download
Updated: 03/11/19 09:51 PM
Compatibility:
Wrathstone (4.3)
Updated:03/11/19 09:51 PM
Created:02/28/19 11:34 PM
Monthly downloads:129
Total downloads:583
Favorites:1
MD5:
eso-manifest
Version: 1.1.4
by: AlbinoPython [More]
Have you ever wondered how you can store your addon manifest data in a JSON object? Me too! This tool is meant to generate the manifest file for your addon.

Find it on:
npmjs
GitHub

Code:
npm install eso-manifest
Running the following code...

Code:
const esoManifest = require('eso-manifest');

// File path to create manifest file. Will overwrite existing file!
const destinationFile = 'manifest.txt';

const manifest = {
  Title: 'Addon Name',
  APIVersion: '100025 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
};

const fileDependencies = [
  // Ordered list of file dependencies
  'lang/$(language).lua',
  'addOnFile.lua',
  'file.xml'
];

// Where the magic happens :)
// The last Boolean parameter will print the standard ZOS disclaimer.
esoManifest(destinationFile, manifest, fileDependencies, true);
Generates the following manifest text file.

Code:
# Manifest generated using eso-manifest. https://www.npmjs.com/package/eso-manifest
## Title: Addon Name
## APIVersion: 100025 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.
Optional Files (0)


Archived Files (1)
File Name
Version
Size
Uploader
Date
1.1.3
2kB
AlbinoPython
02/28/19 11:34 PM


There have been no comments posted to this file.
Be the first to add one.



Category Jump: