Skip to content

Commit 3791083

Browse files
feat(update): update libs and more (#2)
* tsconfig for linking, changelog and version * shared module export, prettierrc * update ngx command project details * update libs + fix changes * add circleci config * update * fix lint errors * circleci change docker image 9.4-browsers * circleci: add CHROME_BIN env var * ci: test single run + env fix * ci: env fix * ci: add coverage * docs(readme): add circle ci 2 int * docs(readme): add linting/formatting
1 parent 6e527b9 commit 3791083

18 files changed

+8954
-4414
lines changed

.circleci/config.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
version: 2
2+
jobs:
3+
build:
4+
working_directory: ~/app
5+
docker:
6+
- image: circleci/node:9.4-browsers
7+
environment:
8+
- CHROME_BIN: "/usr/bin/google-chrome"
9+
steps:
10+
- run:
11+
name: Print environment versions
12+
command: |
13+
NPM_V=$(npm -v)
14+
echo npm version':' $NPM_V
15+
- checkout
16+
- restore_cache:
17+
key: dependency-cache-{{ checksum "package.json" }}
18+
- run:
19+
name: Package Install
20+
command: npm i
21+
- save_cache:
22+
key: dependency-cache-{{ checksum "package.json" }}
23+
paths:
24+
- ./node_modules
25+
- run:
26+
name: lint
27+
command: npm run lint
28+
- run:
29+
name: build
30+
command: npm run build
31+
- run:
32+
name: test
33+
command: npm test -- --singleRun --code-coverage
34+
- store_artifacts:
35+
path: coverage
36+
prefix: coverage

.circleci/utils.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
print_title() {
3+
echo -e "\e[36m ---- $1 ---- \e[39m"
4+
}

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"bracketSpacing": true,
3+
"singleQuote": false,
4+
"trailingComma": "all",
5+
"semi": true,
6+
"useTabs": true
7+
}

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<a name="1.0.1"></a>
2+
# [1.0.1](https://github.com/sketch7/angular-skeleton-app/compare/1.0.0...1.0.1) (2018-02-03)
3+
4+
### Features
5+
6+
- `tsconfig` and `tsconfig.app` now has config for libraries linking
7+
- add `.pretierrc` config file
8+
- add tests for `nav`
9+
- circle ci 2 integration
10+
11+
### Fixes
12+
13+
- fix tests for `app`
14+
15+
### Changes/Refactor
16+
17+
- `SharedModule` exporting via `shared/index`
18+
-

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ Angular 5.x navigation skeleton project with styling which get you started faste
77
- Font Awesome and Bootstrap 4.x (no javascript, just styles)
88
- Navigation/layout
99
- Theming
10+
- Linting/formatting - prettier, tslint, eslint, stylelint
11+
- Circle CI 2 integration
1012

1113
![Angular Skeleton App](./screenshot.jpg)
1214

e2e/app.po.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { browser, by, element } from 'protractor';
1+
import { browser, by, element } from "protractor";
22

33
export class AppPage {
4-
navigateTo() {
5-
return browser.get('/');
6-
}
4+
navigateTo() {
5+
return browser.get("/");
6+
}
77

8-
getParagraphText() {
9-
return element(by.css('app-root h1')).getText();
10-
}
8+
getParagraphText() {
9+
return element(by.css("app-root h1")).getText();
10+
}
1111
}

0 commit comments

Comments
 (0)