Skip to content

Commit

Permalink
Next.js 13 (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
satelllte authored Jul 25, 2023
1 parent cb5012f commit b0a749a
Show file tree
Hide file tree
Showing 49 changed files with 1,761 additions and 2,318 deletions.
22 changes: 0 additions & 22 deletions .devcontainer/devcontainer.json

This file was deleted.

2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ root = true
end_of_line = lf
insert_final_newline = true

[*.{js,ts,jsx,tsx,json}]
[*.{yml,json,js,ts,tsx}]
indent_style = space
indent_size = 2
5 changes: 5 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules
.next
out
next.config.js
postcss.config.js
3 changes: 0 additions & 3 deletions .eslintrc.json

This file was deleted.

11 changes: 11 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
extends:
- plugin:@next/next/core-web-vitals
- xo
- xo-typescript
- xo-react
- plugin:react/jsx-runtime # Prevents "'React' must be in scope when using JSX" errors
- plugin:tailwindcss/recommended
- prettier

rules:
tailwindcss/classnames-order: 'off' # Handled by "prettier-plugin-tailwindcss"
17 changes: 12 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,18 @@
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
- package-ecosystem: 'npm'
directory: '/'
schedule:
interval: 'monthly'
commit-message:
prefix: '[skip ci][skip deploy] npm'

- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: "monthly"
open-pull-requests-limit: 20
interval: 'monthly'
commit-message:
prefix: '[skip ci][skip deploy] github-actions'
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Test

env:
NODE_VERSION: 18

on:
pull_request:
branches:
- main
push:
branches:
- main

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install dependencies
run: npm ci
- name: Test lint
run: npm run test:lint
- name: Test formatting
run: npm run test:format
8 changes: 3 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
/.pnp
.pnp.js

# editors
.vscode

# testing
/coverage

Expand All @@ -23,7 +26,6 @@
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# local env files
.env*.local
Expand All @@ -34,7 +36,3 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts

# editors
.idea
.vscode
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
.next
out
10 changes: 10 additions & 0 deletions .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
plugins:
- prettier-plugin-tailwindcss

# tabWidth: <inherited from .editorconfig>
# useTabs: <inherited from .editorconfig>
# endOfLine: <inherited from .editorconfig>
semi: true
singleQuote: true
jsxSingleQuote: true
bracketSpacing: false
25 changes: 25 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Development

The repository uses [Next.js](https://nextjs.org/) framework, so once you have some familiarity with it, it should be easy to work with this repository in general.

## Quick start

Switch to required Node.js version:

```sh
nvm use
```

Install Node.js modules:

```sh
npm ci
```

Start local development server:

```sh
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) in the browser.
30 changes: 9 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,35 +3,23 @@
Visualization of how Web Audio API's `AudioParam` value changes over time

## See LIVE

### https://audioparam-visualization.vercel.app

<img src="./public/waveform-1.png" width="400"/>
<img src="./docs/waveform-1.png" width="400"/>

<img src="./public/waveform-2.png" width="400"/>
<img src="./docs/waveform-2.png" width="400"/>

<img src="./public/waveform-3.png" width="400"/>
<img src="./docs/waveform-3.png" width="400"/>

<img src="./public/waveform-4.png" width="400"/>
<img src="./docs/waveform-4.png" width="400"/>

<img src="./public/waveform-5.png" width="400"/>
<img src="./docs/waveform-5.png" width="400"/>

<img src="./public/waveform-6.png" width="400"/>
<img src="./docs/waveform-6.png" width="400"/>

<img src="./public/waveform-7.png" width="400"/>
<img src="./docs/waveform-7.png" width="400"/>

## Development

(1) Install Node.js dependencies

```sh
nvm use
npm install
```

(2) Run the development server:

```bash
npm run dev
```

Open [http://localhost:3000](http://localhost:3000) in browser.
See [DEVELOPMENT](./DEVELOPMENT.md) guide.
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
6 changes: 2 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
}
const nextConfig = {};

module.exports = nextConfig
module.exports = nextConfig;
Loading

1 comment on commit b0a749a

@vercel
Copy link

@vercel vercel bot commented on b0a749a Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.