Skip to content

Commit

Permalink
fix: npm package
Browse files Browse the repository at this point in the history
Properly addds readme and lincense to the
npm package distro

Closes #12
  • Loading branch information
jscharett committed Aug 12, 2019
1 parent 7b4c5ef commit ae7133f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion deploy.sh
Original file line number Diff line number Diff line change
@@ -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
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit ae7133f

Please sign in to comment.