Added initial TS wrappings

This commit is contained in:
Josh Goldberg
2015-05-11 05:41:02 -04:00
parent ed6d08b6ee
commit f8ed12591d
6 changed files with 232 additions and 70 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
+19 -6
View File
@@ -1,7 +1,7 @@
{
"name": "StringFilr",
"description": "StringFilr - A general utility for retrieving data from an Object based on nested class names.",
"version": "0.1.0",
"description": "A general utility for retrieving data from an Object based on nested class names.",
"version": "0.2.0",
"author": {
"name": "Josh Goldberg",
"email": "josh@fullscreenmario.com"
@@ -13,8 +13,21 @@
"bugs": {
"url": "https://github.com/FullScreenShenanigans/StringFilr/issues"
},
"licenses": [{
"type": "Attribution Non-Commercial Share-Alike",
"url": "https://github.com/FullScreenShenanigans/StringFilr/blob/master/LICENSE.txt"
}]
"licenses": [
{
"type": "MIT",
"url": "https://github.com/FullScreenShenanigans/StringFilr/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"
]
}
}