Skip to content

Commit

Permalink
package.json and Gruntfile.js are added.
Browse files Browse the repository at this point in the history
  • Loading branch information
ezze committed Jun 18, 2015
1 parent 876d4dd commit ebd4ef5
Show file tree
Hide file tree
Showing 7 changed files with 114 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
node_modules
/satellite.js
21 changes: 21 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"browser": false,
"camelcase": true,
"curly": true,
"devel": true,
"eqeqeq": true,
"expr": false,
"globals": {
// RequireJS
"define": false,
"require": false
},
"indent": 4,
"maxdepth": 4,
"maxlen": 120,
"newcap": false,
"noarg": true,
"quotmark": "single",
"undef": true,
"unused": "vars"
}
26 changes: 26 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/* global module: false, require: false, process: false */
module.exports = function(grunt) {
'use strict';

var path = require('path');
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt'),
init: true,
data: {
pkg: grunt.file.readJSON('package.json')
}
});

grunt.registerTask('build', [
'jshint'
]);

grunt.registerTask('rebuild', [
'clean',
'build'
]);

grunt.registerTask('default', [
'build'
]);
};
Empty file added grunt/clean.js
Empty file.
25 changes: 25 additions & 0 deletions grunt/jshint.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/* global module: false */
module.exports = function(grunt) {
'use strict';

return {
options: {
jshintrc: '.jshintrc'
},
gruntfile: {
files: {
src: [
'Gruntfile.js',
'grunt/**/*.js'
]
}
},
library: {
files: {
src: [
'src/**/*.js'
]
}
}
};
};
Empty file added grunt/uglify.js
Empty file.
41 changes: 41 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"name": "satellite-js",
"version": "1.2.0",
"description": "SGP4/SDP4 calculation library",
"main": "satellite.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git://github.com/solarpatrol/satellite-js"
},
"keywords": [
"sgp4",
"satellite"
],
"author": {
"name": "Shashwat Kandadai"
},
"contributors": [
{
"name": "Dmitriy Pushkov",
"email": "ezze@ezze.org",
"url": "http://www.ezze.org"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/solarpatrol/satellite-js/issues"
},
"dependencies": {
"requirejs": "~2.1.18"
},
"devDependencies": {
"grunt": "~0.4.5",
"grunt-contrib-clean": "~0.6.0",
"grunt-contrib-jshint": "~0.11.2",
"grunt-contrib-uglify": "~0.9.1",
"load-grunt-config": "~0.17.1"
}
}

0 comments on commit ebd4ef5

Please sign in to comment.