From e6fbf0271ae643704c3c3d0506d5ca12287b01d1 Mon Sep 17 00:00:00 2001 From: Balwidner Katoch Date: Wed, 2 Dec 2015 22:27:39 -0500 Subject: [PATCH] 'msg' --- .vscode/settings.json | 3 ++- app/app.module.js | 2 +- app/app.module.ts | 2 +- dist/avamUI.directive.js | 20 ++++++++++++++++++++ dist/avamUI.module.js | 9 +++++++++ gulpfile.config.js | 14 ++++++++++++++ gulpfile.js | 26 ++++++++++++++++++++++++++ index.html | 11 +++++++++++ src/avamUI.directive.ts | 15 +++++++++++++++ src/avamUI.module.ts | 2 ++ src/avamUi.css | 0 tsconfig.json | 2 +- 12 files changed, 102 insertions(+), 4 deletions(-) create mode 100644 dist/avamUI.directive.js create mode 100644 dist/avamUI.module.js create mode 100644 gulpfile.config.js create mode 100644 gulpfile.js create mode 100644 src/avamUI.directive.ts create mode 100644 src/avamUi.css diff --git a/.vscode/settings.json b/.vscode/settings.json index 48dda73..62ef092 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -4,6 +4,7 @@ "**/.git": true, "**/.DS_Store": true, "app/**/*.js" : true, - "app/**/*.map" :true + "app/**/*.map" :true, + "node_modules" : true } } \ No newline at end of file diff --git a/app/app.module.js b/app/app.module.js index e79cbd6..989c14f 100644 --- a/app/app.module.js +++ b/app/app.module.js @@ -1,6 +1,6 @@ var avam; (function (avam) { 'use strict'; - angular.module("avam", ["avamUI"]); + angular.module("avam", ["avamUi"]); })(avam || (avam = {})); //# sourceMappingURL=app.module.js.map \ No newline at end of file diff --git a/app/app.module.ts b/app/app.module.ts index b81f61e..0d0f420 100644 --- a/app/app.module.ts +++ b/app/app.module.ts @@ -1,4 +1,4 @@ module avam{ 'use strict'; - angular.module("avam", ["avamUI"]); + angular.module("avam", ["avamUi"]); } \ No newline at end of file diff --git a/dist/avamUI.directive.js b/dist/avamUI.directive.js new file mode 100644 index 0000000..e421ea5 --- /dev/null +++ b/dist/avamUI.directive.js @@ -0,0 +1,20 @@ +/// +var avam; +(function (avam) { + var ui; + (function (ui) { + var AvamUiDirective = (function () { + function AvamUiDirective() { + this.replace = true; + this.transclude = false; + this.scope = {}; + this.template = "

Hi There

"; + } + AvamUiDirective.instance = function () { + return new AvamUiDirective; + }; + return AvamUiDirective; + })(); + angular.module("avamUi").directive("avamUi", AvamUiDirective.instance); + })(ui = avam.ui || (avam.ui = {})); +})(avam || (avam = {})); diff --git a/dist/avamUI.module.js b/dist/avamUI.module.js new file mode 100644 index 0000000..232bb00 --- /dev/null +++ b/dist/avamUI.module.js @@ -0,0 +1,9 @@ +/// +var avam; +(function (avam) { + var ui; + (function (ui) { + 'use strict'; + angular.module("avamUI", []); + })(ui = avam.ui || (avam.ui = {})); +})(avam || (avam = {})); diff --git a/gulpfile.config.js b/gulpfile.config.js new file mode 100644 index 0000000..3525203 --- /dev/null +++ b/gulpfile.config.js @@ -0,0 +1,14 @@ +'use strict'; +var GulpConfig = (function () { + function gulpConfig() { + this.typeScriptSourceFiles = './src/**/*.ts'; + this.libraryTypeScriptDefinitions = './typings/**/*.ts'; + this.outputFile="avam-ui.js"; + this.outputPath = "./dist/"; + this.templatePath = "./src/*.html"; + this.jsFilePath = "./dist/*.js"; + this.moduleName = 'avamUI'; + } + return gulpConfig; +})(); +module.exports = GulpConfig; \ No newline at end of file diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000..2d227f2 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,26 @@ +var gulp = require('gulp'), + ts = require('gulp-typescript'), + Config = require('./gulpfile.config'), + angularFilesort = require('gulp-angular-filesort'), + concat = require('gulp-concat'), + templateCache = require('gulp-angular-templatecache'), + uglify = require('gulp-uglify'), + del = require('del'), + gulpConfig = new Config(); + + +gulp.task('clean', function(cb){ + del(['dist'], cb); +}); + +gulp.task('compile:ts', function(){ + var sourceFiles = [ + gulpConfig.typeScriptSourceFiles, + gulpConfig.libraryTypeScriptDefinitions + ]; + return gulp.src(sourceFiles) + .pipe(ts({ + noImplicitAny: true + })) + .pipe(gulp.dest(gulpConfig.outputPath)); +}); \ No newline at end of file diff --git a/index.html b/index.html index 184bc85..d251c41 100644 --- a/index.html +++ b/index.html @@ -1,9 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/src/avamUI.directive.ts b/src/avamUI.directive.ts new file mode 100644 index 0000000..7346c89 --- /dev/null +++ b/src/avamUI.directive.ts @@ -0,0 +1,15 @@ +/// + +module avam.ui{ + class AvamUiDirective implements ng.IDirective{ + static instance() : ng.IDirective{ + return new AvamUiDirective; + } + replace = true; + transclude=false; + scope = { + }; + template="

Hi There

"; + } + angular.module("avamUi").directive("avamUi", AvamUiDirective.instance); +} \ No newline at end of file diff --git a/src/avamUI.module.ts b/src/avamUI.module.ts index 9773fb1..213f190 100644 --- a/src/avamUI.module.ts +++ b/src/avamUI.module.ts @@ -1,3 +1,5 @@ +/// + module avam.ui{ 'use strict'; angular.module("avamUI", []); diff --git a/src/avamUi.css b/src/avamUi.css new file mode 100644 index 0000000..e69de29 diff --git a/tsconfig.json b/tsconfig.json index 99ca2af..c13f091 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,7 +5,7 @@ "sourceMap": true, "removeComments": true, "noResolve": true, - "noLib": false + "noLib": true }, "files": [ "app/app.module.ts"