-
Notifications
You must be signed in to change notification settings - Fork 10
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
Antoine WEBER
committed
Aug 5, 2016
0 parents
commit e7e3218
Showing
49 changed files
with
2,843 additions
and
0 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,14 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = 0 | ||
trim_trailing_whitespace = 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,33 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
|
||
# dependencies | ||
/node_modules | ||
/bower_components | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
*.launch | ||
.settings/ | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage/* | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
|
||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
#System Files | ||
.DS_Store | ||
Thumbs.db |
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,31 @@ | ||
# Ng2Os | ||
|
||
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.10. | ||
|
||
## Development server | ||
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. | ||
|
||
## Code scaffolding | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/route/class`. | ||
|
||
## Build | ||
|
||
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. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
## Running end-to-end tests | ||
|
||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
Before running the tests make sure you are serving the app via `ng serve`. | ||
|
||
## Deploying to Github Pages | ||
|
||
Run `ng github-pages:deploy` to deploy to Github Pages. | ||
|
||
## Further help | ||
|
||
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). |
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,21 @@ | ||
// Angular-CLI build configuration | ||
// This file lists all the node_modules files that will be used in a build | ||
// Also see https://github.com/angular/angular-cli/wiki/3rd-party-libs | ||
|
||
/* global require, module */ | ||
|
||
var Angular2App = require('angular-cli/lib/broccoli/angular2-app'); | ||
|
||
module.exports = function(defaults) { | ||
return new Angular2App(defaults, { | ||
vendorNpmFiles: [ | ||
'systemjs/dist/system-polyfills.js', | ||
'systemjs/dist/system.src.js', | ||
'zone.js/dist/**/*.+(js|js.map)', | ||
'es6-shim/es6-shim.js', | ||
'reflect-metadata/**/*.+(ts|js|js.map)', | ||
'rxjs/**/*.+(js|js.map)', | ||
'@angular/**/*.+(js|js.map)' | ||
] | ||
}); | ||
}; |
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,32 @@ | ||
{ | ||
"project": { | ||
"version": "1.0.0-beta.10", | ||
"name": "ng2-os" | ||
}, | ||
"apps": [ | ||
{ | ||
"main": "src/main.ts", | ||
"tsconfig": "src/tsconfig.json", | ||
"mobile": false | ||
} | ||
], | ||
"addons": [], | ||
"packages": [], | ||
"e2e": { | ||
"protractor": { | ||
"config": "config/protractor.conf.js" | ||
} | ||
}, | ||
"test": { | ||
"karma": { | ||
"config": "config/karma.conf.js" | ||
} | ||
}, | ||
"defaults": { | ||
"prefix": "app", | ||
"sourceDir": "src", | ||
"styleExt": "css", | ||
"prefixInterfaces": false, | ||
"lazyRoutePrefix": "+" | ||
} | ||
} |
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,3 @@ | ||
export const environment = { | ||
production: 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,12 @@ | ||
// Angular-CLI server configuration | ||
// Unrelated to environment.dev|prod.ts | ||
|
||
/* jshint node: true */ | ||
|
||
module.exports = function(environment) { | ||
return { | ||
environment: environment, | ||
baseURL: '/', | ||
locationType: 'auto' | ||
}; | ||
}; |
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,3 @@ | ||
export const environment = { | ||
production: true | ||
}; |
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 @@ | ||
// Test shim for Karma, needed to load files via SystemJS | ||
|
||
/*global jasmine, __karma__, window*/ | ||
Error.stackTraceLimit = Infinity; | ||
jasmine.DEFAULT_TIMEOUT_INTERVAL = 1000; | ||
|
||
__karma__.loaded = function () { | ||
}; | ||
|
||
var distPath = '/base/dist/'; | ||
var appPaths = ['app']; //Add all valid source code folders here | ||
|
||
function isJsFile(path) { | ||
return path.slice(-3) == '.js'; | ||
} | ||
|
||
function isSpecFile(path) { | ||
return path.slice(-8) == '.spec.js'; | ||
} | ||
|
||
function isAppFile(path) { | ||
return isJsFile(path) && appPaths.some(function(appPath) { | ||
var fullAppPath = distPath + appPath + '/'; | ||
return path.substr(0, fullAppPath.length) == fullAppPath; | ||
}); | ||
} | ||
|
||
var allSpecFiles = Object.keys(window.__karma__.files) | ||
.filter(isSpecFile) | ||
.filter(isAppFile); | ||
|
||
// Load our SystemJS configuration. | ||
System.config({ | ||
baseURL: distPath | ||
}); | ||
|
||
System.import('system-config.js').then(function() { | ||
// Load and configure the TestComponentBuilder. | ||
return Promise.all([ | ||
System.import('@angular/core/testing'), | ||
System.import('@angular/platform-browser-dynamic/testing') | ||
]).then(function (providers) { | ||
var testing = providers[0]; | ||
var testingBrowser = providers[1]; | ||
|
||
testing.setBaseTestProviders(testingBrowser.TEST_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, | ||
testingBrowser.TEST_BROWSER_DYNAMIC_APPLICATION_PROVIDERS); | ||
}); | ||
}).then(function() { | ||
// Finally, load all spec files. | ||
// This will run the tests directly. | ||
return Promise.all( | ||
allSpecFiles.map(function (moduleName) { | ||
return System.import(moduleName); | ||
})); | ||
}).then(__karma__.start, __karma__.error); |
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,46 @@ | ||
// Karma configuration file, see link for more information | ||
// https://karma-runner.github.io/0.13/config/configuration-file.html | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '..', | ||
frameworks: ['jasmine'], | ||
plugins: [ | ||
require('karma-jasmine'), | ||
require('karma-chrome-launcher') | ||
], | ||
customLaunchers: { | ||
// chrome setup for travis CI using chromium | ||
Chrome_travis_ci: { | ||
base: 'Chrome', | ||
flags: ['--no-sandbox'] | ||
} | ||
}, | ||
files: [ | ||
{ pattern: 'dist/vendor/es6-shim/es6-shim.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/zone.js/dist/zone.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/reflect-metadata/Reflect.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/systemjs/dist/system-polyfills.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/systemjs/dist/system.src.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/zone.js/dist/async-test.js', included: true, watched: false }, | ||
{ pattern: 'dist/vendor/zone.js/dist/fake-async-test.js', included: true, watched: false }, | ||
|
||
{ pattern: 'config/karma-test-shim.js', included: true, watched: true }, | ||
|
||
// Distribution folder. | ||
{ pattern: 'dist/**/*', included: false, watched: true } | ||
], | ||
exclude: [ | ||
// Vendor packages might include spec files. We don't want to use those. | ||
'dist/vendor/**/*.spec.js' | ||
], | ||
preprocessors: {}, | ||
reporters: ['progress'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
autoWatch: true, | ||
browsers: ['Chrome'], | ||
singleRun: 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,32 @@ | ||
// Protractor configuration file, see link for more information | ||
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js | ||
|
||
/*global jasmine */ | ||
var SpecReporter = require('jasmine-spec-reporter'); | ||
|
||
exports.config = { | ||
allScriptsTimeout: 11000, | ||
specs: [ | ||
'../e2e/**/*.e2e-spec.ts' | ||
], | ||
capabilities: { | ||
'browserName': 'chrome' | ||
}, | ||
directConnect: true, | ||
baseUrl: 'http://localhost:4200/', | ||
framework: 'jasmine', | ||
jasmineNodeOpts: { | ||
showColors: true, | ||
defaultTimeoutInterval: 30000, | ||
print: function() {} | ||
}, | ||
useAllAngular2AppRoots: true, | ||
beforeLaunch: function() { | ||
require('ts-node').register({ | ||
project: 'e2e' | ||
}); | ||
}, | ||
onPrepare: function() { | ||
jasmine.getEnv().addReporter(new SpecReporter()); | ||
} | ||
}; |
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,14 @@ | ||
import { Ng2OsPage } from './app.po'; | ||
|
||
describe('ng2-os App', function() { | ||
let page: Ng2OsPage; | ||
|
||
beforeEach(() => { | ||
page = new Ng2OsPage(); | ||
}); | ||
|
||
it('should display message saying app works', () => { | ||
page.navigateTo(); | ||
expect(page.getParagraphText()).toEqual('app works!'); | ||
}); | ||
}); |
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,9 @@ | ||
export class Ng2OsPage { | ||
navigateTo() { | ||
return browser.get('/'); | ||
} | ||
|
||
getParagraphText() { | ||
return element(by.css('app-root h1')).getText(); | ||
} | ||
} |
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,17 @@ | ||
{ | ||
"compileOnSave": false, | ||
"compilerOptions": { | ||
"declaration": false, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"mapRoot": "", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"noEmitOnError": true, | ||
"noImplicitAny": false, | ||
"rootDir": ".", | ||
"sourceMap": true, | ||
"sourceRoot": "/", | ||
"target": "es5" | ||
} | ||
} |
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 @@ | ||
/// <reference path="../typings/index.d.ts" /> |
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,45 @@ | ||
{ | ||
"name": "ng2-os", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"angular-cli": {}, | ||
"scripts": { | ||
"start": "ng serve", | ||
"postinstall": "typings install", | ||
"lint": "tslint \"src/**/*.ts\"", | ||
"test": "ng test", | ||
"pree2e": "webdriver-manager update", | ||
"e2e": "protractor" | ||
}, | ||
"private": true, | ||
"dependencies": { | ||
"@angular/common": "2.0.0-rc.4", | ||
"@angular/compiler": "2.0.0-rc.4", | ||
"@angular/core": "2.0.0-rc.4", | ||
"@angular/forms": "0.2.0", | ||
"@angular/http": "2.0.0-rc.4", | ||
"@angular/platform-browser": "2.0.0-rc.4", | ||
"@angular/platform-browser-dynamic": "2.0.0-rc.4", | ||
"@angular/router": "3.0.0-beta.2", | ||
"es6-shim": "0.35.1", | ||
"reflect-metadata": "0.1.3", | ||
"rxjs": "5.0.0-beta.6", | ||
"systemjs": "0.19.26", | ||
"zone.js": "0.6.12" | ||
}, | ||
"devDependencies": { | ||
"angular-cli": "1.0.0-beta.10", | ||
"codelyzer": "0.0.20", | ||
"ember-cli-inject-live-reload": "1.4.0", | ||
"jasmine-core": "2.4.1", | ||
"jasmine-spec-reporter": "2.5.0", | ||
"karma": "0.13.22", | ||
"karma-chrome-launcher": "0.2.3", | ||
"karma-jasmine": "0.3.8", | ||
"protractor": "3.3.0", | ||
"ts-node": "0.5.5", | ||
"tslint": "3.11.0", | ||
"typescript": "1.8.10", | ||
"typings": "1.3.1" | ||
} | ||
} |
Empty file.
Oops, something went wrong.