summaryrefslogtreecommitdiff
path: root/dev/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-05-31 13:24:40 -0400
committerGitHub <noreply@github.com>2021-05-31 13:24:40 -0400
commit003cf791b1575d2e6e1e6f4bb5cd3d7f77601d7e (patch)
tree7253898b1943f1560f50e1c715dbb72a78ad8fc2 /dev/util.js
parent6da81d59c34e58454ad12afe34d363b0c1e33bc7 (diff)
Update build script (#1722)
* Add support for making non-buildable variants * Add support for running a command to assign a value * Update chrome-dev inheritance * Add base variant * Update manifest to auto-fill the version based on most recent git tag * Add support for changing the default manifest * Change the default manifest * Move some manifest utility functions into manifest-util.js * Move more manifest functionality into ManifestUtil * Revert "Update manifest to auto-fill the version based on most recent git tag" This reverts commit 2a66e40ff24f9dc545783503bcf3404f21148356.
Diffstat (limited to 'dev/util.js')
-rw-r--r--dev/util.js18
1 files changed, 0 insertions, 18 deletions
diff --git a/dev/util.js b/dev/util.js
index a31cd9ac..1a2209ca 100644
--- a/dev/util.js
+++ b/dev/util.js
@@ -98,21 +98,6 @@ function getAllFiles(baseDirectory, predicate=null) {
return results;
}
-function getDefaultManifest() {
- const {manifest} = getDefaultManifestAndVariants();
- return manifest;
-}
-
-function getDefaultManifestAndVariants() {
- const fileName = path.join(__dirname, 'data', 'manifest-variants.json');
- const {manifest, variants} = JSON.parse(fs.readFileSync(fileName));
- return {manifest, variants};
-}
-
-function createManifestString(manifest) {
- return JSON.stringify(manifest, null, 4) + '\n';
-}
-
function createDictionaryArchive(dictionaryDirectory, dictionaryName) {
const fileNames = fs.readdirSync(dictionaryDirectory);
@@ -151,9 +136,6 @@ module.exports = {
get JSZip() { return getJSZip(); },
getArgs,
getAllFiles,
- getDefaultManifest,
- getDefaultManifestAndVariants,
- createManifestString,
createDictionaryArchive,
testMain
};