setup branch-release

This commit is contained in:
Roman Hotsiy 2016-01-06 17:22:17 +02:00
parent d7fac00ae4
commit 75d75b8323
4 changed files with 49 additions and 3 deletions

4
.npmignore Normal file
View File

@ -0,0 +1,4 @@
build
demo
tests
lib

View File

@ -15,10 +15,15 @@ before_install:
- travis_retry npm install jspm - travis_retry npm install jspm
- jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN - jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN
before_deploy: before_deploy:
- npm run build - npm run build-dist
deploy: deploy:
skip_cleanup: true skip_cleanup: true
provider: script provider: script
script: ./build/deploy_gh_pages.sh script: ./build/deploy_gh_pages.sh
on: on:
branch: master branch: master
deploy:
provider: script
script: "npm run branch-release"
on:
branch: master

30
bower.json Normal file
View File

@ -0,0 +1,30 @@
{
"name": "redoc",
"description": "Swagger-generated API Reference Documentation",
"main": "dist/redoc.full.min.js",
"authors": [
"Roman Hotsiy"
],
"repository": {
"type": "git",
"url": "git://github.com/Rebilly/ReDoc"
},
"license": "MIT",
"keywords": [
"Swagger",
"JSON-Schema",
"API",
"documentation",
"Angular 2"
],
"homepage": "https://github.com/Rebilly/ReDoc",
"moduleType": ["globals", "amd"],
"ignore": [
"**/.*",
"node_modules",
"tests",
"lib",
"demo",
"build"
]
}

View File

@ -3,12 +3,16 @@
"description": "Swagger-generated API Reference Documentation", "description": "Swagger-generated API Reference Documentation",
"version": "0.0.1", "version": "0.0.1",
"private": true, "private": true,
"repository": "Rebilly/ReDoc", "repository": {
"type": "git",
"url": "git://github.com/Rebilly/ReDoc"
},
"scripts": { "scripts": {
"test": "gulp lint && gulp test", "test": "gulp lint && gulp test",
"postinstall": "jspm install", "postinstall": "jspm install",
"start": "gulp serve", "start": "gulp serve",
"build": "gulp build" "build-dist": "gulp build",
"branch-release": "branch-release"
}, },
"keywords": [ "keywords": [
"Swagger", "Swagger",
@ -50,15 +54,18 @@
"devDependencies": { "devDependencies": {
"babel-eslint": "^4.1.6", "babel-eslint": "^4.1.6",
"babel-polyfill": "^6.3.14", "babel-polyfill": "^6.3.14",
"branch-release": "^0.1.1",
"browser-sync": "^2.10.1", "browser-sync": "^2.10.1",
"del": "^2.2.0", "del": "^2.2.0",
"gulp": "^3.9.0", "gulp": "^3.9.0",
"gulp-concat": "^2.6.0", "gulp-concat": "^2.6.0",
"gulp-eslint": "^1.1.1", "gulp-eslint": "^1.1.1",
"gulp-inline-ng2-template": "^0.0.9", "gulp-inline-ng2-template": "^0.0.9",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4", "gulp-replace": "^0.5.4",
"gulp-sass": "^2.1.1", "gulp-sass": "^2.1.1",
"gulp-sourcemaps": "^1.6.0", "gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"isparta": "^4.0.0", "isparta": "^4.0.0",
"istanbul": "github:gotwarlost/istanbul#source-map", "istanbul": "github:gotwarlost/istanbul#source-map",
"jasmine-core": "^2.4.1", "jasmine-core": "^2.4.1",