From 2d51b88574345cb78cc263792609ed5c148b0277 Mon Sep 17 00:00:00 2001 From: nlepage <19571875+nlepage@users.noreply.github.com> Date: Fri, 22 Dec 2017 15:48:29 +0100 Subject: [PATCH] :wrench: Move .npmignore into packages and remove automatic publish --- .circleci/config.yml | 7 ------- .npmignore | 13 ------------- misc/publish-docs.sh | 23 ----------------------- packages/immutadot-lodash/.npmignore | 3 +++ packages/immutadot/.npmignore | 3 +++ 5 files changed, 6 insertions(+), 43 deletions(-) delete mode 100644 .npmignore delete mode 100755 misc/publish-docs.sh create mode 100644 packages/immutadot-lodash/.npmignore create mode 100644 packages/immutadot/.npmignore diff --git a/.circleci/config.yml b/.circleci/config.yml index 8ce02ad2..a48a058d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -52,10 +52,3 @@ workflows: jobs: - lint - test - -# deployment: -# release: -# tag: /\d+\.\d+\.\d+/ -# commands: -# - npm publish -# - ./publish-docs.sh diff --git a/.npmignore b/.npmignore deleted file mode 100644 index 205bf6e1..00000000 --- a/.npmignore +++ /dev/null @@ -1,13 +0,0 @@ -/.github/ -/coverage/ -/docs/ -/generated/ -/misc/ -/src/ -.babelrc -.codecov.yml -.eslintrc.json -circle.yml -jsdoc.json -publish-docs.sh -yarn.lock diff --git a/misc/publish-docs.sh b/misc/publish-docs.sh deleted file mode 100755 index 18e681ed..00000000 --- a/misc/publish-docs.sh +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/sh -set -e - -# Git configuration -git config user.name $GIT_USER_NAME -git config user.email $GIT_USER_EMAIL - -# Build documentation -yarn docs - -# Move to new branch based on master -git checkout master -git checkout -b docs/$CIRCLE_TAG - -# Apply modifications to minor version -VERSION_TO_MINOR=$(echo $CIRCLE_TAG | sed -E 's/\.[0-9]+$//') -rm -rf docs/immutadot/$VERSION_TO_MINOR -mv docs/immutadot/$CIRCLE_TAG docs/immutadot/$VERSION_TO_MINOR - -# Commit and push modifications -git add docs/immutadot -git commit -m ":memo: Publish $CIRCLE_TAG documentation" -git push --set-upstream origin docs/$CIRCLE_TAG diff --git a/packages/immutadot-lodash/.npmignore b/packages/immutadot-lodash/.npmignore new file mode 100644 index 00000000..bf11c130 --- /dev/null +++ b/packages/immutadot-lodash/.npmignore @@ -0,0 +1,3 @@ +/coverage/ +/generated/ +/src/ diff --git a/packages/immutadot/.npmignore b/packages/immutadot/.npmignore new file mode 100644 index 00000000..bf11c130 --- /dev/null +++ b/packages/immutadot/.npmignore @@ -0,0 +1,3 @@ +/coverage/ +/generated/ +/src/