Skip to content
Permalink
Browse files

Initial commit

  • Loading branch information
ChrisWiegman committed May 23, 2020
0 parents commit 824f29062602b41b042f56cc97423f641ae8da5f
@@ -0,0 +1,222 @@
### Vim template
# swap
[._]*.s[a-v][a-z]
[._]*.sw[a-p]
[._]s[a-v][a-z]
[._]sw[a-p]
# session
Session.vim
# temporary
.netrwhist
*~
# auto-generated tag files
tags
### Vagrant template
.vagrant/
### SublimeText template
# cache files for sublime text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# workspace files are user-specific
*.sublime-workspace

# project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using SublimeText
# *.sublime-project

# sftp configuration file
sftp-config.json

# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache

# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
### Eclipse template

.metadata
bin/
!tests/bin/
tmp/
*.tmp
*.bak
*.swp
*~.nib
local.properties
.settings/
.loadpath
.recommenders

# Eclipse Core
.project

# External tool builders
.externalToolBuilders/

# Locally stored "Eclipse launch configurations"
*.launch

# PyDev specific (Python IDE for Eclipse)
*.pydevproject

# CDT-specific (C/C++ Development Tooling)
.cproject

# JDT-specific (Eclipse Java Development Tools)
.classpath

# Java annotation processor (APT)
.factorypath

# PDT-specific (PHP Development Tools)
.buildpath

# sbteclipse plugin
.target

# Tern plugin
.tern-project

# TeXlipse plugin
.texlipse

# STS (Spring Tool Suite)
.springBeans

# Code Recommenders
.recommenders/

# Scala IDE specific (Scala & Java development for Eclipse)
.cache-main
.scala_dependencies
.worksheet
### macOS template
*.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
### Linux template

# temporary files which can be created if a process still has a handle open of a deleted file
.fuse_hidden*

# KDE directory preferences
.directory

# Linux trash folder which might appear on any partition or disk
.Trash-*

# .nfs files are created when an open file is removed but is still being accessed
.nfs*
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff:
.idea

## File-based project format:
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
### Windows template
# Windows thumbnail cache files
Thumbs.db
ehthumbs.db
ehthumbs_vista.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN/

# Windows Installer files
*.cab
*.msi
*.msm
*.msp

# Windows shortcuts
*.lnk
### TextMate template
*.tmproj
*.tmproject
tmtags

# Build Assets
node_modules
vendor
/plugin/languages/*.pot
assets/css/*.css
assets/css/*.map
assets/js/*.js
assets/js/*.map
coverage.clover
/plugin/scripts/*-min.js

# Docker files
Docker/database
Docker/wordpress
Docker/logs
Docker/debug
!Docker/bin

# Unit tests
!/tests/bin/

# WordPress core (for IDEs)
/wordpress/

# Build files
/build/
clover.xml
@@ -0,0 +1,5 @@
gulpfile.js
**/*-min.js
wordpress/
node_modules/
vendor/
@@ -0,0 +1,29 @@
{
"boss": true,
"curly": true,
"eqeqeq": true,
"eqnull": true,
"esversion": 3,
"expr": true,
"immed": true,
"noarg": true,
"nonbsp": true,
"onevar": true,
"quotmark": "single",
"trailing": true,
"undef": true,
"unused": true,

"browser": true,

"globals": {
"_": false,
"Backbone": false,
"jQuery": false,
"JSON": false,
"wp": false,
"export": false,
"module": false,
"require": false
}
}
@@ -0,0 +1,26 @@
name: wordpress-plugin-starter
recipe: wordpress
config:
webroot: wordpress
php: '7.4'
via: nginx
database: mariadb
xdebug: true
services:
mailhog:
type: mailhog
portforward: true
hogfrom:
- appserver
phpmyadmin:
type: phpmyadmin
hosts:
- database
appserver:
overrides:
volumes:
- ./plugin:/app/wordpress/wp-content/plugins/wordpress-plugin-starter
tooling:
phpunit:
service: appserver
cmd: vendor/bin/phpunit
@@ -0,0 +1,12 @@
{
"recommendations": [
"felixfbecker.php-intellisense",
"ikappas.phpcs",
"bmewburn.vscode-intelephense-client",
"neilbrayfield.php-docblocker",
"persoderlind.vscode-phpcbf",
"felixfbecker.php-debug",
"dbaeumer.jshint",
"johnbillion.vscode-wordpress-hooks"
]
}
@@ -0,0 +1,16 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"log": true,
"pathMappings": {
"/app/wordpress/wp-content/plugins/wordpress-plugin-starter/": "${workspaceFolder}/plugin",
"/app/wordpress/": "${workspaceFolder}/wordpress",
}
}
]
}
@@ -0,0 +1,6 @@
{
"phpcs.standard": "phpcs.xml",
"phpcbf.executablePath": "${workspaceRoot}/vendor/bin/phpcbf",
"phpcbf.standard": "phpcs.xml",
"intelephense.diagnostics.undefinedConstants": false,
}
@@ -0,0 +1,5 @@
FROM node:lts
ARG UID=1000
ARG GID=1000

RUN groupmod -g ${GID} node && usermod -u ${UID} -g ${GID} node
@@ -0,0 +1,20 @@
FROM php:7.4-cli

RUN apt-get update && \
apt-get install -y \
git \
unzip \
--no-install-recommends && \
rm -r /var/lib/apt/lists/*

RUN pecl install xdebug && \
docker-php-ext-enable xdebug

RUN echo "xdebug.remote_enable=1" >> /usr/local/etc/php/conf.d/xdebug.ini && \
echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/conf.d/xdebug.ini && \
echo "xdebug.remote_connect_back=0" >> /usr/local/etc/php/conf.d/xdebug.ini && \
echo "xdebug.profiler_enable=0" >> /usr/local/etc/php/conf.d/xdebug.ini

VOLUME [ "/app" ]

WORKDIR /app

0 comments on commit 824f290

Please sign in to comment.
You can’t perform that action at this time.