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
- jspm config registries.github.auth $JSPM_GITHUB_AUTH_TOKEN
before_deploy:
- npm run build
- npm run build-dist
deploy:
skip_cleanup: true
provider: script
script: ./build/deploy_gh_pages.sh
on:
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",
"version": "0.0.1",
"private": true,
"repository": "Rebilly/ReDoc",
"repository": {
"type": "git",
"url": "git://github.com/Rebilly/ReDoc"
},
"scripts": {
"test": "gulp lint && gulp test",
"postinstall": "jspm install",
"start": "gulp serve",
"build": "gulp build"
"build-dist": "gulp build",
"branch-release": "branch-release"
},
"keywords": [
"Swagger",
@ -50,15 +54,18 @@
"devDependencies": {
"babel-eslint": "^4.1.6",
"babel-polyfill": "^6.3.14",
"branch-release": "^0.1.1",
"browser-sync": "^2.10.1",
"del": "^2.2.0",
"gulp": "^3.9.0",
"gulp-concat": "^2.6.0",
"gulp-eslint": "^1.1.1",
"gulp-inline-ng2-template": "^0.0.9",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^2.1.1",
"gulp-sourcemaps": "^1.6.0",
"gulp-uglify": "^1.5.1",
"isparta": "^4.0.0",
"istanbul": "github:gotwarlost/istanbul#source-map",
"jasmine-core": "^2.4.1",