Skip to content

Commit

Permalink
Upgrade to Vue 3
Browse files Browse the repository at this point in the history
- Updated code and tooling
- Change some component names to comply with the rules of multiple words
- Patch StSound library to allow passing a rate option, which is needed
  as the default assumes 44100 Hz but WebAudio runs at 48000 Hz in some
  cases
  • Loading branch information
nguillaumin committed Sep 17, 2024
1 parent 0494824 commit eed7fe4
Show file tree
Hide file tree
Showing 42 changed files with 3,801 additions and 30,601 deletions.
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

6 changes: 1 addition & 5 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
/build/
/config/
/dist/
/*.js
/test/unit/coverage/
/stsound/
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-prettier/skip-formatting'
],
parserOptions: {
ecmaVersion: 'latest'
},
ignorePatterns: ['**/stsound/**']
}
29 changes: 0 additions & 29 deletions .eslintrc.js

This file was deleted.

9 changes: 0 additions & 9 deletions .postcssrc.js

This file was deleted.

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"
}
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ npm install
### Building the ST-Sound library Emscripten port

```bash
docker run --rm -v $PWD/stsound:/data -w /data emscripten/emsdk:1.39.15 emmake make clean libym.js
docker run --rm -v $PWD/stsound:/data -w /data emscripten/emsdk:3.1.66 emmake make clean libym.js
```

### Generating the songs JSON index file
Expand All @@ -27,14 +27,11 @@ npm run scan-songs

### Running in development mode

⚠️ In development mode you must manually copy `stsound/libym.wasm` to the
root of the project.

```bash
npm run dev
```

This will serve the app at http://0.0.0.0:8080/ with hot reload.
This will serve the app at http://localhost:5173/ with hot reload.

### Building the production version

Expand Down
41 changes: 0 additions & 41 deletions build/build.js

This file was deleted.

49 changes: 0 additions & 49 deletions build/check-versions.js

This file was deleted.

Binary file removed build/logo.png
Binary file not shown.
98 changes: 0 additions & 98 deletions build/utils.js

This file was deleted.

22 changes: 0 additions & 22 deletions build/vue-loader.conf.js

This file was deleted.

Loading

0 comments on commit eed7fe4

Please sign in to comment.