-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update LibAddonMenu-2.0r25 to r26 (#9) * Update ProvisionsTeamFormation.txt * Update README.md * Delete LibAddonMenu-2.0r25.txt * Update folder LibAddonMenu-2.0/ * Added deploy scripts that can be used for testing and release (#11) * Fire events (#13) * Register : SetHiddenCalled * 2 registers : MakeIcon & UpdateIcon TEAMFORMATION_MakeIcon & TEAMFORMATION_UpdateIcon * Fix empty unit zone (#14) * Fix empty unit zone name Fix SI_SOCIAL_LIST_LOCATION_FORMAT, I add the string value "<<C:1>>" * Update version number 1.2.7 * Update version number 1.2.7 * Update version number 1.2.7 * Update version number 1.2.7 * Update ProvisionsTeamFormation.txt
- Loading branch information
Showing
13 changed files
with
758 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
const addonConfig = require('./config'); | ||
const util = require('util'); | ||
const exec = util.promisify(require('child_process').exec); | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
clean: { | ||
build: [`${addonConfig.buildFolder}/${addonConfig.modName}`], | ||
deploy: [`${addonConfig.esoAddonDir}/${addonConfig.modName}`], | ||
options: { | ||
force: true | ||
} | ||
}, | ||
copy: { | ||
build: { | ||
files: [ | ||
{ | ||
expand: true, | ||
// Assumes we are running from a sub-folder located inside the addon. | ||
cwd: '../', | ||
src: addonConfig.sourceFiles, | ||
dest: `${addonConfig.buildFolder}/${addonConfig.modName}` | ||
} | ||
], | ||
}, | ||
deploy: { | ||
files: [ | ||
{ | ||
expand: true, | ||
cwd: addonConfig.buildFolder, | ||
src: [`${addonConfig.modName}/**`], | ||
dest: addonConfig.esoAddonDir | ||
} | ||
] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Dependencies | ||
- [Node.js](https://nodejs.org) - Follow link to install for your platform | ||
- [Yarn](https://yarnpkg.com/) - After Node.js is installed run `npm install -g yarn` | ||
|
||
# Configure <br /> | ||
See '[config.js](./config.js)' for available configurations. <br /> | ||
`modName`: Name of the mod. (duh) <br /> | ||
`defaultBuildDir`: Destination for 'built' addon files. <br /> | ||
`sourceFiles`: Provides the list of files to be deployed. New files that should be included with the addon should be added to the list. <br /> | ||
`esoAddonDir`: Specifies where to deploy game files. It looks to see if the `ESO_ADDON_DIR` environment variable is set. | ||
|
||
# Available commands | ||
All commands should be run from a terminal inside the [deploy](./) folder. | ||
1. `yarn run build` | ||
- copies addon files to 'build' directory specified in [config.js](./config.js) | ||
2. `yarn run deploy` | ||
- Copies files from 'build' folder into the folder defined in `esoAddonDir` in [config.js](config.js) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const defaultBuildDir = 'build'; | ||
const addonConfig = { | ||
modName: "ProvisionsTeamFormation", | ||
buildFolder: defaultBuildDir, | ||
|
||
// Set addon directory in environment vars or set default above. Mine is set to 'C:\\Users\\Mike\\Documents\\Elder Scrolls Online\\live\\AddOns' | ||
esoAddonDir: process.env['ESO_ADDON_DIR'] || defaultBuildDir, | ||
sourceFiles: [ | ||
'function/**', | ||
'lang/**', | ||
'libs/**', | ||
'Bindings.xml', | ||
'header.lua', | ||
'TeamFormation.lua', | ||
'TeamFormation.xml' | ||
] | ||
}; | ||
|
||
module.exports = addonConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"name": "TeamFormationDeploy", | ||
"version": "1.0.0", | ||
"main": "index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
"build": "grunt clean:build && grunt copy:build", | ||
"deploy": "grunt clean:deploy && grunt copy:deploy" | ||
}, | ||
"devDependencies": { | ||
"grunt": "^1.0.3", | ||
"grunt-contrib-clean": "^1.1.0", | ||
"grunt-contrib-copy": "^1.0.0" | ||
} | ||
} |
Oops, something went wrong.