You've already forked MenuGraphr
mirror of
https://github.com/FullScreenShenanigans/MenuGraphr.git
synced 2026-04-28 13:02:13 -07:00
Added wrapping files
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,85 @@
|
||||
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"
|
||||
}
|
||||
},
|
||||
"clean": ["<%= meta.paths.dist %>"],
|
||||
"copy": {
|
||||
"default": {
|
||||
"files": [{
|
||||
"src": "<%= meta.paths.source %>/<%= pkg.name %>.js",
|
||||
"dest": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.js"
|
||||
}, {
|
||||
"src": "<%= meta.paths.source %>/<%= pkg.name %>.ts",
|
||||
"dest": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.ts"
|
||||
}, {
|
||||
"src": "<%= meta.paths.source %>/References/*.ts",
|
||||
"dest": "<%= meta.paths.dist %>/",
|
||||
"expand": true,
|
||||
"flatten": true
|
||||
}, {
|
||||
"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,
|
||||
"sourceMap": true
|
||||
},
|
||||
"dist": {
|
||||
"files": {
|
||||
"<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.min.js": ["<%= meta.paths.source %>/<%= pkg.name %>.js"],
|
||||
}
|
||||
}
|
||||
},
|
||||
"preprocess": {
|
||||
"dist": {
|
||||
"src": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.ts",
|
||||
"dest": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.ts"
|
||||
}
|
||||
},
|
||||
"mocha_phantomjs": {
|
||||
"all": ["Tests/*.html"]
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks("grunt-contrib-clean");
|
||||
grunt.loadNpmTasks("grunt-contrib-copy");
|
||||
grunt.loadNpmTasks("grunt-contrib-uglify");
|
||||
grunt.loadNpmTasks("grunt-mocha-phantomjs");
|
||||
grunt.loadNpmTasks("grunt-preprocess");
|
||||
grunt.loadNpmTasks("grunt-tslint");
|
||||
grunt.loadNpmTasks("grunt-typescript");
|
||||
grunt.registerTask("default", [
|
||||
"tslint", "typescript", "clean", "copy", "uglify", "preprocess", "mocha_phantomjs"
|
||||
]);
|
||||
};
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
@@ -0,0 +1 @@
|
||||
# MenuGraphr [](https://travis-ci.org/FullScreenShenanigans/MenuGraphr)
|
||||
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"name": "MenuGraphr",
|
||||
"description": "",
|
||||
"version": "0.2.0",
|
||||
"author": {
|
||||
"name": "Josh Goldberg",
|
||||
"email": "josh@fullscreenmario.com"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "ssh://git@github.com:FullScreenShenanigans/MenuGraphr.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/FullScreenShenanigans/MenuGraphr/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"chai": "~2.2.X",
|
||||
"grunt": "~0.4.X",
|
||||
"grunt-cli": "~0.1.X",
|
||||
"grunt-contrib-clean": "~0.6.0",
|
||||
"grunt-contrib-copy": "~0.8.X",
|
||||
"grunt-contrib-uglify": "~0.9.X",
|
||||
"grunt-mocha-phantomjs": "~0.6.X",
|
||||
"grunt-tslint": "2.0.X",
|
||||
"grunt-typescript": "0.6.X",
|
||||
"mocha": "~2.2.X",
|
||||
"grunt-preprocess": "~4.1.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