Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
colegeissinger committed May 25, 2014
0 parents commit 502a1c2
Show file tree
Hide file tree
Showing 24 changed files with 785 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
release
170 changes: 170 additions & 0 deletions Gruntfile.js
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';
};
11 changes: 11 additions & 0 deletions README.md
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? :)
3 changes: 3 additions & 0 deletions assets/css/README.md
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.
7 changes: 7 additions & 0 deletions assets/css/sass/wiki_wiki.admin.scss
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.
*/
7 changes: 7 additions & 0 deletions assets/css/sass/wiki_wiki.scss
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.
*/
7 changes: 7 additions & 0 deletions assets/css/wiki_wiki.admin.css
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.
*/
7 changes: 7 additions & 0 deletions assets/css/wiki_wiki.css
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.
*/
13 changes: 13 additions & 0 deletions assets/js/src/wiki_wiki.js
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 );
3 changes: 3 additions & 0 deletions assets/js/vendor/README.md
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`.
8 changes: 8 additions & 0 deletions assets/js/wiki_wiki.js
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 );
4 changes: 4 additions & 0 deletions assets/js/wiki_wiki.min.js
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);
3 changes: 3 additions & 0 deletions images/README.md
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.
3 changes: 3 additions & 0 deletions images/src/README.md
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.
3 changes: 3 additions & 0 deletions includes/README.md
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.
Loading

0 comments on commit 502a1c2

Please sign in to comment.