Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Added the package command #473

Merged
merged 2 commits into from
Sep 22, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,18 @@ module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

//package the theme as zipe file so it can be uploaded as a theme and remove folders
compress: {
main: {
options: {
archive: 'packaged/<%= pkg.name %>.zip'
},
expand: true,
cwd: '.',
src: ['**/*','!**/node_modules/**','!**/bower_components/**','!**/scss/**','!**/deploy/**','!**/bower.json','!**/Gruntfile.js','!**/package.json','!**/composer.json','!**/composer.lock','!**/codesniffer.rulese.xml'],
dest: '<%= pkg.name %>'
},
},
sass: {

options: {
Expand Down Expand Up @@ -153,7 +165,9 @@ module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-string-replace');

grunt.loadNpmTasks('grunt-contrib-compress');

grunt.registerTask('package', ['compress:main']);
grunt.registerTask('build', ['copy', 'string-replace:fontawesome', 'sass', 'concat', 'uglify']);
grunt.registerTask('default', ['watch']);
};
14 changes: 12 additions & 2 deletions package.json
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
"title": "FoundationPress",
"version": "1.4.0",
"description": "FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb",
"keywords": [ "FoundationPress", "WordPress", "starter theme", "Foundation", "semantic", "mobile first", "customizable", "responsive" ],
"keywords": [
"FoundationPress",
"WordPress",
"starter theme",
"Foundation",
"semantic",
"mobile first",
"customizable",
"responsive"
],
"homepage": "http://foundationpress.olefredrik.com/",
"bugs": "https://github.com/olefredrik/FoundationPress/issues",
"license": "MIT",
Expand All @@ -16,11 +25,12 @@
"bower": "^1.4.1",
"grunt": "~0.4.1",
"grunt-cli": "^0.1.13",
"grunt-contrib-compress": "^0.13.0",
"grunt-contrib-concat": "~0.3.0",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-uglify": "~0.2.7",
"grunt-contrib-watch": "~0.5.3",
"grunt-sass": "1.0.0",
"grunt-sass": "^1.0.0",
"grunt-string-replace": "~0.2.7",
"node-sass": "3.2.0",
"time-grunt": "^1.1.0"
Expand Down