Giter VIP home page Giter VIP logo

generator-wp-bones's Introduction

alt tag npm version

generator-wp-bones

A WordPress theme Yeoman generator, to kickstart your WordPress Bones theme development with yo, sass and grunt.

Note: Still in development

Getting Started

Install generator-wp-bones from npm:

$ npm install -g generator-wp-bones

Finally, initiate the generator. run this command in a working WordPress installations themes directory:

$ yo wp-bones

Known Issues

TODO

  • A fancy deploy-to-production plan [Issue #9] (#9)
  • Instead of having the Bones Wordpress starter theme living in a folder in templates it would be nice to 'fetch' (dunno if this is the right term because i'm still a noob at git) it fresh from it's repo here at git. I have already included simple-git into the generator so it just need to be setup right. Thanks to iam4x
  • Convince my girlfriend to get a second cat

License

MIT License

Thanks To

Glen Geenen - Maxime Tyler - LaboratorioEfe5 - yivi - jbmicolai - kjbissell -

generator-wp-bones's People

Contributors

0dp avatar glenngeenen avatar kjbissell avatar oldlastman avatar seripap avatar yivi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

generator-wp-bones's Issues

Error running task sass.js

I installed your pacakage using yo and got this message

I'm all done. Running bower install & npm install for you to install the require
d dependencies. If this fails, try running the command yourself.
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No README data
npm WARN engine [email protected]: wanted: {"node":"0.10.x"} (current: {"node":"
0.12.2","npm":"2.7.4"})
bower ENOENT No bower.json present
Loading "sass.js" tasks...ERROR

Error: c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grunt\ node_modules\grunt-sass\node_modules\node-sass\bin\win32-ia32-v8-3.28\binding.no de is missing. Try reinstalling node-sass?

Were you suppose to install a bower.json? or was I?

No bower.json present

After fresh install I get this:

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No license field.
npm WARN engine [email protected]: wanted: {"node":"0.10.x"} (current: {"node":"0.12.7","npm":"2.11.3"})
bower                           ENOENT No bower.json present

Tried using node 0.10.40, and I get same error.

Deployment plan

hello,
I install and use this generator and i have a couple of questions:

  • when run yo wp-bones , the generator ask me for: my name, theme name, url and others.. but that information don't appears then. is this feature working?
  • sorry i'm a little newbe in grunt, if i run grunt dist : sass compile, js minimize , etc ... but. If i want deploy my theme... whats is the best way? i must copy manually all this files ?

thanks

PD: sorry i'm not native

test publish at npm repo (removed again)

after publishing to npm, when I ran wp-bones I received these errors

EACCES, mkdir '/usr/lib/node_modules/generator-wp-bones/app/templates/theme'
Error: EACCES, mkdir '/usr/lib/node_modules/generator-wp-bones/app/templates/them

I'm going to bed now but we can look at it tomorrow

wp-editor-style.scss not found

The grunt task sass:editorstyles gives an error.

Running "sass:editorstyles" (sass) task

Source file "../scss/wp-editor-style.scss" not found.

Can't see the file in the bones repository.
.

remove custom post example and custom taxonomy

I'm planning to add two questions to the generator

  • do you want custom post example?
  • do you want custom taxonomy example?

And if answer is not: delete unneeded files and references in functions.php

what do you think?

Error with Python

I installed your package using yo and got this message

gyp ERR! configure error
gyp ERR! stack Error: Can't find Python executable "python", you can set the PYT
HON env variable.
gyp ERR! stack at failNoPython (E:\SERVER\nodejs\node_modules\npm\node_modul
es\node-gyp\lib\configure.js:103:14)
gyp ERR! stack at E:\SERVER\nodejs\node_modules\npm\node_modules\node-gyp\li
b\configure.js:64:11
gyp ERR! stack at FSReqWrap.oncomplete (evalmachine.:95:15)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command "node" "E:\SERVER\nodejs\node_modules\npm\node_modules\no
de-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun
t\node_modules\grunt-sass\node_modules\node-sass
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
Build failed
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "E:\SERVER\nodejs\node.exe" "E:\SERVER\nodejs\node_modules
\npm\bin\npm-cli.js" "install"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! c:\Users\ME\git\globatech\wp-content\themes\globa-tech\library\grun
t\npm-debug.log
bower ENOENT No bower.json present

Local Npm module "grunt-sass" not found. Is it installed?

npm error: looking for package.json in wrong dir

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

When running yo wp-themes from within wp themes dir, npm throws a series of errors because the package.json file is not to be found. The file is situated in /library/grunt/ and not wp-content/themes/package.json

npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/srv/http/edra/wp-content/themes/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Linux 3.14.1-1-ARCH
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /srv/http/edra/wp-content/themes
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /srv/http/edra/wp-content/themes/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /srv/http/edra/wp-content/themes/npm-debug.log
npm ERR! not ok code 0
[odp@odp themes]$

New to the Yo/Grunt workflow, newb questions...

First off - this generator is great, I was able to follow the basic instructions to get started. Everything appears to have installed without a hitch.

However - this might be painfully obvious, but with my previous workflow using codekit, i'd drop my project into code kit - and it would monitor my SASS changes and compile on save. Is there a way i can set this now that Grunt is running? When i run "Grunt Sass" in my folder, it says it can't find an installed version - is this the case?

Thanks for the help.

jshint missing?

I had an old wp-bones project that wasn't running grunt at all so I decided to reinstall everything with npm, which didn't work, so I updated the package.json and tried again. Install went fine but when I went to run grunt default (previously I used grunt watch), I get Task "jshint" not found. I looked at the package.json and there is no jshint in there, unless it is part of some other package, so is it in fact missing or what??

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.