From 57bf32f23b269db87e3b3b129adc6e41a22443e1 Mon Sep 17 00:00:00 2001 From: xpl Date: Thu, 28 Feb 2019 09:21:39 +0300 Subject: [PATCH] moved ccxt.wiki --- .gitignore | 2 +- .npmignore | 1 - .travis.yml | 2 +- build/export-exchanges.js | 4 ++-- push-wiki.sh => build/push-wiki.sh | 0 composer.json | 4 ++-- 6 files changed, 6 insertions(+), 7 deletions(-) rename push-wiki.sh => build/push-wiki.sh (100%) diff --git a/.gitignore b/.gitignore index 3fbd328de97a..2bf518992c5f 100644 --- a/.gitignore +++ b/.gitignore @@ -3,6 +3,7 @@ # Please read https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#multilanguage-support for details. # .vscode +build/ccxt.wiki node_modules/ npm-debug.log .DS_Store @@ -16,7 +17,6 @@ tmp/ coverage .nyc_output travis-keys.sh -ccxt.wiki/ exchanges.json ccxt.sublime-workspace .idea diff --git a/.npmignore b/.npmignore index 3459b282c5b2..adeac7897043 100644 --- a/.npmignore +++ b/.npmignore @@ -1,5 +1,4 @@ ccxt.egg-info/ -ccxt.wiki/ dist/ build/ examples/php/ diff --git a/.travis.yml b/.travis.yml index 888093bd76e1..3015660b33ec 100644 --- a/.travis.yml +++ b/.travis.yml @@ -44,7 +44,7 @@ script: - if [ "$TESTS_FAILED" -ne 0 ]; then exit 1; fi # - export TWINE_REPOSITORY_URL=https://pypi.python.org/pypi - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push.sh; fi -- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./push-wiki.sh; fi +- if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then env COMMIT_MESSAGE=${NPM_VERSION:1} GITHUB_TOKEN=${GITHUB_TOKEN} ./build/push-wiki.sh; fi - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then cd python && env PYPI_PASSWORD=${PYPI_PASSWORD} ./deploy.sh && cd ..; fi after_failure: - dmesg | grep -i kill diff --git a/build/export-exchanges.js b/build/export-exchanges.js index a4cc6af355da..162c6ac42f8a 100644 --- a/build/export-exchanges.js +++ b/build/export-exchanges.js @@ -16,7 +16,7 @@ let verbose = false // --------------------------------------------------------------------------- let wikiPath = 'wiki' -let gitWikiPath = 'ccxt.wiki' +let gitWikiPath = 'build/ccxt.wiki' let ccxtCertifiedBadge = '[![CCXT Certified](https://img.shields.io/badge/CCXT-certified-green.svg)](https://github.com/ccxt/ccxt/wiki/Certification)' let spacing = ' '.repeat (7) let logoHeading = spacing + 'logo' + spacing @@ -25,7 +25,7 @@ let exchangesByCountryHeading = [ 'country / region', ... tableHeadings ] if (!fs.existsSync (gitWikiPath)) { log.bright.cyan ('Checking out ccxt.wiki...') - execSync ('git clone https://github.com/ccxt/ccxt.wiki.git') + execSync ('git clone https://github.com/ccxt/ccxt.wiki.git ' + gitWikiPath) } // --------------------------------------------------------------------------- diff --git a/push-wiki.sh b/build/push-wiki.sh similarity index 100% rename from push-wiki.sh rename to build/push-wiki.sh diff --git a/composer.json b/composer.json index f996c40ca430..8e44318ecbe7 100644 --- a/composer.json +++ b/composer.json @@ -241,11 +241,11 @@ "archive": { "exclude": [ "/build", + "/dist", "/doc", "/js", "/python", - "/wiki", - "/ccxt.wiki" + "/wiki" ] }, "require-dev": {