Git Product home page Git Product logo

yeopress's People

Contributors

alankahn avatar bitdeli-chef avatar dartagan avatar felixzapata avatar furins avatar jahvi avatar jasonlcrane avatar jegtnes avatar jordanknott avatar melindrea avatar mrwimmer avatar nocean avatar octalmage avatar robynlarsen avatar thewildandy avatar toddses avatar unr avatar wesleytodd 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  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  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

yeopress's Issues

Grunt Regarde, Livereload Depricated

Grunt-regrade and grunt-livereload are deprecated in favor of grunt-contrib-watch which now has livereload support built-in. Reference

Is there any interested in having grunt-regarde and grunt-livereload swapped out for grunt-regrande?

Use `YeoPress` as the default theme name

twentytwelve is included by default with WordPress, I don't think it makes much sense to use it as the default directory name, specially since you include your YeoPress theme as the default theme to be downloaded from GitHub.

yo-wordpress-theme-directory

Use of WP_HTTP_BLOCK_EXTERNAL in config with submoduled git

Hey Wes,

I was trying to install some plugins earlier on a WP YeoPress install where I opted to use Git as a submodule and ran into the fabled "An unexpected error occured" error message when trying to add a plugin. I thought this was a newfound problem with my server setup or perhaps some file permissions gone awry, but it turns out that's a result of WP_HTTP_BLOCK_EXTERNAL being set in wp-config; removing this solved my problem. I understand this will stop WordPress from nagging about updates (as all external requests are blocked, WP can't ever find any), but it also causes you to be unable to search for or install any plugins or themes straight from the dashboard.

In my opinion, this is a bit heavy-handed. Is there perhaps an easier or more obvious way of solving the 'don't show update' conundrum without blocking all external requests? Perhaps install a plugin doing this by default if using git as a submodule or just warn about this when doing the YeoPress installation?

.gitignore ignores a content directory instead of wp-content

content/advanced-cache.php
content/backup-db/
content/backups/
content/blogs.dir/
content/cache/
content/wp-content/index.php
content/wp-content/plugins/index.php
content/wp-content/themes/index.php
content/uploads/
content/upgrade/
content/wp-cache-config.php

Arguments to path.join must be strings

Running the generator I get:

note: already saw the closed issue but didn't seem to resolve it.

c:\wamp\www\wordpress>yo wordpress

path.js:204
        throw new TypeError('Arguments to path.join must be strings');
              ^
TypeError: Arguments to path.join must be strings
    at f (path.js:204:15)
    at Object.filter (native)
    at Object.exports.join (path.js:209:40)
    at new module.exports (C:\Users\Nick\AppData\Roaming\npm\node_modules\genera
tor-wordpress\util\config.js:25:31)
    at new Generator (C:\Users\Nick\AppData\Roaming\npm\node_modules\generator-w
ordpress\app\index.js:57:14)
    at Environment.create (C:\Users\Nick\AppData\Roaming\npm\node_modules\yo\nod
e_modules\yeoman-generator\lib\env.js:366:10)
    at Environment.run (C:\Users\Nick\AppData\Roaming\npm\node_modules\yo\node_m
odules\yeoman-generator\lib\env.js:409:24)
    at init (C:\Users\Nick\AppData\Roaming\npm\node_modules\yo\bin\yo:98:7)
    at pre (C:\Users\Nick\AppData\Roaming\npm\node_modules\yo\bin\yo:110:3)
    at Object.<anonymous> (C:\Users\Nick\AppData\Roaming\npm\node_modules\yo\bin
\yo:135:1)

Set up
Windows 7 64bit
Node version - v0.10.21

C:\Users\Nick>node
> process.env.HOME
undefined

I didn't have a path set for home, I know this could be added in the Environment variables, however...

for the fix

I seem to have got this working, in \util\config.js I changed:

    this.global = this.load(path.join(process.env.HOME, this.filename)) || {}; 

to

this.global = this.load(path.join(process.env.HOME || process.env.USERPROFILE, this.filename)) || {};

reading:
fgnass/node-dev#60
http://dailyjs.com/2012/05/24/windows-and-node-4/ (environment section)

It looks like YeoPress isn't waiting for WordPress to download causing it to error.

Terminal output of running it. I have verified the database credentials.

     info ... Fetching http://github.com/wordpress/wordpress/archive/3.5.1.tar.gz ...
     info This might take a few moments
Database does not exist, or crendetials are wrong!
Make sure you create the database and update the credentials in the wp-config.php
Setting Permissions: 0755 on .
Setting Permissions: 0775 on wp-content

fs.js:654
  return binding.readdir(pathModule._makeLong(path));
                 ^
Error: ENOENT, no such file or directory 'wp-content'
    at Object.fs.readdirSync (fs.js:654:18)
    at Object.exports.chmodSyncRecursive (/usr/local/lib/node_modules/generator-wordpress/node_modules/wrench/lib/wrench.js:235:20)
    at Generator.youAreNotAllowd (/usr/local/lib/node_modules/generator-wordpress/wordpress/index.js:155:9)
    at next (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/base.js:275:18)
    at /usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/base.js:267:11
    at next (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/util/conflicter.js:52:14)
    at EventEmitter.resolve (/usr/local/lib/node_modules/generator-wordpress/no%

Is this something I broke somehow?

Theme install error - "Arguments to path.join must be strings"

I just tried generating my first YeoPress project and I'm getting an error I don't understand at the "Starting to install theme" stage:

TypeError: Arguments to path.join must be strings
    at path.js:360:15
    at Array.filter (native)
    at Object.exports.join (path.js:358:36)
    at Generator.actions.remote (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/actions/actions.js:265:20)
    at Object.installTheme (/usr/local/lib/node_modules/generator-wordpress/util/wordpress.js:174:13)
    at Generator.dumbledoreHasStyle (/usr/local/lib/node_modules/generator-wordpress/app/index.js:317:13)
    at /usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/base.js:269:20
    at /usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/async/lib/async.js:548:21
    at /usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/async/lib/async.js:224:13
    at iterate (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/async/lib/async.js:131:13)

The configuration I used was:

URL WordPress will be installed at (ex. example.com): http://example.com
Table prefix: wp_
Database host: localhost
Database name: wordpress
Database user: **********
Database password: **********
Use Git?: No
Would you like to install WordPress with the custom directory structure?: No
Install a custom theme?: Yes
Destination directory (ex. twentytwelve): example
Theme source type (git/tar): git
GitHub username: markedup
GitHub repository name: https://github.com/viewportindustries/starkers.git
Repository branch: master

Have I screwed something up, or is this a problem elsewhere?

Test Coverage

This last release went out with a few regressions. To prevent this in the future I want better than 85% test coverage.

Create Root Level Grunt Tasks

Create basic grunt tasks to do common WordPress tasks.

  • Update WP core
  • Install & Update plugins
  • Migrate database
  • Backup database

error on color.js

/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:53
Object.defineProperty(String.prototype, color, {
^
TypeError: Cannot redefine property: underline
at Function.defineProperty (native)
at addProperty (/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:53:12)
at /usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:189:3
at Array.forEach (native)
at Object. (/usr/lib/node_modules/generator-wordpress/node_modules/colors/colors.js:184:3)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)

every day plugins request

I'd really love YeoPress to install some plugins for me, you know, those plugins we use on every site.
I hope you consider including this feature in the future.

Install latest stable version of WordPress

It might make more sense to install the latest stable version of WordPress, rather than the latest release. Also could be an additional prompt to select the version you want installed.

I'm digging into this as well and will be happy to contribute as I get up to speed on node, yeoman and grunt.

Deploying Yeopress

More of a question on process to make this also easier for anybody else who's interested in this generator.

What would be the current process of deploying the locally developed YeoPress to a staging/production environment with the database?

How do you do it yourself currently?

Setup WP with Vagrant

Optionally setup WordPress with Vagrant. With this feature, developers would only need to install Vagrant, VirtualBox, Node and YeoPress. Vagrant would take care of the rest. The steps for getting a WordPress up would look like this:

  1. Download and install VirtualBox
  2. Download and install Vagrant
  3. Download and install Node
  4. npm install -g generator-wordpress
  5. yo wordpress

Then you would get a fully operational local development environment running in a virtual machine.

Install the files in a subfolder

Hi there,

This seems to be a very useful project, but would it be possible to get it to install the files in a subfolder? As in, I want the git init to be in the root, while the index.php etc ends up in a subfolder of my choosing. Basically part of my workflow have me wanting to separate those.

Generator Hangs On Setting Permissions

I have tried this on multiple machines and in multiple environments and currently the generator hangs at Setting Permissions: 0775 on wp-content for me. This never makes it to the theme install. Not sure why it would be doing this, as it has worked for me before but is doing it consistently.

Add a note about editing wp-config when the generator finishes

Steps to reproduce:

  1. Create directory in web server path
  2. Run yo wordpress
  3. Setup WordPress as a submodule
  4. Try to access project through web server

There doesn't appear to be an .htaccess file, which I understand as not everyone will use Apache, but it'd be great if there were options for nginx or Apache during the setup to output the proper rewrites.

Or maybe that's not the problem.

LiveReload and Local Server like MAMP.

Hi Wesley,

Great work on the YeoPress! Thank you very much for putting it together.

Not really an issue, but I wanted to put it down for others in case they are confused like I was.

After getting the generator all setup and if using the YeoPress theme, it took me a while to figure out how you were getting LiveReload working with Yeoman and PHP, since the grunt server doesn't parse it in Yo.

Then I realized you must be using a local server like MAMP/WAMP. Once I set up a virtual host for my root directory where YeoPress was installed, I had it all working.

So some instruction could be added like:

After Install Completes

  1. Setup a local vhost in MAMP (or whatever local dev server) for the YeoPress WP root directory, if not already.
  2. Edit hosts file with new vhost ServerName, if not already.
  3. Go back to Terminal and run $ grunt
    ($ grunt server won't work, not defined, wouldn't work anyway because of PHP)
  4. Jump to the browser and enter your localhost URL, i.e. http://yeopress.local
  5. If Wordpress appears, all good.
  6. Edit JS, SaSS and PHP and watch LiveReload magic in the browser.

Hope that helps,

~J

YeoPress theme not installing from defaults

Hi Wesley,

Loving your work, but custom themes are not installing for me through yo wordpress.
I've tried git and tar methods with the default settings but no joy. I only see the Worpress bundled themes.

Any help would be much appreciated.

Thanks

Wordpress says that no themes are installed

I'm using wordpress locally for development at some url. Let's call it 'website.dev', which is on port 8080 served by MAMP.

In wp-config, I have

/**
 * Set custom paths
 *
 * These are required because wordpress is installed in a subdirectory.
 */
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . ':8080/wp');
define('WP_HOME',    'http://' . $_SERVER['SERVER_NAME'] . ':8080');
define('WP_CONTENT_DIR', __dir__ . '/content');
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . ':8080/content');

My folder structure also matches this, and yet Wordpress is telling me I have no themes. I verified that I have all the default themes in /content/themes

Did I miss something??

Error while generating

Hi!
I'm trying to generate a new theme, and I'm getting this error:

Install a custom theme? (Y)
(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
Trace
    at ReadStream.EventEmitter.addListener (events.js:168:15)
    at new Interface (readline.js:104:11)
    at Object.exports.createInterface (readline.js:39:10)
    at read (/Users/user/node_modules/generator-wordpress/node_modules/prompt/node_modules/read/lib/read.js:30:23)
    at EventEmitter.prompt.getInput (/Users/user/node_modules/generator-wordpress/node_modules/prompt/lib/prompt.js:503:3)
    at get (/Users/user/node_modules/generator-wordpress/node_modules/prompt/lib/prompt.js:322:12)
    at prompt.get (/Users/user/node_modules/generator-wordpress/node_modules/prompt/lib/prompt.js:281:7)
    at async.forEachSeries.iterate (/Users/user/node_modules/generator-wordpress/node_modules/prompt/node_modules/utile/node_modules/async/lib/async.js:108:13)
    at Object.async.forEachSeries (/Users/user/node_modules/generator-wordpress/node_modules/prompt/node_modules/utile/node_modules/async/lib/async.js:124:9)
    at iterate (/Users/user/node_modules/generator-wordpress/node_modules/prompt/lib/prompt.js:280:11)

Any idea of what is failing?

Thanks in advance!

Intermittent Permissions Error

When installing a the default base theme I sometimes get a permissions error when trying to run the init script. It doesn't happen every time so it leads me to believe it is something to do with the wrench.js recursive permissions method.

More options for themes

Why can't all the options from generator-webapp be present in the theme. For example writing coffeescript, mocha tests, etc. Also why isn't there support for using compass?

Generator hangs after wrong credentials

I chose the following

[?] URL WordPress will be installed at (ex. example.com):  client.local
[?] WordPress Version:  (3.5.1)
[?] Table prefix:  (wp_)
[?] Database host:  (localhost)
[?] Database name:  client-www
[?] Database user:  root
[?] Database password:  1234
[?] Use Git?  (Y)
[?] Would you like to install WordPress as a submodule?  (N) n
[?] Would you like to install WordPress with the custom directory structure?  (N)
[?] Install a custom theme?  (Y)
[?] Destination directory (ex. twentytwelve):  client
[?] Theme source type (git/tar):  (git)
[?] GitHub username:  (wesleytodd)
[?] GitHub repository name:  (YeoPress)
[?] Repository branch:  (template)

----------------------------
WordPress URL: http://client.local
Database table prefix: wp_
Database host: localhost
Database name: client-www
Database user: root
Database password: 1234
WordPress install directory: .
WordPress content directory: wp-content
Initialize a Git repo: Yes
Install WordPress as a Git submodule: No
Theme install directory: wp-content/themes/client

Using MAMP on Mac OSX 10.8.3.

MySQL config
Host: localhost
Port: 3306
User: root
Password 1234

In the middle of the generating the site I get this:

create xmlrpc.php
Database does not exist, or crendetials are wrong!
Make sure you create the database and update the credentials in the wp-config.php
Setting Permissions: 0755 on .
Setting Permissions: 0775 on wp-content
create wp-config.php

And after everything else is done it will hang itself after the "All Done!!" message.

Also, when I then visited http://client.local/ the install was pointing to the wrong directory/file.

Hope this helps. Let me know if I can provide any other information.

Cheers
@pzi

Messy prompts on git bash

I'm not sure if it's just me but the prompts look messy on the git bash running Win7 64bits, I recorded a small screencast of the issue.

The values get stored just fine though, it just looks like a display issue.

PD: I tested on my Arch 64bits install and I'm getting the same issue.

Generator error

Hi! I'm trying to generate a new project, but I'm getting this error:

events.js:66
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: connect ECONNREFUSED
    at errnoException (net.js:776:11)
    at Object.afterConnect [as oncomplete] (net.js:767:19)

This are my settings:

WordPress URL: http://localhost
Database table prefix: wp_
Database host: localhost
Database name: my_project
Database user: my_project
Database password: my_project
WordPress version: 3.6.1
WordPress install directory: .
WordPress content directory: wp-content
Initialize a Git repo: No
Install WordPress as a Git submodule: No
Add WordPress Core files to .gitignore?: No
Theme install directory: wp-content/themes/my_project

Thanks in advance!

unzip error - incorrect header check coming from /app/index.js


| | | || || _ | | | | | _ | || | | || | | |
| || || || | || | | | || || || | | **|| _ | | |
| || |**
| |
||
| |
| || |
| | __ | | | | | |
| || _|| __ || ___| | || __| | || || || | ||
| _ || |___ | | | || |___ | _ || |___ | || || | __
|| |||
||**| |||_____| || |**||| |||___| |__|

create .gitignore
Repository successfully initalized
Commit: Initial Commit
Adding submodule: git://github.com/WordPress/WordPress.git
Submodule successfully added!!

 info ... Fetching http://github.com/wordpress/wordpress/archive/3.5.2.tar.gz ...
 info This might take a few moments

.
✔ Done in 87.982s.
unzip error { [Error: incorrect header check] errno: -3, code: 'Z_DATA_ERROR' }

/usr/local/lib/node_modules/generator-wordpress/app/index.js:121
remote.directory('wp-content', me.userInput.contentDir);
^
TypeError: Cannot call method 'directory' of undefined
at /usr/local/lib/node_modules/generator-wordpress/app/index.js:121:11
at done (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/actions/actions.js:259:14)
at Unzip._tarball.req.pipe.on.pipe.on.entry.props.uid.entry.uid (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/actions/fetch.js:55:7)
at Unzip.EventEmitter.emit (events.js:117:20)
at Zlib._binding.onerror (zlib.js:298:10)

Not working with Vagrant

I've installed everything correctly and even replaced the old

:exit => "dmode=777","fmode=666"

to

:mount_options => ["dmode=777","fmode=666"] in the Vagrantfile, but when I run vagrant and go to localhost:8080, it redirects me to localhost/wordpress/wp-admin/install.php with nothing. If I relpace it with localhost:8080 in front, I get the install page but no styles. Very strange... any help?

Database password won't accept an empty string

My local MySQL environment doesn't have a password set by default, but the generator keeps asking me for one.

I can obviously type something and then remove it afterwards, but kind of defeats the purpose of handling everything through the console.

yo-wordpress-db

Error on "yo wordpress" command

EDIT: I'm currently running what appears to be the latest versions of node.js (v0.10.16), NPM (v1.3.8), and Yeoman (v1.0.0), on a Max OS X dev environment for what it's worth.

Upon running the yo wordpress command, I receive the following error:

TypeError: Cannot redefine property: underline
    at Function.defineProperty (native)
    at addProperty (PATH-TO-MY-FOLDER/node_modules/generator-wordpress/node_modules/prompt/node_modules/winston/node_modules/colors/colors.js:53:12)
    at PATH-TO-MY-FOLDER/node_modules/generator-wordpress/node_modules/prompt/node_modules/winston/node_modules/colors/colors.js:189:3
    at Array.forEach (native)
    at Object.<anonymous> (PATH-TO-MY-FOLDER/node_modules/generator-wordpress/node_modules/prompt/node_modules/winston/node_modules/colors/colors.js:184:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)

I was able to successfully run the npm install -g yo generator-wordpress command to install Yeomans and the WordPress generator, although I did receive the following 5 warnings during the install process:

npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.16","npm":"1.3.8"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.16","npm":"1.3.8"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.16","npm":"1.3.8"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.16","npm":"1.3.8"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.16","npm":"1.3.8"})

Any thoughts on what might be happening here? Please let me know if there's any other additional details I could/should provide!

You don't seem to have a generator with the name wordpress installed.

After running:

npm install -g yo generator-wordpress

I got some errors:

npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.20","npm":"1.3.11"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.20","npm":"1.3.11"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.20","npm":"1.3.11"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.20","npm":"1.3.11"})
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/bower requires colors@'latest' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/bower requires rimraf@'latest' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/rimraf,
npm WARN unmet dependency which is version 2.0.2
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/bower requires mkdirp@'latest' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/mkdirp,
npm WARN unmet dependency which is version 0.3.4
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/bower requires fstream@'latest' but will load
npm WARN unmet dependency /usr/local/lib/node_modules/yeoman/node_modules/fstream,
npm WARN unmet dependency which is version 0.1.19

Then when I run:

yo wordpress

I'm getting:

Error wordpress

You don't seem to have a generator with the name wordpress installed.
You can see available generators with npm search yeoman-generator and then install them with npm install [name].
To see the 3 registered generators run yo with the `--help` option.

Any ideas please?

Installation Error

Hello,
when I try to install YeoPress I get the following error:

Error: EACCES, permission denied 'Library/Application Support/Firefox/Profiles/ezvd57hf.default/devcomp1beta'

Why the hack does it try to modify those files ?!

generation hangs at wp-config.php with no method match

when generating wordpress:app it gets to the wp-config.php it hangs with no method .match available for ( already replaced ) wp-config.php content

( on windows )

c:\dev\wp\node_modules\generator-wordpress\util\wordpress.js:81
                db.name   = contents.match(/define\(["']DB_NAME["'],[\s]*["'](.*)["']\)/)[1]
                                     ^
TypeError: Object <?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.

 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file

 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'wp');

/** MySQL database username */
define('DB_USER', 'test');

/** MySQL database password */
define('DB_PASSWORD', 'testie');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8');

/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');

/**#@+
 * Authentication Unique Keys and Salts.
 *
 * Change these to different unique phrases!
 * You can generate these using the {@link https://api.wordpress.org/secret-key/
1.1/salt/ WordPress.org secret-key service}
 * You can change these at any point in time to invalidate all existing cookies.
 This will force all users to have to log in again.
 *
 * @since 2.6.0
 */
define('AUTH_KEY',         'a');
define('SECURE_AUTH_KEY',  'b');
define('LOGGED_IN_KEY',    'c');
define('NONCE_KEY',        'd');
define('AUTH_SALT',        'e');
define('SECURE_AUTH_SALT', 'f');
define('LOGGED_IN_SALT',   'g');
define('NONCE_SALT',       'h');

/**#@-*/

/**
 * WordPress Database Table prefix.
 *
 * You can have multiple installations in one database if you give each a unique

 * prefix. Only numbers, letters, and underscores please!
 */
$table_prefix  = 'test_';

/**
 * WordPress Localized Language, defaults to English.
 *
 * Change this to localize WordPress. A corresponding MO file for the chosen
 * language must be installed to wp-content/languages. For example, install
 * de_DE.mo to wp-content/languages and set WPLANG to 'de_DE' to enable German
 * language support.
 */
define('WPLANG', '');


/**
 * Set custom paths
 *
 * These are required because wordpress is installed in a subdirectory.
 */
define('WP_SITEURL', 'http://' . $_SERVER['SERVER_NAME'] . '/cms');
define('WP_HOME',    'http://' . $_SERVER['SERVER_NAME'] . '');
define('WP_CONTENT_DIR', __dir__ . '/content');
define('WP_CONTENT_URL', 'http://' . $_SERVER['SERVER_NAME'] . '/content');

/**
 * Disable external requests
 *
 * This is so that users dont see update requests since things are managed throu
gh git
 */
define('WP_HTTP_BLOCK_EXTERNAL', true);

/**
 * For developers: WordPress debugging mode.
 *
 * Change this to true to enable the display of notices during development.
 * It is strongly recommended that plugin and theme developers use WP_DEBUG
 * in their development environments.
 */
define('WP_DEBUG', false);

/* That's all, stop editing! Happy blogging. */

/** Absolute path to the WordPress directory. */
if ( !defined('ABSPATH') )
        define('ABSPATH', dirname(__FILE__) . '/');

/** Sets up WordPress vars and included files. */
require_once(ABSPATH . 'wp-settings.php');
 has no method 'match'
    at EventEmitter.<anonymous> (c:\dev\wp\node_modules\generator-wordpr
ess\util\wordpress.js:81:24)
    at EventEmitter.emit (events.js:96:17)
    at c:\dev\wp\node_modules\generator-wordpress\util\wordpress.js:55:7

    at fs.readFile (fs.js:176:14)
    at Object.oncomplete (fs.js:297:15)

c:\dev\wp>

CoffeeScript not compiling (theme created from WP backend)

I just installed a new wordless theme from the WP backend by going to wordless > New Theme, but when I load the site on my local environment, application.js is not found.

http://cl.ly/image/3n2K1R0e3g24

I ran the 1-liner below and have ruby 2.0.0 installed.

rvm use 2.0.0@wordless --create --default && \
gem install therubyracer sprockets compass coffee-script thor yui-compressor && \
rvm wrapper 2.0.0@wordless wordless compass ruby

Generator exiting early, not downloading any themes

First up - love the generator. Just experiencing some minor trouble with installing a theme (any theme)

Event with the defaults selected in the generator it seems to die directly after creating wp-config.php.

   create content/themes/twentytwelve/tag.php
   create wp-config.php

/usr/local/lib/node_modules/generator-wordpress/util/wordpress.js:81
        db.name   = contents.match(/define\(["']DB_NAME["'],[\s]*["'](.*)["']\)/)[1]
                             ^
TypeError: Object <?php
/**
 * The base configurations of the WordPress.
 *
 * This file has the following configurations: MySQL settings, Table Prefix,
 * Secret Keys, WordPress Language, and ABSPATH. You can find more information
 * by visiting {@link http://codex.wordpress.org/Editing_wp-config.php Editing
 * wp-config.php} Codex page. You can get the MySQL settings from your web host.
 *
 * This file is used by the wp-config.php creation script during the
 * installation. You don't have to use the web site, you can just copy this file
 * to "wp-config.php" and fill in the values.
 *
 * @package WordPress
 */

// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'yeopress');

/** MySQL database username */
define('DB_USER', 'root');

/** MySQL database password */
define('DB_PASSWORD', 'yeopress');

/** MySQL hostname */
define('DB_HOST', 'localhost');

/** Database Charset to use in creating databa

And thats where it dies... Any thoughts?

Global install

Generators can now be installed globally. Please update the readme:

npm install -g generator-wordpress

bower.json

Hi Wesley,

So i wanted to change inside the template 2 things, first changing package.json to bower.json(as advised on the bower website), problem is that will say at the end of the install that package.json is missing, i am pretty sure it's nothing to fix for you.

Second thing was to change the .bowerrc file to put all bower dependencies inside a bower_components folder so you can add various type of file ex: require.js but also inuit.css.

Please let me know what you think about that, i can make a pull request if you think that is interesting enough.

Vagrant

I seem to have huge pains in getting vagrant to work.
I've installed virtualbox, vagrant, latest nodejs. Downloaded wordpress generator, ran the wordpress generator

Then switched directory to node_modules\generator-wordpress ( first mistake maybe? )

Tried vagrant up which attempts to load a virtualbox up - but couldn't find folder 'test/site'. Adjusted config.vm.synced_folder in vangrantfile, but little success. Virtualbox seems to crash right away.

Also exchanged precise32 with precise64, but also no luck there.

I think I'm attempting at this in the wrong way, but vagrant up had no other reaction in any other folder. Would be great if there would be some more documentation on how to use that feature out of the box

Windows "Arguments to path.join must be strings" error

I'm on Windows 7 and am running Node.js 0.10.21 (x64) and npm.

I installed YeoPress with npm install -g yo generator-wordpress, created a new directory and ran yo wordpress which gave this error:

path.js:204
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at f (path.js:204:15)
at Object.filter (native)
at Object.exports.join (path.js:209:40)
at new module.exports (C:\Users\rburnett\AppData\Roaming\npm\node_modules\ge
nerator-wordpress\util\config.js:15:31)
at new Generator (C:\Users\rburnett\AppData\Roaming\npm\node_modules\generat
or-wordpress\app\index.js:57:14)
at Environment.create (C:\Users\rburnett\AppData\Roaming\npm\node_modules\yo
\node_modules\yeoman-generator\lib\env.js:366:10)
at Environment.run (C:\Users\rburnett\AppData\Roaming\npm\node_modules\yo\no
de_modules\yeoman-generator\lib\env.js:409:24)
at init (C:\Users\rburnett\AppData\Roaming\npm\node_modules\yo\bin\yo:98:7)
at pre (C:\Users\rburnett\AppData\Roaming\npm\node_modules\yo\bin\yo:110:3)
at Object. (C:\Users\rburnett\AppData\Roaming\npm\node_modules\yo
\bin\yo:135:1)

FWIW I ran the same steps on my Mac without issues. Are there any special steps for Windows users?

Problems with requirejs when enabling permalinks in wordpress (submodule)

Hello,
I have tried to install wordpress as a submodule (with git), and when I enable permalinks in the wordpress install it breaks requirejs when going to a subpage.

http://<domain>/ <- requirejs works fine
http://<domain>/<page title>/ <- requirejs breaks (tries to load scripts in /page title/content/themes/<theme name>/js/ instead of /content/themes/<theme name>/js/)

Is there a way to get requirejs to work with permalinks enabled, or a htaccess rule I can use to ignore requirejs urls?

Let me know if I can supply any more info…

Thanks!

Ps. should be marked as a question rather than an issue…

//Hans

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.