From fee542d2f4e37a536650f22380770c023f3a2737 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Tue, 12 Jan 2016 23:35:08 +0200 Subject: [PATCH] prepare for npm publish --- .npmignore | 12 ++++++++++-- .travis.yml | 26 ++++++++++++++++---------- package.json | 5 +++-- 3 files changed, 29 insertions(+), 14 deletions(-) diff --git a/.npmignore b/.npmignore index 110cce49..f66b4783 100644 --- a/.npmignore +++ b/.npmignore @@ -1,4 +1,12 @@ -build -demo +.DS_Store +**/.* +.tmp + +node_modules +jspm_packages + tests lib +demo +build +coverage diff --git a/.travis.yml b/.travis.yml index 816de613..b88cf9ca 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,13 +22,19 @@ before_install: before_deploy: - npm run build-dist deploy: -- skip_cleanup: true - provider: script - script: ./build/deploy_gh_pages.sh - on: - branch: master -- skip_cleanup: true - provider: script - script: npm run branch-release - on: - branch: master + - skip_cleanup: true + provider: script + script: ./build/deploy_gh_pages.sh + on: + branch: master + - skip_cleanup: true + provider: script + script: npm run branch-release + on: + branch: master + - provider: npm + skip_cleanup: true + api_key: + secure: PuhWLERrCEFmXmdFpw2OVFlqpOIVDmgwk5JUJOYaFdVCh/smp0+jZCQ4vrdFpuG96rnDVirD+A8xvW6NgsNNaRthLgOB/LRdFN69rU6Gvn3At6wlnC55t5dlhxPvCfnzJcHVBLXX4EmMkjnZqDg2uczXTzPodr3FnQJNuXmP8B33fzDVLyHccvXZ90abwXWVrgRIXPU28niqCR8DOC2OTzs7wqz+BLNkYDRRbyYXsg62HWuD33x5iof5IqBmhzBt3usCGmF3QGcgHrXHdZw3sZnit8+Bua++3KrXR0x6HGXXN1AoXVmCAkCa5OTQ5R3tCRxiJN3P2KLnvWeZR74sTFkovJB/6pGCvbJ/c7Wnuw6sD7SgOUBD359ULB6lAf5OnxBLoNebX4JxxVXF+zA4E3Bl44VxkzDpPWc15xqBPMB5vBREzMVmJ5mExn2s5cmLQjADbl9h0y6gZnhnNJ+iTmqtrVyM0ZkF2rPrzrTdGD+ULmRIlTMkdD1bh+/TJ3RdXT3P4/zNUJmiNnvgnnJVYYvsGaXWF+7uCVHT/8k2RsoSHqgkqh0gkDqGSwVix55y5mC7T2Vk9lMBhm6MvFJXaonOX0kxJS4EDQ3plPd6/ybG+TLhwggYnQ8o9msU5Nt6FpUShKiezjKurIhbQZdwlVivX3tahjW2QjNDO58xGgY= + on: + tags: true diff --git a/package.json b/package.json index 8867bc1e..b9b989e1 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,15 @@ { - "name": "ReDoc", + "name": "redoc", "description": "Swagger-generated API Reference Documentation", "version": "0.0.1", - "private": true, "repository": { "type": "git", "url": "git://github.com/Rebilly/ReDoc" }, + "main": "dist/redoc.full.min.js", "scripts": { "test": "gulp lint && gulp test", + "prepublish": "gulp build", "postinstall": "jspm install", "start": "gulp serve", "build-dist": "gulp build",