Skip to content

Commit e1e3e84

Browse files
init: add base
1 parent 4852aac commit e1e3e84

File tree

7 files changed

+178
-56
lines changed

7 files changed

+178
-56
lines changed

.travis.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
notifications:
2+
slack: $slack
3+
sudo: required
4+
language: node_js
5+
node_js:
6+
- "9.7.1"
7+
install:
8+
- npm i
9+
script:
10+
- npx ng lint
11+
- npx ng test gh-layout --watch=false
12+
- npx ng build gh-layout --prod --base-href gh-layout
13+
cache:
14+
directories:
15+
- node_modules
16+
deploy:
17+
- provider: pages
18+
local-dir: dist/gh-layout
19+
github-token: $github
20+
skip-cleanup: true
21+
keep-history: true

CONTRIBUTING.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Contributing
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.3.
4+
5+
## Development server
6+
7+
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8+
9+
## Code scaffolding
10+
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12+
13+
## Build
14+
15+
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
16+
17+
## Running unit tests
18+
19+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20+
21+
## Running end-to-end tests
22+
23+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24+
25+
## Further help
26+
27+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

README.md

Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
# GhLayout
1+
# Gh-Layout
22

3-
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 6.0.3.
3+
[![Build Status](https://travis-ci.org/angeeks/gh-layout.svg?branch=master)](https://travis-ci.org/angeeks/gh-layout)
4+
[![npm version](https://badge.fury.io/js/%40angeeks%2Ftesting.svg)](https://www.npmjs.com/package/@angeeks/gh-layout)
45

5-
## Development server
6-
7-
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
8-
9-
## Code scaffolding
10-
11-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`.
12-
13-
## Build
14-
15-
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
16-
17-
## Running unit tests
18-
19-
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
20-
21-
## Running end-to-end tests
22-
23-
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
24-
25-
## Further help
26-
27-
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
6+
An angular components collection for angeeks github pages

package-lock.json

Lines changed: 113 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@
2525
"zone.js": "^0.8.26"
2626
},
2727
"devDependencies": {
28-
"@angular/compiler-cli": "^6.0.2",
28+
"@angeeks/testing": "^1.0.0",
2929
"@angular-devkit/build-angular": "~0.6.3",
30-
"typescript": "~2.7.2",
3130
"@angular/cli": "~6.0.3",
31+
"@angular/compiler-cli": "^6.0.2",
3232
"@angular/language-service": "^6.0.2",
3333
"@types/jasmine": "~2.8.6",
3434
"@types/jasminewd2": "~2.0.3",
@@ -42,7 +42,9 @@
4242
"karma-jasmine": "~1.1.1",
4343
"karma-jasmine-html-reporter": "^0.2.2",
4444
"protractor": "~5.3.0",
45+
"puppeteer": "^1.4.0",
4546
"ts-node": "~5.0.1",
46-
"tslint": "~5.9.1"
47+
"tslint": "~5.9.1",
48+
"typescript": "~2.7.2"
4749
}
4850
}

src/app/app.component.spec.ts

Lines changed: 5 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,6 @@
1-
import { TestBed, async } from '@angular/core/testing';
2-
import { AppComponent } from './app.component';
3-
describe('AppComponent', () => {
4-
beforeEach(async(() => {
5-
TestBed.configureTestingModule({
6-
declarations: [
7-
AppComponent
8-
],
9-
}).compileComponents();
10-
}));
11-
it('should create the app', async(() => {
12-
const fixture = TestBed.createComponent(AppComponent);
13-
const app = fixture.debugElement.componentInstance;
14-
expect(app).toBeTruthy();
15-
}));
16-
it(`should have as title 'ngk'`, async(() => {
17-
const fixture = TestBed.createComponent(AppComponent);
18-
const app = fixture.debugElement.componentInstance;
19-
expect(app.title).toEqual('ngk');
20-
}));
21-
it('should render title in a h1 tag', async(() => {
22-
const fixture = TestBed.createComponent(AppComponent);
23-
fixture.detectChanges();
24-
const compiled = fixture.debugElement.nativeElement;
25-
expect(compiled.querySelector('h1').textContent).toContain('Welcome to gh-layout!');
26-
}));
1+
import { ComponentSuite as Component } from '@angeeks/testing';
2+
import { AppComponent as Tag } from './app.component';
3+
4+
Component.suite<Tag>(Tag, (spec)=> {
5+
spec.init();
276
});

src/karma.conf.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Karma configuration file, see link for more information
22
// https://karma-runner.github.io/1.0/config/configuration-file.html
3+
process.env.CHROME_BIN = require('puppeteer').executablePath()
34

45
module.exports = function (config) {
56
config.set({
@@ -25,7 +26,7 @@ module.exports = function (config) {
2526
colors: true,
2627
logLevel: config.LOG_INFO,
2728
autoWatch: true,
28-
browsers: ['Chrome'],
29+
browsers: ['ChromeHeadless'],
2930
singleRun: false
3031
});
31-
};
32+
};

0 commit comments

Comments
 (0)