Skip to content

Commit

Permalink
feat: Connected semantic releases and changelog closes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
flauc committed Jan 11, 2019
1 parent 4f664ad commit 5d1b254
Show file tree
Hide file tree
Showing 11 changed files with 18,136 additions and 141 deletions.
107 changes: 107 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
version: 2

job_defaults: &job_defaults
docker:
- image: circleci/node:latest
working_directory: ~/project/repo

cache_key: &cache_key ng-helpers-deps-cache-{{ .Branch }}-{{ checksum "package-lock.json" }}
dist_key: &dist_key ng-helpers-dist-{{ .Revision }}

jobs:
install:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- run:
name: install-dependencies
command: npm ci
- save_cache:
key: *cache_key
paths:
- node_modules

lint:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- run:
name: lint
command: npm run lint

test-lib:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- run:
name: test
command: npm run test

build-lib:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- run:
name: test
command: npm run build
- save_cache:
key: *dist_key
paths:
- dist

test-app:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- restore_cache:
key: *dist_key
- run:
name: test
command: npm run test:app

release:
<<: *job_defaults
steps:
- checkout
- restore_cache:
key: *cache_key
- restore_cache:
key: *dist_key
- run:
name: release
command: npm run semantic-release || true

workflows:
version: 2
build-release:
jobs:
- install
- lint:
requires:
- install
- test-lib:
requires:
- install
- build-lib:
requires:
- lint
- test-lib
- test-app:
requires:
- build-lib
- release:
requires:
- test-app
filters:
branches:
only: master
10 changes: 10 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"semi": true,
"singleQuote": true,
"trailingComma": "none",
"bracketSpacing": false,
"arrowParens": "avoid"
}
4 changes: 0 additions & 4 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2018 Jaspero co.
Copyright (c) 2019 Jaspero co.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
70 changes: 16 additions & 54 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,8 @@
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"assets": ["src/favicon.ico", "src/assets"],
"styles": ["src/styles.scss"],
"scripts": []
},
"configurations": {
Expand Down Expand Up @@ -75,53 +70,16 @@
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
],
"styles": ["src/styles.scss"],
"scripts": [],
"assets": [
"src/favicon.ico",
"src/assets"
]
"assets": ["src/favicon.ico", "src/assets"]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"ng-helpers-base-e2e": {
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ng-helpers-base:serve"
},
"configurations": {
"production": {
"devServerTarget": "ng-helpers-base:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
"tsConfig": ["src/tsconfig.app.json", "src/tsconfig.spec.json"],
"exclude": ["**/node_modules/**"]
}
}
}
Expand All @@ -130,7 +88,13 @@
"root": "projects/ng-helpers",
"sourceRoot": "projects/ng-helpers/src",
"projectType": "library",
"prefix": "lib",
"prefix": "jp",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss",
"changeDetection": "OnPush"
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
Expand Down Expand Up @@ -159,13 +123,11 @@
"projects/ng-helpers/tsconfig.lib.json",
"projects/ng-helpers/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
"exclude": ["**/node_modules/**"]
}
}
}
}
},
"defaultProject": "ng-helpers-base"
}
"defaultProject": "ng-helpers"
}
Loading

0 comments on commit 5d1b254

Please sign in to comment.