From d43b4dbd85a63fe4809c05ea378b85077369a449 Mon Sep 17 00:00:00 2001 From: Nathan Fritzler Date: Mon, 25 Apr 2022 13:14:37 -0600 Subject: [PATCH] Add npm script to copy file that ignores gh-pages --- .circleci/config.yml | 8 ++++---- package.json | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 8b5888f..def886e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,10 +13,10 @@ workflows: # Inside the workflow, you define the jobs you want to run. jobs: - node/test: - # We don't have any executible code on the gh-pages branch. - # This filter likely will not work on it's own. If it doesn't, I'll - # copy this file into gh-pages every build. - # TODO research this and update this comment accordingly! + # We don't have any testable code on the gh-pages branch. + # This filter does not work on its own. + # This file is copied into gh-pages every build, and when that branch + # is checked, it now excludes itself. filters: branches: ignore: diff --git a/package.json b/package.json index 4ef9918..db09efb 100644 --- a/package.json +++ b/package.json @@ -91,7 +91,8 @@ "build:docs": "typedoc --name PixelManipulator --out docs --media media --includeVersion src/lib/*.ts", "build:parcel": "parcel build", "build:bundle": "browserify dist/browser.js -o dist/bundle.js --standalone pixelmanipulator", - "build": "npm run check && npm run build:docs && npm run build:parcel && npm run build:bundle", + "build:prepare-ci": "cp -r .circleci docs", + "build": "npm run check && npm run build:docs && npm run build:parcel && npm run build:bundle && npm run build:prepare-ci", "updatedemo": "npm run build && gh-pages -d docs -m \"Update $npm_package_version\" -tf", "node-demo": "ts-node src/node-demo", "coverage": "npm run test"