Skip to content

Commit

Permalink
Updated plugin to include essential information like readme, etc.
Browse files Browse the repository at this point in the history
Signed-off-by: Kenneth Dahlstrøm <[email protected]>
  • Loading branch information
kedano committed Dec 1, 2016
1 parent b17ed7f commit dc8a911
Show file tree
Hide file tree
Showing 11 changed files with 1,283 additions and 773 deletions.
4 changes: 2 additions & 2 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"directory": "app/vendor"
}
"directory": "vendor"
}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ secret.json
# NODE STUFF #
node_modules
# Bower STUFF #
app/vendor
vendor
tmp
build
674 changes: 674 additions & 0 deletions COPYING

Large diffs are not rendered by default.

55 changes: 22 additions & 33 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,14 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),

// Tasks
lesslint:{
src: ['app/assets/less/*.less'],
options:{
csslint:{
'known-properties': false
}
}
},
less: {
standard: {
options: {
sass: {
options: {

},
files: [{
expand: true,
cwd: 'app/assets/less/',
src: ['*.less'],
dest: 'tmp/css/',
ext: '.css'
}]
},
dist: {
files: {
'tmp/css/style.css': 'app/assets/sass/style.scss',
}
}
},
autoprefixer: {
Expand All @@ -50,19 +38,19 @@ module.exports = function(grunt) {
dest: 'build/casper-hiof'
}
},
//cssmin: {
// main: {
// options: {
// keepSpecialComments: '*'
// //banner: '/*! HiØ casper-stylesheet v<%= pkg.version %> by Kenneth Dahlstrøm<kenneth.dahlstrom@hiof.no> */'
// },
// expand: true,
// cwd: 'tmp/css/prefixed/',
// src: ['*.css', '!*.min.css'],
// dest: 'build/casper-hiof',
// ext: '.css'
// }
//},
cssmin: {
main: {
options: {
keepSpecialComments: '*',
banner: '/*! \n Theme Name: Casper Hiof \n Theme URI: <%= pkg.homepage %> \n Author: <%= pkg.author %> \n Author URI: http://hiof.no \n Description: <%= pkg.description %> \n Version: <%= pkg.version %> \n Template: casper \n Usage: Copy the casper-hiof folder into your wp-content/themes/ directory and activate it in the dashboard. \n */'
},
expand: true,
cwd: 'build/casper-hiof',
src: ['*.css', '!*.min.css'],
dest: 'build/casper-hiof',
ext: '.css'
}
},
copy: {
php:{
expand: true,
Expand All @@ -89,6 +77,7 @@ module.exports = function(grunt) {

clean: {
dist: ['dist/**/*'],
temp: ['tmp/**/*'],
build: ['build/**/*']
},

Expand Down Expand Up @@ -135,7 +124,7 @@ module.exports = function(grunt) {
// Tasks

// Register tasks
grunt.registerTask('subtaskCss', ['less', 'autoprefixer']);
grunt.registerTask('subtaskCss', ['sass', 'autoprefixer', 'cssmin']);
grunt.registerTask('build', ['clean', 'subtaskCss', 'copy']);


Expand Down
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Casper hiof theme

## About

A Østfold University College version of the Casper wordpress theme

## Copyright

- This project is distributed under a GNU General Public License v3 - Take a look at the COPYING file for details.

## Install

Install [Git](http://git-scm.com) if it's not already installed on your computer. Then run (this will download this project to the folder the shell has open):

$ git clone https://github.com/hiof/casper-hiof.git


Install [Node.js](http://nodejs.org)) if it's not already installed on your computer. Then run (this will install the project dependencies):

$ sudo npm install -g grunt-cli
$ npm install
$ bower install

### Build

The following commands are now available within the project folder `$ grunt build`.

- $ grunt build: Builds the code to /dist folder ready for deploy


### Deploy

Copy the content of the /dist folder to your wp-content folder.


## Releases


[Github releases](https://github.com/hiof/casper-hiof/releases)


## Roadmap

- [ ] v1.2.0
7 changes: 4 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"name": "casper-hiof",
"version": "1.0.0",
"homepage": "https://github.com/hiof/casper-hiof",
"authors": [
"HiØ ved Kenneth Dahlstrøm <[email protected]>"
],
"description": "Hiof child theme of the Casper theme",
"license": "GNU",
"license": "PL-3.0",
"dependencies": {
"hiof-frontend": "https://github.com/hiof/frontend.git"
"hiof-frontend": "https://github.com/hiof/frontend.git",
"hiof-typography": "https://github.com/hiof/typography.git",
"sass-mq": "^3.3.1"
}
}
22 changes: 0 additions & 22 deletions style.css

This file was deleted.

Loading

0 comments on commit dc8a911

Please sign in to comment.