Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
minhtuanchannhan committed May 3, 2020
1 parent fc3ffe2 commit 50edb2b
Show file tree
Hide file tree
Showing 18 changed files with 355 additions and 249 deletions.
12 changes: 7 additions & 5 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 4
indent_style = tab
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.php]
indent_size = 4
indent_style = tab
indent_size = 4

[*.md]
trim_trailing_whitespace = true
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ DB_PASSWORD=database_password


# Optional variables
# DB_PREFIX=raf_
# DB_HOST=localhost
# DB_PREFIX=vay_

WP_ENV=development
WP_HOME=https://example.com
WP_SITEURL=${WP_HOME}/back_office
WP_DEBUG_LOG=/path/error.log

# Generate your keys here: https://roots.io/salts.html
AUTH_KEY='generateme'
Expand Down
27 changes: 15 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# Editor
/.idea

# Application
web/app/plugins/*
!web/app/plugins/.gitkeep
web/app/upgrade
web/app/uploads/*
!web/app/uploads/.gitkeep
public/app/plugins/*
!public/app/plugins/.gitkeep
public/app/upgrade
public/app/uploads/*
!public/app/uploads/.gitkeep

# WordPress
web/back_office
web/.htaccess
web/*.conf
public/back_office
public/.htaccess
public/*.conf

# Dotenv
.env
Expand All @@ -19,7 +22,7 @@ web/*.conf
/vendor

# Cache
/web/app/wflogs
/web/app/advanced-cache.php
/web/app/cache
/web/app/w3tc-config
/public/app/wflogs
/public/app/advanced-cache.php
/public/app/cache
/public/app/w3tc-config
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2019 Tuan Le Minh
Copyright (c) 2019 Rafadiot

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ $ composer create-project rafadiot/vayne

Or, you can cut and paste from the [Roots WordPress Salt Generator](https://roots.io/salts.html).

3. Add theme(s) in `web/app/themes` as you would for a normal WordPress site. You can use [Rafadiot theme](https://github.com/minhtuanchannhan/rafadiot).
4. Set your site vhost document root to `/path/to/site/web/` (`/path/to/site/current/web/` if using deploys)
3. Add theme(s) in `public/app/themes` as you would for a normal WordPress site. You can use [Rafadiot theme](https://github.com/minhtuanchannhan/rafadiot).
4. Set your site vhost document root to `/path/to/site/public/` (`/path/to/site/current/public/` if using deploys)
5. Access WP admin at `https://example.com/back_office/wp-admin`
121 changes: 62 additions & 59 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,61 +1,64 @@
{
"name": "rafadiot/vayne",
"type": "project",
"license": "MIT",
"description": "Vayne is a folder structure for Wordpress implement Bedrock.",
"authors": [
{
"name": "Tuan Le Minh",
"email": "minhtuanchannhan@gmail.com",
"homepage": "https://github.com/rafadiot"
}
],
"keywords": [
"vayne",
"rafadiot",
"wordpress folder structure",
"bedrock"
],
"support": {
"issues": "https://github.com/rafadiot/vayne/issues"
},
"config": {
"preferred-install": "dist"
},
"require": {
"php": ">=7.1",
"composer/installers": "^1.4",
"vlucas/phpdotenv": "^3.0.0",
"oscarotero/env": "^1.1.0",
"roots/wordpress": "5.1.1",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.0.0",
"timber/timber": "^1.9"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.0.2",
"roave/security-advisories": "dev-master"
},
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"web/app/plugins/{$name}/": [
"type:wordpress-plugin"
],
"web/app/themes/{$name}/": [
"type:wordpress-theme"
]
},
"wordpress-install-dir": "web/back_office"
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"test": [
"phpcs"
]
}
"name": "rafadiot/vayne",
"type": "project",
"license": "MIT",
"description": "Vayne is a folder structure for Wordpress implement Bedrock.",
"authors": [
{
"name": "Tuan Le Minh",
"email": "minhtuanchannhan@gmail.com",
"homepage": "https://github.com/rafadiot"
}
],
"keywords": [
"vayne",
"rafadiot",
"wordpress folder structure",
"bedrock"
],
"support": {
"issues": "https://github.com/rafadiot/vayne/issues"
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist"
},
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=7.1",
"composer/installers": "^1.4",
"vlucas/phpdotenv": "^3.0.0",
"oscarotero/env": "^1.1.0",
"roots/wordpress": "5.1.1",
"roots/wp-config": "1.0.0",
"roots/wp-password-bcrypt": "1.0.0",
"timber/timber": "^1.9"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.0.2",
"roave/security-advisories": "dev-master"
},
"extra": {
"installer-paths": {
"web/app/mu-plugins/{$name}/": [
"type:wordpress-muplugin"
],
"web/app/plugins/{$name}/": [
"type:wordpress-plugin"
],
"web/app/themes/{$name}/": [
"type:wordpress-theme"
]
},
"wordpress-install-dir": "public/back_office"
},
"scripts": {
"post-root-package-install": [
"php -r \"copy('.env.example', '.env');\""
],
"test": [
"phpcs"
]
}
}
Loading

0 comments on commit 50edb2b

Please sign in to comment.