-
Notifications
You must be signed in to change notification settings - Fork 1
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
0 parents
commit 502a1c2
Showing
24 changed files
with
785 additions
and
0 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,2 @@ | ||
node_modules | ||
release |
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,170 @@ | ||
module.exports = function( grunt ) { | ||
|
||
// Project configuration | ||
grunt.initConfig( { | ||
pkg: grunt.file.readJSON( 'package.json' ), | ||
concat: { | ||
options: { | ||
stripBanners: true, | ||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' + | ||
' * Licensed GPLv2+' + | ||
' */\n' | ||
}, | ||
wiki_wiki: { | ||
src: [ | ||
'assets/js/src/wiki_wiki.js' | ||
], | ||
dest: 'assets/js/wiki_wiki.js' | ||
} | ||
}, | ||
jshint: { | ||
all: [ | ||
'Gruntfile.js', | ||
'assets/js/src/**/*.js', | ||
'assets/js/test/**/*.js' | ||
], | ||
options: { | ||
curly: true, | ||
eqeqeq: true, | ||
immed: true, | ||
latedef: true, | ||
newcap: true, | ||
noarg: true, | ||
sub: true, | ||
undef: true, | ||
boss: true, | ||
eqnull: true, | ||
globals: { | ||
exports: true, | ||
module: false | ||
} | ||
} | ||
}, | ||
uglify: { | ||
all: { | ||
files: { | ||
'assets/js/wiki_wiki.min.js': ['assets/js/wiki_wiki.js'] | ||
}, | ||
options: { | ||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' + | ||
' * Licensed GPLv2+' + | ||
' */\n', | ||
mangle: { | ||
except: ['jQuery'] | ||
} | ||
} | ||
} | ||
}, | ||
test: { | ||
files: ['assets/js/test/**/*.js'] | ||
}, | ||
|
||
sass: { | ||
all: { | ||
files: { | ||
'assets/css/wiki_wiki.css' : 'assets/css/sass/wiki_wiki.scss', | ||
'assets/css/wiki_wiki.admin.css' : 'assets/css/sass/wiki_wiki.admin.scss' | ||
} | ||
} | ||
}, | ||
|
||
cssmin: { | ||
options: { | ||
banner: '/*! <%= pkg.title %> - v<%= pkg.version %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' * Copyright (c) <%= grunt.template.today("yyyy") %>;' + | ||
' * Licensed GPLv2+' + | ||
' */\n' | ||
}, | ||
minify: { | ||
expand: true, | ||
|
||
cwd: 'assets/css/', | ||
src: ['wiki_wiki.css'], | ||
|
||
dest: 'assets/css/', | ||
ext: '.min.css' | ||
} | ||
}, | ||
watch: { | ||
|
||
sass: { | ||
files: ['assets/css/sass/*.scss'], | ||
tasks: ['sass', 'cssmin'], | ||
options: { | ||
debounceDelay: 500 | ||
} | ||
}, | ||
|
||
scripts: { | ||
files: ['assets/js/src/**/*.js', 'assets/js/vendor/**/*.js'], | ||
tasks: ['jshint', 'concat', 'uglify'], | ||
options: { | ||
debounceDelay: 500 | ||
} | ||
} | ||
}, | ||
clean: { | ||
main: ['release/<%= pkg.version %>'] | ||
}, | ||
copy: { | ||
// Copy the plugin to a versioned release directory | ||
main: { | ||
src: [ | ||
'**', | ||
'!node_modules/**', | ||
'!release/**', | ||
'!.git/**', | ||
'!.sass-cache/**', | ||
'!css/src/**', | ||
'!js/src/**', | ||
'!img/src/**', | ||
'!Gruntfile.js', | ||
'!package.json', | ||
'!.gitignore', | ||
'!.gitmodules', | ||
'!.idea/**' | ||
], | ||
dest: 'release/<%= pkg.version %>/' | ||
} | ||
}, | ||
compress: { | ||
main: { | ||
options: { | ||
mode: 'zip', | ||
archive: './release/wiki_wiki.<%= pkg.version %>.zip' | ||
}, | ||
expand: true, | ||
cwd: 'release/<%= pkg.version %>/', | ||
src: ['**/*'], | ||
dest: 'wiki_wiki/' | ||
} | ||
} | ||
} ); | ||
|
||
// Load other tasks | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-sass'); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-watch'); | ||
grunt.loadNpmTasks( 'grunt-contrib-clean' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-copy' ); | ||
grunt.loadNpmTasks( 'grunt-contrib-compress' ); | ||
|
||
// Default task. | ||
|
||
grunt.registerTask( 'default', ['jshint', 'concat', 'uglify', 'sass', 'cssmin'] ); | ||
|
||
|
||
grunt.registerTask( 'build', ['default', 'clean', 'copy', 'compress'] ); | ||
|
||
grunt.util.linefeed = '\n'; | ||
}; |
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,11 @@ | ||
Wiki-Wiki - A WordPress Wiki! | ||
============================= | ||
|
||
This plugin has come to out of the frustration I've had with existing wiki plugins for WordPress. | ||
|
||
There are some out there that work, but have a lousy implementation (in my opinion) or just flat out don't work/shotty dev work. I built this specifically for beawimp.org, but figured why not open source it and send it out to the masses? | ||
|
||
THE PLUGIN IS IN ALPHA. | ||
----------------- | ||
|
||
It is strongly urged that the use of this plugin, at this stage, is not encouraged. Wait for the beta release will ya? :) |
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,3 @@ | ||
# Styles | ||
|
||
Only CSS styles should exist in this folder. If you are using SASS, LESS, or some other pre-processor, please place your raw source files in a subdirectory. |
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,7 @@ | ||
/** | ||
* Wiki-Wiki - Admin styles | ||
* http://wordpress.org/plugins | ||
* | ||
* Copyright (c) 2014 Cole Geissinger | ||
* Licensed under the GPLv2+ license. | ||
*/ |
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,7 @@ | ||
/** | ||
* Wiki-Wiki | ||
* http://wordpress.org/plugins | ||
* | ||
* Copyright (c) 2014 Cole Geissinger | ||
* Licensed under the GPLv2+ license. | ||
*/ |
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,7 @@ | ||
/** | ||
* Wiki-Wiki - Admin styles | ||
* http://wordpress.org/plugins | ||
* | ||
* Copyright (c) 2014 Cole Geissinger | ||
* Licensed under the GPLv2+ license. | ||
*/ |
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,7 @@ | ||
/** | ||
* Wiki-Wiki | ||
* http://wordpress.org/plugins | ||
* | ||
* Copyright (c) 2014 Cole Geissinger | ||
* Licensed under the GPLv2+ license. | ||
*/ |
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,13 @@ | ||
/** | ||
* Wiki-Wiki | ||
* http://wordpress.org/plugins | ||
* | ||
* Copyright (c) 2014 Cole Geissinger | ||
* Licensed under the GPLv2+ license. | ||
*/ | ||
|
||
( function( window, undefined ) { | ||
'use strict'; | ||
|
||
|
||
} )( this ); |
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,3 @@ | ||
# Vendor Scripts | ||
|
||
Place each vendor JavaScript project in a separate subdirectory of this folder. Vendor scripts are not run through JSHint by Grunt, but *can* be dynamically concatenated with other project scripts by adding them to the `concat` section of `Gruntfile.js`. |
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,8 @@ | ||
/*! Wiki-Wiki - v0.1.0 | ||
* http://wordpress.org/plugins/wiki-wiki | ||
* Copyright (c) 2014; * Licensed GPLv2+ */ | ||
( function( window, undefined ) { | ||
'use strict'; | ||
|
||
|
||
} )( this ); |
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,4 @@ | ||
/*! Wiki-Wiki - v0.1.0 | ||
* http://wordpress.org/plugins/wiki-wiki | ||
* Copyright (c) 2014; * Licensed GPLv2+ */ | ||
(function(){"use strict"})(this); |
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,3 @@ | ||
# Project Images | ||
|
||
Only images in use by the project should be placed in this folder. Wherever possible, combine multiple small images into sprites to be used by CSS. Original (non-sprite) images should be placed in the `/src` subdirectory. |
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,3 @@ | ||
# Project Images | ||
|
||
Only source images (i.e. non-sprites, PSDs, raw photos) should be placed in this directory. Source files are meant to serve as a backup for any images that can be edited by an end user. |
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,3 @@ | ||
# Includes | ||
|
||
All plugin classes, objects, and libraries should be hidden away in this `/includes` directory. |
Empty file.
Oops, something went wrong.