Skip to content

Commit

Permalink
Initial commit of code
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Aug 2, 2014
1 parent 87b76f3 commit d0f2e0d
Show file tree
Hide file tree
Showing 57 changed files with 93,887 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ build/Release
# Deployed apps should consider commenting this line out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules
.sass-cache/*
22 changes: 3 additions & 19 deletions .jshintrc
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,10 @@
"loopfunc": true,
"evil": true,
"globals": {
"localStorage": true,
"XMLHttpRequest": true,
"require": true,
"XDomainRequest": true,
"Document": true,
"Element": true,
"CustomEvent": true,
"Buffer": true,
"console": true,
"process": true,
"module": true,
"define": true,
"setImmediate": true,
"mongodb": true,
"format": true,
"Blob": true,
"Worker": true,
"postMessage": true,
"requestAnimationFrame": true,
"btoa": true,
"Promise": true
"process": true,
"require": true,
"__dirname": true
}
}
94 changes: 94 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
module.exports = function (grunt) {
grunt.initConfig({
pkg : grunt.file.readJSON("package.json"),
concat : {
options : {
banner : "/**\n" +
" * <%= pkg.description %>\n" +
" *\n" +
" * @author <%= pkg.author.name %> <<%= pkg.author.email %>>\n" +
" * @copyright <%= grunt.template.today('yyyy') %> <%= pkg.author.name %>\n" +
" * @license <%= pkg.licenses[0].type %> <<%= pkg.licenses[0].url %>>\n" +
" * @link <%= pkg.homepage %>\n" +
" * @module <%= pkg.name %>\n" +
" * @version <%= pkg.version %>\n" +
" */\n"
},
dist : {
src : [
"src/intro.js",
"src/constructor.js",
"src/bootstrap.js",
"src/factory.js",
"src/outro.js"
],
dest : "lib/<%= pkg.name %>.js"
}
},
jsdoc : {
dist : {
src: ["lib/<%= pkg.name %>.js", "README.md"],
options: {
destination : "doc",
template : "node_modules/ink-docstrap/template",
configure : "docstrap.json",
"private" : false
}
}
},
jshint : {
options : {
jshintrc : ".jshintrc"
},
src : "lib/<%= pkg.name %>.js"
},
nodeunit : {
all : ["test/*.js"]
},
sass: {
dist: {
options : {
style : "compressed"
},
files : {
"www/css/style.css" : "sass/style.scss"
}
}
},
sed : {
version : {
pattern : "{{VERSION}}",
replacement : "<%= pkg.version %>",
path : ["<%= concat.dist.dest %>"]
}
},
watch : {
js : {
files : "<%= concat.dist.src %>",
tasks : "default"
},
pkg: {
files : "package.json",
tasks : "default"
},
sass: {
files : "sass/style.scss",
tasks : "default"
}
}
});

// tasks
grunt.loadNpmTasks("grunt-sed");
grunt.loadNpmTasks("grunt-jsdoc");
grunt.loadNpmTasks("grunt-contrib-concat");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-contrib-sass");

// aliases
grunt.registerTask("test", ["jshint"/*, "nodeunit"*/]);
grunt.registerTask("build", ["concat", "sed", "sass"]);
grunt.registerTask("default", ["build", "test", "jsdoc"]);
};
14 changes: 14 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"auth": null,
"hostname": "localhost",
"pageSize": 5,
"port": 8000,
"log": {
"dtrace": false,
"syslog": false
},
"ssl": {
"key": null,
"cert": null
}
}
Loading

0 comments on commit d0f2e0d

Please sign in to comment.