-
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.
Merge pull request #18 from aaronmars/master
Add release workflow
- Loading branch information
Showing
48 changed files
with
26,973 additions
and
28 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
node_modules/ | ||
__coverage-*__/ | ||
.idea | ||
.DS_Store | ||
npm-debug.log | ||
.idea/ | ||
yarn.lock |
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,26 @@ | ||
{ | ||
"tags": { | ||
"allowUnknownTags": false, | ||
"dictionaries": [ "jsdoc", "closure" ] | ||
}, | ||
"source": { | ||
"include": [ "." ], | ||
"exclude": [ "main.js" ], | ||
"includePattern": ".+\\.js?$", | ||
"excludePattern": "(^|\\/|\\\\)_" | ||
}, | ||
"opts": { | ||
"recurse": false, | ||
"pedantic": true, | ||
"destination": "./docs/", | ||
"readme": "README.md" | ||
}, | ||
"plugins": [], | ||
"templates": { | ||
"cleverLinks": true, | ||
"monospaceLinks": false, | ||
"default": { | ||
"includeDate": false | ||
} | ||
} | ||
} |
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,29 @@ | ||
#!/bin/bash | ||
|
||
if [ -z $1 ]; then | ||
echo "A version number must be supplied." | ||
exit 1 | ||
fi | ||
|
||
yarn docs | ||
if [ $? -gt 0 ]; then | ||
echo "Failed while generating the docs for release $1." | ||
exit 1 | ||
fi | ||
|
||
yarn bundle | ||
if [ $? -gt 0 ]; then | ||
echo "Failed while generating CJS bundle $1." | ||
exit 1 | ||
fi | ||
|
||
# TODO: Commit the docs and bundle | ||
# TODO: Remove the `--no-git-tag-version` argument below so a tag will be created along with the version bump. | ||
|
||
yarn version --new-version $1 --no-git-tag-version | ||
if [ $? -gt 0 ]; then | ||
echo "Failure setting the new version." | ||
exit 1 | ||
fi | ||
|
||
# TODO: Create a github release based on the new tag |
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,5 @@ | ||
export default { | ||
entry: './main.js', | ||
format: 'cjs', | ||
dest: 'dist/index.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
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
Oops, something went wrong.