Skip to content

Commit

Permalink
Add example with vue
Browse files Browse the repository at this point in the history
  • Loading branch information
William Sena committed May 4, 2023
0 parents commit 04256b4
Show file tree
Hide file tree
Showing 23 changed files with 5,295 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')

module.exports = {
root: true,
'extends': [
'plugin:vue/vue3-essential',
'eslint:recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
}
}
28 changes: 28 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
.DS_Store
dist
dist-ssr
coverage
*.local

/cypress/videos/
/cypress/screenshots/

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
8 changes: 8 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"$schema": "https://json.schemastore.org/prettierrc",
"semi": false,
"tabWidth": 2,
"singleQuote": true,
"printWidth": 100,
"trailingComma": "none"
}
3 changes: 3 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
}
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vue-phaser.surge.sh
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Vue Phaser example

This repository includes an example with Vue 3 (Vite) and Phaser.js
Using plugin [nuxtjs-phaser](https://www.npmjs.com/package/nuxtjs-phaser).

## Setup

```sh
npm install

# or

yarn install
```

### Compile and Hot-Reload for Development

```sh
npm run dev

#or

yarn dev
```

### Type-Check, Compile and Minify for Production

```sh
npm run build

# or

yarn build
```

### Lint with [ESLint](https://eslint.org/)

```sh
npm run lint

# or

yarn lint
```

# Live demo

This project can be viewed at [vue-phaser.surge.sh/](http://vue-phaser.surge.sh/).
Thanks to Surge 💛.
3 changes: 3 additions & 0 deletions env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference types="vite/client" />
/// <reference path="node_modules/nuxtjs-phaser/types/index.d.ts"/>
/// <reference path="node_modules/nuxtjs-phaser/types/vue-shim.d.ts"/>
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="icon" href="/favicon.ico">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Vite App</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 04256b4

Please sign in to comment.