mirror of
https://github.com/FullScreenShenanigans/TimeHandlr.git
synced 2026-08-12 02:18:18 -07:00
Added initial TS wrappings
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
Distribution
|
||||
Distribution/**
|
||||
Source/*.js
|
||||
Source/*.md
|
||||
Source/*.txt
|
||||
node_modules/
|
||||
npm-debug.log
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
language: node_js
|
||||
|
||||
node_js:
|
||||
- "0.12"
|
||||
|
||||
before_script:
|
||||
npm install
|
||||
|
||||
script:
|
||||
grunt
|
||||
@@ -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
File diff suppressed because one or more lines are too long
@@ -1,7 +1,7 @@
|
||||
# TimeHandlr.js
|
||||
|
||||
A timed events library intended to provide a flexible alternative to setTimeout
|
||||
and setInterval that respects pauses and resumes. Events (which are really
|
||||
A timed events library that provides flexible alternatives to setTimeout and
|
||||
setInterval that respect pauses resumes, and extensibility. Events (which are
|
||||
Functions with arguments pre-set) are assigned integer timestamps, and can be
|
||||
set to repeat a number of times determined by a number or callback Function.
|
||||
Functionality to automatically "cycle" between certain classes of an Object is
|
||||
|
||||
+24
-9
@@ -1,20 +1,35 @@
|
||||
{
|
||||
"name": "ThingHittr",
|
||||
"description": "ThingHittr - A Thing collision detection automator that unifies GroupHoldr and QuadsKeepr.",
|
||||
"version": "0.1.0",
|
||||
"name": "TimeHandlr",
|
||||
"description": "A timed events library that provides flexible alternatives to setTimeout and setInterval that respect pauses resumes, and extensibility.",
|
||||
"version": "0.2.0",
|
||||
"author": {
|
||||
"name": "Josh Goldberg",
|
||||
"email": "josh@fullscreenmario.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com:FullScreenShenanigans/ThingHittr.git"
|
||||
"url": "ssh://git@github.com:FullScreenShenanigans/TimeHandlr.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/FullScreenShenanigans/ThingHittr/issues"
|
||||
"url": "https://github.com/FullScreenShenanigans/TimeHandlr/issues"
|
||||
},
|
||||
"licenses": [{
|
||||
"type": "Attribution Non-Commercial Share-Alike",
|
||||
"url": "https://github.com/FullScreenShenanigans/ThingHittr/blob/master/LICENSE.txt"
|
||||
}]
|
||||
"licenses": [
|
||||
{
|
||||
"type": "MIT",
|
||||
"url": "https://github.com/FullScreenShenanigans/TimeHandlr/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",
|
||||
"tslint": "~2.0.X",
|
||||
"typescript": "~1.4.X"
|
||||
}
|
||||
}
|
||||
+113
@@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user