Skip to content

Commit

Permalink
Merge pull request #2 from cloudnc/chore/setup-travis-and-semantic-re…
Browse files Browse the repository at this point in the history
…lease

chore: setup travis and semantic release
  • Loading branch information
maxime1992 authored Feb 11, 2019
2 parents 0aa585e + 1deee21 commit 330b89b
Show file tree
Hide file tree
Showing 4 changed files with 1,772 additions and 72 deletions.
3 changes: 3 additions & 0 deletions .releaserc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"pkgRoot": "dist/ngx-favicon"
}
20 changes: 20 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
sudo: false

language: node_js
node_js:
- '10'

cache: yarn

install:
- yarn --frozen-lockfile --non-interactive --no-progress

script:
# lint
- yarn run demo:lint:check
- yarn run prettier:check
# build
- yarn run lib:build:prod
- yarn run demo:build:prod
# publish to npm
- test $TRAVIS_BRANCH = "master" && yarn run semantic-release || echo "Skipping deploy"
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
{
"name": "ngx-favicon-demo",
"version": "0.0.0",
"version": "0.0.0-development",
"scripts": {
"-----COMMON-----": "-------------------------------------",
"ng": "ng",
"prettier": "prettier",
"prettier:base": "prettier \"**/*.{js,json,css,md,ts,html,component.html}\"",
"prettier:check": "yarn run prettier:base -l",
"prettier:write": "yarn run prettier:base --write",
"start": "yarn run demo:start",
"test": "yarn run demo:test",
"------DEMO------": "-------------------------------------",
"demo:start": "yarn run ng serve",
"demo:test": "yarn run ng test",
"demo:lint:base": "yarn run ng lint",
"demo:lint:check": "yarn run ng lint",
"demo:lint:fix": "yarn run demo:lint:base --fix",
"demo:build:base": "yarn run ng build",
"demo:build:prod": "yarn run ng build --prod",
"-------LIB------": "-------------------------------------",
"lib:build:base": "yarn run ng build --project=ngx-favicon",
"lib:build:watch": "yarn run lib:build:base --watch",
"lib:build:prod": "yarn run lib:build:base"
"lib:build:prod": "yarn run lib:build:base",
"semantic-release": "semantic-release"
},
"private": true,
"dependencies": {
Expand Down Expand Up @@ -56,11 +58,16 @@
"ng-packagr": "4.7.0",
"prettier": "1.16.4",
"protractor": "5.4.2",
"semantic-release": "15.13.3",
"ts-node": "8.0.2",
"tsickle": "0.34.3",
"tslib": "1.9.0",
"tslint": "5.12.1",
"tslint-config-prettier": "1.18.0",
"typescript": "3.2.2"
},
"repository": {
"type": "git",
"url": "https://github.com/cloudnc/ngx-favicon.git"
}
}
Loading

0 comments on commit 330b89b

Please sign in to comment.