From ae7133f0a9959a95dea153e10f24013d98b9ed2b Mon Sep 17 00:00:00 2001 From: James Scharett Date: Mon, 12 Aug 2019 05:45:51 +0200 Subject: [PATCH] fix: npm package Properly addds readme and lincense to the npm package distro Closes #12 --- .travis.yml | 3 ++- deploy.sh | 1 - package.json | 4 +--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index fa3129a..3c3ce3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,11 +19,12 @@ before_install: before_script: - npm install -g @angular/cli + - npm install -g copyfiles script: - npm run lint - npm run test-ci - - npm run build + - npm run package - npm run compodoc -- --disableCoverage after_success: - codecov diff --git a/deploy.sh b/deploy.sh index 80f1fda..392f63e 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,3 +1,2 @@ npx angular-cli-ghpages --dir=./dist/demo --repo=https://GH_TOKEN@github.com/jscharett/ngx-json-schema-form.git -npm run copy-files npx semantic-release diff --git a/package.json b/package.json index 21c29ef..aaeae3b 100644 --- a/package.json +++ b/package.json @@ -16,9 +16,7 @@ "lint": "ng lint", "e2e": "ng e2e", "compodoc": "compodoc", - "copy-license": "copy .\\LICENSE .\\dist\\ngx-json-schema-form", - "copy-readme": "copy .\\README.md .\\dist\\ngx-json-schema-form", - "copy-files": "npm run copy-license && npm run copy-readme", + "copy-files": "copyfiles LICENSE README.md dist/ngx-json-schema-form", "npm_pack": "cd dist/ngx-json-schema-form && npm pack", "package": "npm run build && npm run copy-files && npm run npm_pack", "preversion": "npm run lint && npm run test-ci",