-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
f7c087b
commit e6fbf02
Showing
12 changed files
with
102 additions
and
4 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module avam{ | ||
'use strict'; | ||
angular.module("avam", ["avamUI"]); | ||
angular.module("avam", ["avamUi"]); | ||
} |
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,20 @@ | ||
/// <reference path="../typings/angularjs/angular.d.ts" /> | ||
var avam; | ||
(function (avam) { | ||
var ui; | ||
(function (ui) { | ||
var AvamUiDirective = (function () { | ||
function AvamUiDirective() { | ||
this.replace = true; | ||
this.transclude = false; | ||
this.scope = {}; | ||
this.template = "<h1>Hi There</h1>"; | ||
} | ||
AvamUiDirective.instance = function () { | ||
return new AvamUiDirective; | ||
}; | ||
return AvamUiDirective; | ||
})(); | ||
angular.module("avamUi").directive("avamUi", AvamUiDirective.instance); | ||
})(ui = avam.ui || (avam.ui = {})); | ||
})(avam || (avam = {})); |
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 @@ | ||
/// <reference path="../typings/angularjs/angular.d.ts" /> | ||
var avam; | ||
(function (avam) { | ||
var ui; | ||
(function (ui) { | ||
'use strict'; | ||
angular.module("avamUI", []); | ||
})(ui = avam.ui || (avam.ui = {})); | ||
})(avam || (avam = {})); |
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 @@ | ||
'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; |
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,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)); | ||
}); |
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 |
---|---|---|
@@ -1,9 +1,20 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.css"> | ||
<link rel="stylesheet" href="src/avamUi.css"> | ||
</head> | ||
<body> | ||
|
||
<avam-ui></avam-ui> | ||
|
||
<script src="lib/jquery/dist/jquery.js"></script> | ||
<script src="lib/angular/angular.js"></script> | ||
|
||
<script src="dist/avamUI.module.js"></script> | ||
<script src="dist/avamUI.directive.js"></script> | ||
|
||
<script src="app/app.module.js"></script> | ||
|
||
</body> | ||
</html> |
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,15 @@ | ||
/// <reference path="../typings/angularjs/angular.d.ts" /> | ||
|
||
module avam.ui{ | ||
class AvamUiDirective implements ng.IDirective{ | ||
static instance() : ng.IDirective{ | ||
return new AvamUiDirective; | ||
} | ||
replace = true; | ||
transclude=false; | ||
scope = { | ||
}; | ||
template="<h1>Hi There</h1>"; | ||
} | ||
angular.module("avamUi").directive("avamUi", AvamUiDirective.instance); | ||
} |
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
Empty file.
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