Skip to content

Commit 0d4bf60

Browse files
author
Jason Hodges
committed
initial commit
0 parents  commit 0d4bf60

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+7231
-0
lines changed

.angular-cli.json

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"project": {
4+
"name": "angular-animations"
5+
},
6+
"apps": [
7+
{
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": [
11+
"assets",
12+
"assets/resources",
13+
"favicon.ico"
14+
],
15+
"index": "index.html",
16+
"main": "main.ts",
17+
"polyfills": "polyfills.ts",
18+
"test": "test.ts",
19+
"tsconfig": "tsconfig.app.json",
20+
"testTsconfig": "tsconfig.spec.json",
21+
"prefix": "app",
22+
"styles": [
23+
"app-theme.scss",
24+
"styles.scss",
25+
"../node_modules/prismjs/themes/prism-okaidia.css"
26+
],
27+
"scripts": [],
28+
"environmentSource": "environments/environment.ts",
29+
"environments": {
30+
"dev": "environments/environment.ts",
31+
"hmr": "environments/environment.hmr.ts",
32+
"prod": "environments/environment.prod.ts"
33+
}
34+
}
35+
],
36+
"e2e": {
37+
"protractor": {
38+
"config": "./protractor.conf.js"
39+
}
40+
},
41+
"lint": [
42+
{
43+
"project": "src/tsconfig.app.json"
44+
},
45+
{
46+
"project": "src/tsconfig.spec.json"
47+
},
48+
{
49+
"project": "e2e/tsconfig.e2e.json"
50+
}
51+
],
52+
"test": {
53+
"karma": {
54+
"config": "./karma.conf.js"
55+
}
56+
},
57+
"defaults": {
58+
"styleExt": "scss",
59+
"component": {}
60+
}
61+
}

.editorconfig

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.gitignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
8+
# dependencies
9+
/node_modules
10+
11+
# IDEs and editors
12+
/.idea
13+
.project
14+
.classpath
15+
.c9/
16+
*.launch
17+
.settings/
18+
*.sublime-workspace
19+
20+
# IDE - VSCode
21+
.vscode/*
22+
!.vscode/settings.json
23+
!.vscode/tasks.json
24+
!.vscode/launch.json
25+
!.vscode/extensions.json
26+
27+
# misc
28+
/.sass-cache
29+
/connect.lock
30+
/coverage
31+
/libpeerconnection.log
32+
npm-debug.log
33+
testem.log
34+
/typings
35+
36+
# e2e
37+
/e2e/*.js
38+
/e2e/*.map
39+
40+
# System Files
41+
.DS_Store
42+
Thumbs.db
43+
/src/assets/

.vscode/settings.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"vsicons.presets.angular": true
3+
}

README.md

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
# ngx-present
2+
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.0.
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+
Run `ng serve --hmr` for a dev server with Hot Module Replacement enabled.
10+
## Code scaffolding
11+
12+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.
13+
14+
## Build
15+
16+
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.
17+
18+
## Running unit tests
19+
20+
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
21+
22+
## Running end-to-end tests
23+
24+
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
25+
Before running the tests make sure you are serving the app via `ng serve`.
26+
27+
## Further help
28+
29+
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).
30+
31+
## Build and Deploy
32+
33+
`npm run publish`
34+
Publish to Github pages made available via [angular-cli-ghpages](https://www.npmjs.com/package/angular-cli-ghpages). Check out `package.json` for config string.
35+
36+
## Structure
37+
38+
```
39+
.
40+
├── angular-icon.png
41+
├── app
42+
│   ├── animations.ts // file for export Angular animations
43+
│   ├── app-routing.module.ts
44+
│   ├── app.component.html
45+
│   ├── app.component.scss
46+
│   ├── app.component.spec.ts
47+
│   ├── app.component.ts
48+
│   ├── app.module.ts
49+
│   ├── components-slides // any component slides should be kept here
50+
│   │   ├── components-slides.module.ts
51+
│   │   ├── components-slides.scss
52+
│   │   └── template.component.ts // component slide template
53+
│   ├── dcl-wrapper.component.ts
54+
│   ├── default-request-options.service.ts
55+
│   ├── selective-preloading-strategy.ts
56+
│   └── slides
57+
│   ├── slide
58+
│   │   └── slide.component.ts // SlideComponent interface
59+
│   ├── slide-area
60+
│   │   ├── slide-area.component.spec.ts
61+
│   │   └── slide-area.component.ts
62+
│   ├── slide-detail
63+
│   │   ├── slide-detail.component.spec.ts
64+
│   │   └── slide-detail.component.ts
65+
│   ├── slides-routing.module.ts
66+
│   ├── slides.directive.spec.ts
67+
│   ├── slides.directive.ts
68+
│   ├── slides.module.ts
69+
│   └── slides.service.ts // slides should be added here
70+
├── app-theme.scss
71+
├── assets // any markdown slides should be kept here
72+
│   ├── config.json
73+
│   ├── favicon.ico // Angular favicon for the main slide hr
74+
│   ├── resources // any slide images should be kept here
75+
│   │   └── angular.png
76+
│   └── template.md // markdown slide template
77+
├── environments
78+
│   ├── environment.hmr.ts
79+
│   ├── environment.prod.ts
80+
│   └── environment.ts
81+
├── favicon.ico
82+
├── hmr.ts // Hot Module Reloading configuration
83+
├── index.html // entry file
84+
├── main.ts
85+
├── palette.sass
86+
├── polyfills.ts
87+
├── styles.scss
88+
├── test.ts
89+
├── tsconfig.app.json
90+
├── tsconfig.spec.json
91+
└── typings.d.ts
92+
```

e2e/app.e2e-spec.ts

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { AngularAnimationsPage } from './app.po';
2+
3+
describe('angular-animations App', () => {
4+
let page: AngularAnimationsPage;
5+
6+
beforeEach(() => {
7+
page = new AngularAnimationsPage();
8+
});
9+
10+
it('should display message saying app works', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('app works!');
13+
});
14+
});

e2e/app.po.ts

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, element, by } from 'protractor';
2+
3+
export class AngularAnimationsPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}

e2e/tsconfig.e2e.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types":[
8+
"jasmine",
9+
"node"
10+
]
11+
}
12+
}

karma.conf.js

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
// Karma configuration file, see link for more information
2+
// https://karma-runner.github.io/0.13/config/configuration-file.html
3+
4+
module.exports = function (config) {
5+
config.set({
6+
basePath: '',
7+
frameworks: ['jasmine', '@angular/cli'],
8+
plugins: [
9+
require('karma-jasmine'),
10+
require('karma-chrome-launcher'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
13+
require('@angular/cli/plugins/karma')
14+
],
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
18+
files: [
19+
{ pattern: './src/test.ts', watched: false }
20+
],
21+
preprocessors: {
22+
'./src/test.ts': ['@angular/cli']
23+
},
24+
mime: {
25+
'text/x-typescript': ['ts','tsx']
26+
},
27+
coverageIstanbulReporter: {
28+
reports: [ 'html', 'lcovonly' ],
29+
fixWebpackSourcePaths: true
30+
},
31+
angularCli: {
32+
environment: 'dev'
33+
},
34+
reporters: config.angularCli && config.angularCli.codeCoverage
35+
? ['progress', 'coverage-istanbul']
36+
: ['progress', 'kjhtml'],
37+
port: 9876,
38+
colors: true,
39+
logLevel: config.LOG_INFO,
40+
autoWatch: true,
41+
browsers: ['Chrome'],
42+
singleRun: false
43+
});
44+
};

package.json

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
{
2+
"name": "ngx-present",
3+
"version": "0.0.0",
4+
"license": "MIT",
5+
"scripts": {
6+
"ng": "ng",
7+
"start": "ng serve",
8+
"hmr": "ng serve --hmr -e=hmr",
9+
"build": "ng build",
10+
"test": "ng test",
11+
"lint": "ng lint",
12+
"e2e": "ng e2e",
13+
"publish": "ng build --prod --base-href '.' & ngh"
14+
},
15+
"private": true,
16+
"dependencies": {
17+
"@angular/animations": "^4.1.0",
18+
"@angular/common": "^4.0.0",
19+
"@angular/compiler": "^4.0.0",
20+
"@angular/core": "^4.0.0",
21+
"@angular/forms": "^4.0.0",
22+
"@angular/http": "^4.0.0",
23+
"@angular/material": "^2.0.0-beta.3",
24+
"@angular/platform-browser": "^4.0.0",
25+
"@angular/platform-browser-dynamic": "^4.0.0",
26+
"@angular/router": "^4.0.0",
27+
"core-js": "^2.4.1",
28+
"ng2-markdown-to-html": "^1.1.2",
29+
"ngx-gist": "^1.0.3",
30+
"rxjs": "^5.1.0",
31+
"zone.js": "^0.8.4"
32+
},
33+
"devDependencies": {
34+
"@angular/cli": "1.0.0",
35+
"@angular/compiler-cli": "^4.0.0",
36+
"@angularclass/hmr": "^1.2.2",
37+
"@types/jasmine": "2.5.38",
38+
"@types/node": "~6.0.60",
39+
"codelyzer": "~2.0.0",
40+
"jasmine-core": "~2.5.2",
41+
"jasmine-spec-reporter": "~3.2.0",
42+
"karma": "~1.4.1",
43+
"karma-chrome-launcher": "~2.0.0",
44+
"karma-cli": "~1.0.1",
45+
"karma-coverage-istanbul-reporter": "^0.2.0",
46+
"karma-jasmine": "~1.1.0",
47+
"karma-jasmine-html-reporter": "^0.2.2",
48+
"protractor": "~5.1.0",
49+
"ts-node": "~2.0.0",
50+
"tslint": "~4.5.0",
51+
"typescript": "~2.2.0"
52+
}
53+
}

protractor.conf.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// Protractor configuration file, see link for more information
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
3+
4+
const { SpecReporter } = require('jasmine-spec-reporter');
5+
6+
exports.config = {
7+
allScriptsTimeout: 11000,
8+
specs: [
9+
'./e2e/**/*.e2e-spec.ts'
10+
],
11+
capabilities: {
12+
'browserName': 'chrome'
13+
},
14+
directConnect: true,
15+
baseUrl: 'http://localhost:4200/',
16+
framework: 'jasmine',
17+
jasmineNodeOpts: {
18+
showColors: true,
19+
defaultTimeoutInterval: 30000,
20+
print: function() {}
21+
},
22+
beforeLaunch: function() {
23+
require('ts-node').register({
24+
project: 'e2e/tsconfig.e2e.json'
25+
});
26+
},
27+
onPrepare() {
28+
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
29+
}
30+
};

src/angular-icon.png

1.73 KB
Loading

0 commit comments

Comments
 (0)