This repository has been archived by the owner on Nov 4, 2024. It is now read-only.
generated from tophat/new-project-kit
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: show more info on required options and env errors (#39)
* refactor: explicitly callout required config and env * cr: remove duplication * refactor: add more information to env error message
- Loading branch information
Showing
5 changed files
with
54 additions
and
35 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
const defaultOptions = { | ||
artifactsDir: './artifacts', | ||
channel: 'unlisted', | ||
manifestPath: 'manifest.json', | ||
sourceDir: 'dist', | ||
} | ||
|
||
const requiredOptions = { | ||
extensionId: | ||
'Omitting this would create a new extension instead of a new version.', | ||
targetXpi: | ||
'Omitting this would leave the xpi file unnamed when it is returned from mozilla.', | ||
} | ||
|
||
const requiredEnvs = { | ||
FIREFOX_API_KEY: 'Firefox api key used in webext sign command.', | ||
FIREFOX_SECRET_KEY: 'Firefox api secret used in webext signing.', | ||
} | ||
|
||
module.exports = { | ||
defaultOptions, | ||
requiredEnvs, | ||
requiredOptions, | ||
} |
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