Skip to content

Commit

Permalink
Project template
Browse files Browse the repository at this point in the history
  • Loading branch information
joelfillmore committed Sep 23, 2014
1 parent 31370b3 commit 13be11f
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Set default behaviour, in case users don't have core.autocrlf set.
* text=auto

# Explicitly declare text files we want to always be normalized and converted
# to native line endings on checkout.
*.js text
*.less text
*.html text

# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.gif binary
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.sublime-*
PxMap*.js
node_modules
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# PxMap

---

### The MIT License

Copyright (c) 2014 Pixel Lab

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.
67 changes: 67 additions & 0 deletions gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
/*global module:false*/
module.exports = function(grunt) {

var BANNER_TEMPLATE = '/*! <%= pkg.title %> | <%= pkg.homepage %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n';

// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
banner: BANNER_TEMPLATE
},
dist: {
src: [

],
dest: '<%= pkg.name %>.js'
}
},
jshint: {
files: [ 'gruntfile.js', 'js/*.js' ],
options: {
curly: true,
eqeqeq: true,
immed: true,
latedef: true,
newcap: true,
noarg: true,
sub: true,
undef: true,
boss: true,
eqnull: true,
browser: true,
globals: {
jQuery: true,
PxTouch: true,
console: true
}
}
},
watch: {
cj: {
files: ['<%= jshint.files %>'],
tasks: ['jshint', 'concat', 'copy', 'uglfiy']
}
},
uglify: {
options: {
banner: BANNER_TEMPLATE
},
dist: {
src: ['<%= concat.dist.dest %>'],
dest: '<%= pkg.name %>.min.js'
}
}
});

grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.registerTask('default', ['jshint', 'concat', 'uglify']);

};
24 changes: 24 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"name": "pxmap",
"title": "PxMap",
"homepage": "http://github.com/thinkpixellab/PxMap",
"author": {
"name": "Pixel Lab",
"url": "http://thinkpixellab.com"
},
"repository": {
"type": "git",
"url": "http://github.com/thinkpixellab/PxMap.git"
},
"dependencies": {
"grunt": "~0.4.1",
"grunt-contrib-clean": "^0.4.1",
"grunt-contrib-concat": "^0.1.3",
"grunt-contrib-copy": "^0.4.1",
"grunt-contrib-jshint": "^0.2.0",
"grunt-contrib-uglify": "^0.1.2",
"grunt-contrib-watch": "^0.3.1"
},
"devDependencies": {},
"keywords": []
}

0 comments on commit 13be11f

Please sign in to comment.