Skip to content

Commit

Permalink
Simplified the folder structure (for vite)
Browse files Browse the repository at this point in the history
  • Loading branch information
dutchcelt committed Jan 13, 2024
1 parent c541274 commit d38eebc
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 63 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ https://dutchcelt.github.io/tictactoe/

### NPM Script Options

Run the game, run tests or run in development mode
Run the game, run tests, run in development mode, or run a build.

- `npm run game`
- `npm test`
- `npm run develop`
- `npm run build`
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "tictactoe",
"version": "1.0.2",
"main": "src/index.html",
"main": "index.html",
"type": "module",
"scripts": {
"build": "vite build './src' --base='tictactoe' --outDir='../dist'",
"game": "vite src --base=tictactoe --open",
"build": "vite build",
"game": "vite --open",
"develop": "npm run game & ava --verbose --watch ",
"test": "c8 ava"
},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { resolve } from 'path';
import { defineConfig } from 'vite';

export default defineConfig({
base: '/tictactoe/',
build: {
minify: true,
},
});
59 changes: 0 additions & 59 deletions web-dev-server.config.js

This file was deleted.

0 comments on commit d38eebc

Please sign in to comment.