sasquatchwp/sasquatchwp

Starter stack for WordPress - mix of Foundation, Bedrock and some magic

Installs: 11

Dependents: 0

Suggesters: 0

Security: 0

Stars: 15

Watchers: 5

Forks: 2

Open Issues: 1

Language:SCSS

Type:project

dev-master 2021-02-09 19:57 UTC

This package is auto-updated.

Last update: 2024-04-10 03:13:33 UTC


README

sasquatch%20logo.png

Sasquatch WP - starter pack

Description

This is SasquatchWP starter stack.

What is SasquatchWP?

It's the mix of:

and a little magic to keep it all together.

Instalation

  1. git clone https://github.com/SasquatchWP/SasquatchWP.git .
  2. Rename .env.example to .env and fill it with correct data (database name, password etc) - remember to add salts from here
  3. Prepare .htaccess or vhost
  4. composer install
  5. Change theme name in web/app/themes/sasquatch
  6. cd web/app/themes/{theme_name}
  7. npm install
  8. composer install

Remember to change DEVURL in web/app/themes/{theme_name}/config.yml

.htaccess

This is universal .htaccess you can use for shared hosting.

Example for domains (domain.test)

<Files ~ '\.(env|json|config.js|md|gitignore|gitattributes|lock)$'>
    Order allow,deny
    Deny from all
</Files>
<Files ~ '(composer.json|test.html)$'>
    Order allow,deny
    Deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.test$
RewriteCond %{REQUEST_URI} !^/web/
RewriteRule ^(.*)$ /web/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.test$
RewriteRule ^(/)?$ web/index.php [L]

Example for subfolders (domain.test/subfolder)

<Files ~ '\.(env|json|config.js|md|gitignore|gitattributes|lock)$'>
    Order allow,deny
    Deny from all
</Files>
<Files ~ '(composer.json|test.html)$'>
    Order allow,deny
    Deny from all
</Files>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www.)?domain.test$
RewriteCond %{REQUEST_URI} !^/subfolder/web/
RewriteRule ^(.*)$ /subfolder/web/$1
RewriteCond %{HTTP_HOST} ^(www.)?domain.test$
RewriteRule ^(/)?$ web/index.php [L]

vhost

Set your site vhost document root to /path/to/site/web/

Example

<VirtualHost *:80>
	ServerName domain.test
	DocumentRoot "/path/to/site/web"
	<Directory  "/path/to/site/">
		Options +Indexes +Includes +FollowSymLinks +MultiViews
		AllowOverride All
	</Directory>
</VirtualHost>

Usage

  • npm run build - run all tasks for production

  • npm run development - run all tasks for development (sitemaps etc)

  • npm start - run tasks in watch mode

  • npm es-lint - runs javascript lint - to change configuration look at .browserslistrc

  • npm sass-lint - runs sass lint - to change configuration look at .sass-lint.yml

  • npm audit - runs Parker audit

Where is it used

If you are using SasquatchWP contact me at m.palmowski@freshpixels.pl