-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b946773
commit be8c693
Showing
43 changed files
with
9,020 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
module.exports = function (grunt) { | ||
|
||
// Project configuration. | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
meta: { | ||
banner: '/* <%= pkg.name %>\n' + | ||
'* <%= pkg.homepage %> \n' + | ||
'* Copyright (c) <%= grunt.template.today("yyyy") %>' + | ||
' <%= pkg.author.name %>\n' + | ||
'* Licensed under AGPLv3. */' | ||
}, | ||
jshint: { | ||
files: ['Gruntfile.js', 'public/js/*.js'], | ||
options: { | ||
// options here to override JSHint defaults | ||
globals: { | ||
jQuery: true, | ||
console: true, | ||
module: true, | ||
document: true | ||
} | ||
} | ||
}, | ||
concat: { | ||
js: { | ||
src: ['<banner>', | ||
'public/js/jquery.min.js', | ||
'public/js/jquery.validate.min.js', | ||
'public/js/ICanHaz.min.js', | ||
'public/js/jsdeferred.js', | ||
'public/js/bootstrap.min.js', | ||
'public/js/underscore-min.js', | ||
'public/js/wikinext.helper.js', | ||
'public/js/wikinext.main.js', | ||
'public/js/wikinext.register.js', | ||
'public/js/jslint.js'], | ||
dest: 'public/js/release/<%= pkg.name %>.js' | ||
}, | ||
css: { | ||
src: ['<banner>', | ||
'public/css/dev/treeview.css', | ||
'public/css/dev/docs.css', | ||
'public/css/dev/bootstrap.min.css', | ||
'public/css/dev/bootstrap-responsive.min.css', | ||
'public/css/dev/font-awesome.min.css', | ||
'public/css/dev/prettify.css'], | ||
dest: 'public/css/release/<%= pkg.name %>.css' | ||
} | ||
}, | ||
clean: [ | ||
'public/js/release/*', | ||
'public/css/release/*' | ||
], | ||
uglify: { | ||
options: { | ||
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n' | ||
}, | ||
build: { | ||
src: 'public/js/release/<%= pkg.name %>.js', | ||
dest: 'public/js/release/<%= pkg.name %>.min.js' | ||
} | ||
}, | ||
cssmin: { | ||
css: { | ||
src: 'public/css/release/<%= pkg.name %>.css', | ||
dest: 'public/css/release/<%= pkg.name %>.min.css' | ||
} | ||
} | ||
}); | ||
|
||
// Load the plugin that provides the "uglify" task. | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-qunit'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['clean', 'concat', 'uglify', 'cssmin']); | ||
|
||
grunt.registerTask('test', ['jshint', 'qunit']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,41 @@ | ||
{ | ||
"name": "wikinext-v2" | ||
, "version": "0.0.1" | ||
, "private": true | ||
, "dependencies": { | ||
"express": "*" | ||
, "mustache": "0.4.0" | ||
, "less": ">= 0.0.1" | ||
, "jade": ">= 0.0.1" | ||
, "jsdeferred": "0.4.0" | ||
, "mongoskin": "0.3.6" | ||
, "now": "0.8.1" | ||
, "vie": "2.0.2" | ||
, "jquery": "1.7.2" | ||
, "connect-mongodb": "1.1.3" | ||
, "formidable": "1.0.9" | ||
, "everyauth": "*" | ||
, "winston": "0.6.1" | ||
, "share" : ">= 0.5.0-pre" | ||
, "coffee-script": ">= 1.1.0" | ||
, "request": ">= 2.1.1" | ||
, "connect": "= 2.0.0" | ||
, "underscore": "1.3.3" | ||
, "jsdom" : "0.6.0" | ||
, "rdfstore" : "0.7.0" | ||
, "hjs" : "*" | ||
} | ||
} | ||
"name": "wikinext", | ||
"homepage": "http://wikinext.gexsoft.com", | ||
"author": { | ||
"name": "Pavel Arapov" | ||
}, | ||
"version": "0.2.2", | ||
"private": true, | ||
"dependencies": { | ||
"express": "*", | ||
"less": ">= 0.0.1", | ||
"jsdeferred": "0.4.0", | ||
"mongoskin": "0.3.6", | ||
"now": "0.8.1", | ||
"vie": "2.0.2", | ||
"jquery": "1.7.2", | ||
"connect-mongodb": "1.1.3", | ||
"formidable": "*", | ||
"everyauth": "*", | ||
"winston": "0.6.1", | ||
"share": ">= 0.5.0-pre", | ||
"coffee-script": ">= 1.1.0", | ||
"request": ">= 2.1.1", | ||
"connect": "= 2.0.0", | ||
"underscore": "1.3.3", | ||
"jsdom": "*", | ||
"rdfstore": "0.7.0", | ||
"hogan-express": "*", | ||
"async": "*" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.1", | ||
"grunt-contrib-jshint": "~0.6.3", | ||
"grunt-contrib-nodeunit": "~0.2.0", | ||
"grunt-contrib-uglify": "~0.2.2", | ||
"grunt-contrib-concat": "*", | ||
"grunt-contrib-qunit": "*", | ||
"grunt-contrib-clean": "*", | ||
"grunt-contrib-cssmin": "*" | ||
} | ||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.