From 7c1fd5de39d0b7e96adb80b1d06c83dd8ffe29df Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Tue, 6 Sep 2016 13:41:48 +0200 Subject: [PATCH] Initial empty Angular2 project It is based on Angular 2.0.0 RC6. Signed-off-by: Gergely Polonkai --- .gitignore | 3 +++ README.md | 3 +++ package.json | 43 +++++++++++++++++++++++++++++++++++++++++++ systemjs.config.js | 43 +++++++++++++++++++++++++++++++++++++++++++ tsconfig.json | 12 ++++++++++++ typings.json | 7 +++++++ 6 files changed, 111 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 package.json create mode 100644 systemjs.config.js create mode 100644 tsconfig.json create mode 100644 typings.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..51e8a33 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/typings/ +/node_modules/ +/npm-debug.log diff --git a/README.md b/README.md new file mode 100644 index 0000000..a8c90c5 --- /dev/null +++ b/README.md @@ -0,0 +1,3 @@ +# Rubber Duck Booking Tool Front-end + +This is the front-end counterpart of the Rubber Duck Booking Tool. diff --git a/package.json b/package.json new file mode 100644 index 0000000..cceb371 --- /dev/null +++ b/package.json @@ -0,0 +1,43 @@ +{ + "name": "duck-booking-front", + "description": "Front-end for the Rubber Duck Booking Tool", + "repository": { + "type": "git", + "url": "https://github.com/gergelypolonkai/duckbook-front" + }, + "version": "1.0.0", + "scripts": { + "start": "tsc && concurrently \"npm run tsc:w\" \"npm run lite\" ", + "lite": "lite-server", + "postinstall": "typings install", + "tsc": "tsc", + "tsc:w": "tsc -w", + "typings": "typings" + }, + "license": "ISC", + "dependencies": { + "@angular/common": "2.0.0-rc.6", + "@angular/compiler": "2.0.0-rc.6", + "@angular/compiler-cli": "0.6.0", + "@angular/core": "2.0.0-rc.6", + "@angular/forms": "2.0.0-rc.6", + "@angular/http": "2.0.0-rc.6", + "@angular/platform-browser": "2.0.0-rc.6", + "@angular/platform-browser-dynamic": "2.0.0-rc.6", + "@angular/router": "3.0.0-rc.2", + "@angular/upgrade": "2.0.0-rc.6", + "core-js": "^2.4.1", + "reflect-metadata": "^0.1.3", + "rxjs": "5.0.0-beta.11", + "systemjs": "0.19.27", + "zone.js": "^0.6.17", + "angular2-in-memory-web-api": "0.0.18", + "bootstrap": "^3.3.6" + }, + "devDependencies": { + "concurrently": "^2.2.0", + "lite-server": "^2.2.2", + "typescript": "^1.8.10", + "typings": "^1.3.2" + } +} diff --git a/systemjs.config.js b/systemjs.config.js new file mode 100644 index 0000000..de199e6 --- /dev/null +++ b/systemjs.config.js @@ -0,0 +1,43 @@ +/** + * System configuration for Angular 2 samples + * Adjust as necessary for your application needs. + */ +(function (global) { + System.config({ + paths: { + // paths serve as alias + 'npm:': 'node_modules/' + }, + // map tells the System loader where to look for things + map: { + // our app is within the app folder + app: 'app', + // angular bundles + '@angular/core': 'npm:@angular/core/bundles/core.umd.js', + '@angular/common': 'npm:@angular/common/bundles/common.umd.js', + '@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js', + '@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js', + '@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js', + '@angular/http': 'npm:@angular/http/bundles/http.umd.js', + '@angular/router': 'npm:@angular/router/bundles/router.umd.js', + '@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js', + // other libraries + 'rxjs': 'npm:rxjs', + 'angular2-in-memory-web-api': 'npm:angular2-in-memory-web-api', + }, + // packages tells the System loader how to load when no filename and/or no extension + packages: { + app: { + main: './main.js', + defaultExtension: 'js' + }, + rxjs: { + defaultExtension: 'js' + }, + 'angular2-in-memory-web-api': { + main: './index.js', + defaultExtension: 'js' + } + } + }); +})(this); diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..e6a6eac --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,12 @@ +{ + "compilerOptions": { + "target": "es5", + "module": "commonjs", + "moduleResolution": "node", + "sourceMap": true, + "emitDecoratorMetadata": true, + "experimentalDecorators": true, + "removeComments": false, + "noImplicitAny": false + } +} diff --git a/typings.json b/typings.json new file mode 100644 index 0000000..72db971 --- /dev/null +++ b/typings.json @@ -0,0 +1,7 @@ +{ + "globalDependencies": { + "core-js": "registry:dt/core-js#0.0.0+20160725163759", + "jasmine": "registry:dt/jasmine#2.2.0+20160621224255", + "node": "registry:dt/node#6.0.0+20160831021119" + } +}