Skip to content

Commit

Permalink
Initial ng-facade implementation
Browse files Browse the repository at this point in the history
Provides Angular (v2) style annotations such as NgModule, Component, Directive, Input, Injectable, Inject, ...
and transforms the declarations into AngularJS (v1) modules, components, ...
  • Loading branch information
Jason Bedard committed Feb 4, 2017
1 parent 513aab9 commit e2383a6
Show file tree
Hide file tree
Showing 9 changed files with 4,789 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
dist/
node_modules/
3 changes: 3 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
coverage/
node_modules/
dist/*.spec.*
49 changes: 49 additions & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
"use strict";

module.exports = function(config) {
config.set({
basePath: "",

frameworks: ["jasmine", "karma-typescript"],

client: {
jasmine: {
random: true
}
},

files: [
{pattern: "src/**/*.ts"}
],

reporters: ["progress", "karma-typescript"],

coverageReporter: {
type: "in-memory"
},

preprocessors: {
"**/*.ts": ["karma-typescript"]
},

karmaTypescriptConfig: {
coverageOptions: {
//Enabled coverage when running in non-server mode
instrumentation: config.singleRun
},
},

port: 9876,

colors: true,

logLevel: "INFO",

reportSlowerThan: 100,

browsers: config.browsers.length ? config.browsers : ["Chrome"],

captureTimeout: 60000,
browserNoActivityTimeout: 60000
});
};
34 changes: 34 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "ng-facade",
"version": "0.1.1",
"description": "Angular style annotations in AngularJS",
"main": "dist/facade.js",
"types": "dist/facade.d.ts",
"author": "Jason Bedard",
"license": "MIT",
"devDependencies": {
"@types/angular": "^1.6",
"@types/jasmine": "^2.5",
"istanbul": "^0.4",
"jasmine": "^2.5",
"jasmine-core": "^2.5",
"karma": "^1.3",
"karma-chrome-launcher": "^2.0",
"karma-coverage": "^1.1",
"karma-jasmine": "^1.1",
"karma-typescript": "^2.1",
"tslib": "^1.5.0",
"tslint": "^4.4",
"typescript": "^2.1"
},
"dependencies": {
"angular": "^1.5",
"reflect-metadata": "^0.1"
},
"scripts": {
"build": "tsc",
"test": "karma start karma.conf.js --single-run",
"test-server": "karma start karma.conf.js",
"lint": "tslint -c ./tslint.json --type-check --project ./tsconfig.json ./src/*.ts"
}
}
Loading

0 comments on commit e2383a6

Please sign in to comment.