aboutsummaryrefslogtreecommitdiffstats
path: root/packages/0x.js/scripts
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2017-11-16 05:47:35 +0800
committerFabio Berger <me@fabioberger.com>2017-11-16 05:47:35 +0800
commit9a57f71ee6fd7aef73811c18e71179e5dc94a417 (patch)
tree40319d6e8322171d879fb215adfce33e8f750b69 /packages/0x.js/scripts
parent827c2457772bd2203307d87f864214c370383807 (diff)
downloaddexon-0x-contracts-9a57f71ee6fd7aef73811c18e71179e5dc94a417.tar.gz
dexon-0x-contracts-9a57f71ee6fd7aef73811c18e71179e5dc94a417.tar.zst
dexon-0x-contracts-9a57f71ee6fd7aef73811c18e71179e5dc94a417.zip
improve script
Diffstat (limited to 'packages/0x.js/scripts')
-rw-r--r--packages/0x.js/scripts/postpublish.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/packages/0x.js/scripts/postpublish.js b/packages/0x.js/scripts/postpublish.js
index deedee74c..b30c7eb3e 100644
--- a/packages/0x.js/scripts/postpublish.js
+++ b/packages/0x.js/scripts/postpublish.js
@@ -28,12 +28,12 @@ getLatestTagAndVersionAsync(subPackageName)
prerelease: false,
reuseRelease: true,
reuseDraftOnly: false,
- assets: ['_bundles/index.js', '_bundles/index.min.js'],
+ assets: [__dirname + '/../_bundles/index.js', __dirname + '/../_bundles/index.min.js'],
});
})
.then(function(release) {
console.log('POSTPUBLISH: Release successful, generating docs...');
- return execAsync('yarn docs:json');
+ return execAsync('typedoc --excludePrivate --excludeExternals --target ES5 --json ' + __dirname + '/../docs/index.json ' + __dirname + '/..');
})
.then(function(result) {
if (result.stderr !== '') {
@@ -41,13 +41,12 @@ getLatestTagAndVersionAsync(subPackageName)
}
console.log('POSTPUBLISH: Doc generation successful, uploading docs...');
const s3Url = 's3://0xjs-docs-jsons/v' + version +'.json';
- return execAsync('S3_URL=' + s3Url + ' yarn upload_docs_json');
+ return execAsync('aws s3 cp ' + __dirname + '/../docs/index.json ' + s3Url + ' --profile 0xproject --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --content-type aplication/json');
});
function getLatestTagAndVersionAsync(subPackageName) {
const subPackagePrefix = subPackageName + '@';
const gitTagsCommand = 'git tags -l "' + subPackagePrefix + '*"';
- console.log(gitTagsCommand);
return execAsync(gitTagsCommand)
.then(function(result) {
if (result.stderr !== '') {