This repository has been archived by the owner on Apr 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Dara Hayes
committed
Jul 3, 2019
1 parent
a0bc5ae
commit 1ccc469
Showing
5 changed files
with
174 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
version: 2.1 | ||
jobs: | ||
build: | ||
working_directory: ~/aerogear | ||
docker: | ||
# Node 8 LTS | ||
- image: circleci/node:lts | ||
steps: | ||
- checkout | ||
- run: | ||
name: install dependencies | ||
command: npm install | ||
- run: | ||
name: compile | ||
command: npm run compile | ||
- run: | ||
name: test | ||
command: npm test | ||
- run: | ||
name: coverage | ||
command: npm run coverage | ||
- run: | ||
name: Lint all TypeScript code | ||
command: npm run lint | ||
# test_examples: | ||
# docker: | ||
# # Node 8 LTS | ||
# - image: circleci/node:lts | ||
# # keycloak | ||
# - image: jboss/keycloak:3.4.3.Final | ||
# name: keycloak_instance | ||
# environment: | ||
# KEYCLOAK_USER: admin | ||
# KEYCLOAK_PASSWORD: admin | ||
# DB_VENDOR: h2 | ||
# steps: | ||
# - checkout | ||
# - run: | ||
# name: Wait for keycloak instance to start up | ||
# command: dockerize -wait tcp://keycloak_instance:8080 -timeout 120s | ||
# - run: | ||
# name: install dependencies | ||
# command: npm install | ||
# - run: | ||
# name: bootstrap project | ||
# command: npm run bootstrap | ||
# - run: | ||
# name: compile | ||
# command: npm run compile | ||
# - run: | ||
# command: cd examples && npm run test-examples | ||
# environment: | ||
# KEYCLOAK_HOST: 'keycloak_instance' | ||
# KEYCLOAK_PORT: '8080' | ||
npm_publish: | ||
working_directory: ~/aerogear | ||
docker: | ||
# Node 8 LTS | ||
- image: circleci/node:lts | ||
steps: | ||
- checkout | ||
# Allows us to authenticate with the npm registry | ||
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
- run: CI=true npm run release:prep | ||
- run: TAG=$CIRCLE_TAG npm run release:validate | ||
- run: TAG=$CIRCLE_TAG npm run publish | ||
workflows: | ||
version: 2 | ||
build_and_release: | ||
jobs: | ||
- build: | ||
filters: | ||
tags: | ||
only: /.*/ | ||
# - test_examples: | ||
# filters: | ||
# tags: | ||
# only: /.*/ | ||
- npm_publish: | ||
requires: | ||
- build | ||
filters: | ||
tags: | ||
only: /.*/ # allow anything because tag syntax is validated as part of validate-release.sh | ||
branches: | ||
ignore: /.*/ | ||
# - publish_example_containers: | ||
# requires: | ||
# - npm_publish | ||
# filters: | ||
# tags: | ||
# only: /.*/ | ||
# branches: | ||
# ignore: /.*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ dist | |
|
||
# Build stuff | ||
coverage | ||
.nyc_output |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"extends": "tslint:recommended", | ||
"linterOptions": { | ||
"exclude": [ | ||
"node_modules/**" | ||
] | ||
}, | ||
"rules": { | ||
"semicolon": [ | ||
true, | ||
"never" | ||
], | ||
"quotemark": [ | ||
true, | ||
"single" | ||
], | ||
"max-line-length": [false], | ||
"space-before-function-paren": [false, "always"], | ||
"only-arrow-functions": [ | ||
false | ||
], | ||
"trailing-comma": [ | ||
true, | ||
{ | ||
"multiline": "never", | ||
"singleline": "never" | ||
} | ||
], | ||
"arrow-parens": false, | ||
"object-literal-sort-keys": false, | ||
"object-literal-key-quotes": [ | ||
false | ||
], | ||
"max-classes-per-file": [ | ||
false | ||
], | ||
"ban-types": [ | ||
false | ||
], | ||
"no-console": [ | ||
true, | ||
"log" | ||
], | ||
"variable-name": [ | ||
true, | ||
"ban-keywords", | ||
"check-format", | ||
"allow-pascal-case", | ||
"allow-leading-underscore" | ||
], | ||
"interface-name": [ | ||
false | ||
], | ||
"ordered-imports": false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"extends": "./tslint.json", | ||
"rules": { | ||
"no-shadowed-variable": [ | ||
true, | ||
{ | ||
"temporalDeadZone": false | ||
} | ||
] | ||
} | ||
} |