Added initial TS wrappings

This commit is contained in:
Josh Goldberg
2015-05-10 22:51:05 -04:00
parent 1731aac213
commit 30e3790ae1
7 changed files with 233 additions and 71 deletions
+7
View File
@@ -0,0 +1,7 @@
Distribution
Distribution/**
Source/*.js
Source/*.md
Source/*.txt
node_modules/
npm-debug.log
+10
View File
@@ -0,0 +1,10 @@
language: node_js
node_js:
- "0.12"
before_script:
npm install
script:
grunt
+67
View File
@@ -0,0 +1,67 @@
module.exports = function (grunt) {
grunt.initConfig({
"pkg": grunt.file.readJSON("package.json"),
"meta": {
"paths": {
"source": "Source",
"dist": "Distribution"
}
},
"tslint": {
"options": {
"configuration": grunt.file.readJSON("tslint.json")
},
"files": {
"src": ["<%= meta.paths.source %>/<%= pkg.name %>.ts"]
}
},
"typescript": {
"base": {
"src": "<%= meta.paths.source %>/<%= pkg.name %>.ts",
"dest": "<%= meta.paths.source %>/<%= pkg.name %>.js"
}
},
"copy": {
"default": {
"files": [{
"src": "<%= meta.paths.source %>/<%= pkg.name %>.ts",
"dest": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.ts"
}, {
"src": "README.md",
"dest": "<%= meta.paths.dist %>/"
}, {
"src": "README.md",
"dest": "<%= meta.paths.source %>/"
}, {
"src": "LICENSE.txt",
"dest": "<%= meta.paths.dist %>/"
}, {
"src": "LICENSE.txt",
"dest": "<%= meta.paths.source %>/"
}]
}
},
"uglify": {
"options": {
"compress": true
},
"dist": {
"files": {
"<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.min.js": ["<%= meta.paths.source %>/<%= pkg.name %>.js"],
}
}
},
"mocha_phantomjs": {
"all": ["Tests/*.html"]
}
});
grunt.loadNpmTasks("grunt-contrib-copy");
grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-mocha-phantomjs");
grunt.loadNpmTasks("grunt-tslint");
grunt.loadNpmTasks("grunt-typescript");
grunt.registerTask("default", [
"tslint", "typescript", "copy", "uglify", "mocha_phantomjs"
]);
};
+16 -64
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
# ModAttachr
An addon for for extensible modding functionality. "Mods" register triggers such
An addon to define extensibility triggers for projects for modding. "Mods" register triggers such
as "onModEnable" or "onReset" that can be triggered.
+19 -6
View File
@@ -1,7 +1,7 @@
{
"name": "ModAttachr",
"description": "ModAttachr - An addon for for extensible modding functionality.",
"version": "0.1.0",
"description": "An addon to define extensibility triggers for projects for modding.",
"version": "0.2.0",
"author": {
"name": "Josh Goldberg",
"email": "josh@fullscreenmario.com"
@@ -13,8 +13,21 @@
"bugs": {
"url": "https://github.com/FullScreenShenanigans/ModAttachr/issues"
},
"licenses": [{
"type": "Attribution Non-Commercial Share-Alike",
"url": "https://github.com/FullScreenShenanigans/ModAttachr/blob/master/LICENSE.txt"
}]
"licenses": [
{
"type": "MIT",
"url": "https://github.com/FullScreenShenanigans/ModAttachr/blob/master/LICENSE.txt"
}
],
"dependencies": {
"chai": "2.2.X",
"grunt": "0.4.X",
"grunt-cli": "0.1.X",
"grunt-contrib-copy": "0.8.X",
"grunt-contrib-uglify": "0.8.X",
"grunt-mocha-phantomjs": "0.6.X",
"grunt-tslint": "2.0.X",
"grunt-typescript": "0.6.X",
"mocha": "~2.2.X"
}
}
+113
View File
@@ -0,0 +1,113 @@
{
"rules": {
"align": [
true,
"parameters",
"arguments",
"statements"
],
"ban": false,
"class-name": true,
"comment-format": [
true,
"check-space"
],
"curly": true,
"eofline": true,
"forin": true,
"indent": [
true,
4
],
"interface-name": true,
"jsdoc-format": true,
"label-position": true,
"label-undefined": true,
"max-line-length": [
true,
140
],
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"no-arg": true,
"no-bitwise": false,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-construct": true,
"no-constructor-vars": true,
"no-debugger": true,
"no-duplicate-key": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-comma": true,
"no-trailing-whitespace": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-unreachable": true,
"no-use-before-declare": true,
"no-var-requires": true,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [
true,
"double"
],
"radix": true,
"semicolon": true,
"switch-default": true,
"triple-equals": [
true,
"allow-null-check"
],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"use-strict": [
true,
"check-module",
"check-function"
],
"variable-name": false,
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}