This repository has been archived by the owner on Jan 16, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make sure. deploy works and run prettier on everything
- Loading branch information
1 parent
4c52064
commit 0014e98
Showing
9 changed files
with
1,654 additions
and
94 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 |
---|---|---|
@@ -1,18 +1,21 @@ | ||
# Change Log | ||
|
||
### v1.2.0 | ||
|
||
09-Sep-2016 | ||
|
||
* Add a trailing slash to the URL where it's the correct GH pages URL. | ||
- Add a trailing slash to the URL where it's the correct GH pages URL. | ||
|
||
### v1.1.0 | ||
|
||
08-Aug-2016 | ||
|
||
* Fix issue when there's already a build-storybook command. See: [#1](https://github.com/kadirahq/storybook-deployer/issues/1). | ||
* Add some better logs when executing commands. | ||
* Now we create a random directory to build the output. | ||
- Fix issue when there's already a build-storybook command. See: [#1](https://github.com/kadirahq/storybook-deployer/issues/1). | ||
- Add some better logs when executing commands. | ||
- Now we create a random directory to build the output. | ||
|
||
### v1.0.0 | ||
|
||
07-May-2016 | ||
|
||
* Initial Release | ||
- Initial Release |
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
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 |
---|---|---|
@@ -1,32 +1,35 @@ | ||
const defaultConfig = { | ||
gitUsername: "GH Pages Bot", | ||
gitEmail: "hello@ghbot.com", | ||
commitMessage: "Deploy Storybook to GitHub Pages" | ||
gitUsername: 'GH Pages Bot', | ||
gitEmail: 'hello@ghbot.com', | ||
commitMessage: 'Deploy Storybook to GitHub Pages' | ||
}; | ||
|
||
module.exports = (packageJson, argv) => ({ | ||
config: Object.assign( | ||
{}, | ||
defaultConfig, | ||
packageJson["storybook-deployer"] || defaultConfig | ||
), | ||
SKIP_BUILD: Boolean(argv["existing-output-dir"]), | ||
OUTPUT_DIR: | ||
argv.out || | ||
argv["existing-output-dir"] || | ||
"out" + Math.ceil(Math.random() * 9999), | ||
PACKAGES_DIRECTORY: argv["packages"], | ||
MONOREPO_INDEX_GENERATOR: argv["monorepo-index-generator"], | ||
NPM_SCRIPT: argv["script"] || "build-storybook", | ||
CI_DEPLOY: Boolean(argv["ci"]), | ||
// Git Variables | ||
GIT_REMOTE: argv["remote"] || "origin", | ||
TARGET_BRANCH: argv["branch"] || "gh-pages", | ||
SOURCE_BRANCH: argv["source-branch"] || "master", | ||
HOST_TOKEN_ENV_VARIABLE: argv["host-token-env-variable"] || "GH_TOKEN", | ||
HOST_TOKEN: process.env[HOST_TOKEN_ENV_VARIABLE], | ||
// AWS Variables | ||
AWS_PROFILE: argv["aws-profile"] || "default", | ||
BUCKET_PATH: argv["bucket-path"], | ||
S3_PATH: "s3://" + argv["bucket-path"] | ||
}); | ||
module.exports = (packageJson, argv) => { | ||
const HOST_TOKEN_ENV_VARIABLE = argv['host-token-env-variable'] || 'GH_TOKEN'; | ||
|
||
return { | ||
config: Object.assign( | ||
{}, | ||
defaultConfig, | ||
packageJson['storybook-deployer'] || defaultConfig | ||
), | ||
SKIP_BUILD: Boolean(argv['existing-output-dir']), | ||
OUTPUT_DIR: | ||
argv.out || | ||
argv['existing-output-dir'] || | ||
'out' + Math.ceil(Math.random() * 9999), | ||
PACKAGES_DIRECTORY: argv['packages'], | ||
MONOREPO_INDEX_GENERATOR: argv['monorepo-index-generator'], | ||
NPM_SCRIPT: argv['script'] || 'build-storybook', | ||
CI_DEPLOY: Boolean(argv['ci']), | ||
// Git Variables | ||
GIT_REMOTE: argv['remote'] || 'origin', | ||
TARGET_BRANCH: argv['branch'] || 'gh-pages', | ||
SOURCE_BRANCH: argv['source-branch'] || 'master', | ||
HOST_TOKEN: process.env[HOST_TOKEN_ENV_VARIABLE], | ||
// AWS Variables | ||
AWS_PROFILE: argv['aws-profile'] || 'default', | ||
BUCKET_PATH: argv['bucket-path'], | ||
S3_PATH: 's3://' + argv['bucket-path'] | ||
}; | ||
}; |
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
Oops, something went wrong.