Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DaisukeDaisuke committed Apr 23, 2020
0 parents commit 3a05be5
Show file tree
Hide file tree
Showing 11 changed files with 537 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CI

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Syntax checking of php files
run: find ./src -name "*.php" -type f | xargs -l -P 0 php -l -f
- name: Download DevTools
run: wget https://github.com/pmmp/DevTools/releases/download/1.14.0/DevTools.phar -O ~/DevTools.phar
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "::set-output name=dir::$(composer config cache-files-dir)"
- name: Restore cache
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer validate
run: composer validate
- name: Install dependencies
run: composer install --no-dev --prefer-dist --no-progress --no-suggest
- name: Build source code
run: php -dphar.readonly=0 ~/DevTools.phar --make ./ --out ./out.phar
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: PHAR
path: ./out.phar
25 changes: 25 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# CakePHP 3

/vendor/*
/config/app.php

/tmp/cache/models/*
!/tmp/cache/models/empty
/tmp/cache/persistent/*
!/tmp/cache/persistent/empty
/tmp/cache/views/*
!/tmp/cache/views/empty
/tmp/sessions/*
!/tmp/sessions/empty
/tmp/tests/*
!/tmp/tests/empty

/logs/*
!/logs/empty

# CakePHP 2

/app/tmp/*
/app/Config/core.php
/app/Config/database.php
/vendors/*
9 changes: 9 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"recommendations": [
"MehediDracula.php-namespace-resolver",
"bmewburn.vscode-intelephense-client",
"felixfbecker.php-intellisense",
"neilbrayfield.php-docblocker",
"ikappas.composer"
]
}
71 changes: 71 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"composer.executablePath": "C:\\ProgramData\\ComposerSetup\\bin\\composer.bat",
"intelephense.environment.phpVersion": "7.3.14",
"intelephense.stubs": [
"ftp",
"apache",
"bcmath",
"bz2",
"calendar",
"com_dotnet",
"Core",
"ctype",
"curl",
"date",
"dba",
"dom",
"enchant",
"exif",
"FFI",
"fileinfo",
"filter",
"fpm",
"gd",
"gettext",
"gmp",
"hash",
"iconv",
"intl",
"json",
"libxml",
"mbstring",
"meta",
"mysqli",
"oci8",
"odbc",
"openssl",
"pcntl",
"pcre",
"Phar",
"posix",
"pspell",
"readline",
"Reflection",
"session",
"shmop",
"SimpleXML",
"snmp",
"soap",
"sockets",
"sodium",
"SPL",
"sqlite3",
"standard",
"superglobals",
"sysvmsg",
"sysvsem",
"sysvshm",
"tidy",
"tokenizer",
"xml",
"xmlreader",
"xmlrpc",
"xmlwriter",
"xsl",
"Zend OPcache",
"zip",
"zlib"
],
"intelephense.completion.fullyQualifyGlobalConstantsAndFunctions": true,
"php.suggest.basic": false
}
13 changes: 13 additions & 0 deletions LICENCE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (C) 2004 Sam Hocevar <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# pocketmine-vscode

**This is a template for developing PocketMine-MP plugin in VS Code.**

## Requirements

- php 7.3.16 or later
- Composer 1.10.1 or later
- VS Code 1.43.2 or later

## Recommended Extensions

- IntelliSense (choose one)
- [PHP IntelliSense](https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense)
- [PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client)
- [PHP Namespace Resolver](https://marketplace.visualstudio.com/items?itemName=MehediDracula.php-namespace-resolver)
- [PHP DocBlocker](https://marketplace.visualstudio.com/items?itemName=neilbrayfield.php-docblocker)
- [Composer](https://marketplace.visualstudio.com/items?itemName=ikappas.composer)

## Install dependencies

Open a terminal and execute the following command.

```bash
composer install --prefer-dist --no-progress --no-suggest
```

## Contributing

Please feel free to create an Issue or Pull Request if you have any mistakes or suggestions.
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"name": "your-name/pocketmine-vscode",
"license": "WTFPL",
"description": "This is a template for developing PocketMine-MP plugin in VS Code.",
"authors": [
{
"name": "Your Name",
"email": "[email protected]"
}
],
"require": {},
"require-dev": {
"pocketmine/pocketmine-mp": "3.*"
},
"repositories": [
{
"type": "vcs",
"url": "https://github.com/pmmp/PocketMine-MP.git"
}
]
}
Loading

0 comments on commit 3a05be5

Please sign in to comment.