-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit moves the build to Vite, simplifying the build setup. BREAKING CHANGE: the build now targets Vite's default target, which is browsers natively supporting ES modules. This means that the code may not work on older platforms without transpilation.
- Loading branch information
Ian Johnson
authored
Dec 27, 2021
1 parent
4fe589b
commit 7662e7e
Showing
29 changed files
with
9,136 additions
and
3,598 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode | ||
dist | ||
node_modules | ||
website |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
root: true, | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
tsconfigRootDir: __dirname, | ||
project: ["./tsconfig.json"], | ||
}, | ||
plugins: ["@typescript-eslint", "eslint-plugin-tsdoc"], | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@typescript-eslint/recommended-requiring-type-checking", | ||
], | ||
rules: { | ||
"tsdoc/syntax": "error", | ||
}, | ||
ignorePatterns: [".eslintrc.cjs", "jest.config.cjs", "vite.config.ts"], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,3 @@ | ||
lib/ | ||
umd/ | ||
|
||
## From https://github.com/github/gitignore/blob/master/Node.gitignore | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next | ||
.vscode | ||
dist | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.vscode | ||
dist | ||
node_modules | ||
website/.docusaurus | ||
website/build | ||
website/docs/api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"proseWrap": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"branches": [ | ||
"main", | ||
{ "name": "beta", "prerelease": true }, | ||
{ "name": "alpha", "prerelease": true } | ||
], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"releaseRules": [ | ||
{ "type": "build", "scope": "deps", "release": "patch" } | ||
] | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/npm", | ||
"@semantic-release/github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,35 @@ | ||
# pitchy | ||
|
||
[![npm](https://img.shields.io/npm/v/pitchy.svg)](https://www.npmjs.com/package/pitchy) | ||
[![Travis](https://img.shields.io/travis/ianprime0509/pitchy.svg)](https://travis-ci.org/ianprime0509/pitchy) | ||
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ianprime0509/pitchy/CI) | ||
|
||
pitchy is a simple pitch-detection library written entirely in JavaScript that | ||
aims to be fast and accurate enough to be used in real-time applications such as | ||
tuners. To do this, it uses the McLeod Pitch Method, described in the paper [A | ||
Smarter Way to Find | ||
Pitch](http://www.cs.otago.ac.nz/tartini/papers/A_Smarter_Way_to_Find_Pitch.pdf) | ||
tuners. To do this, it uses the McLeod Pitch Method, described in the paper | ||
[A Smarter Way to Find Pitch](http://www.cs.otago.ac.nz/tartini/papers/A_Smarter_Way_to_Find_Pitch.pdf) | ||
by Philip McLeod and Geoff Wyvill. | ||
|
||
## Installation | ||
|
||
You can install pitchy using npm: | ||
You can install pitchy using NPM (or similar tools such as Yarn): | ||
|
||
```sh | ||
```shell | ||
npm install pitchy | ||
``` | ||
|
||
Alternatively, to use pitchy in a simple web page without any bundler tools, you | ||
can use [unpkg](https://unpkg.com). This is the approach taken in the simple | ||
example under the `examples/simple` directory in this project: just include the | ||
following `script` tag in your page and then access the contents of the library | ||
under the `pitchy` global object: | ||
You can also use a CDN, such as [esm.sh](https://esm.sh), directly from a | ||
browser or Deno: | ||
|
||
```html | ||
<script src="https://unpkg.com/pitchy@2.1.0/umd/index.js"></script> | ||
```js | ||
import { PitchDetector } from "https://esm.sh/pitchy@3"; | ||
``` | ||
|
||
## Examples and documentation | ||
|
||
For examples and documentation, see the [project | ||
site](https://ianjohnson.dev/pitchy). | ||
For examples and documentation, see the | ||
[project site](https://ianjohnson.dev/pitchy). | ||
|
||
## License | ||
|
||
This is free software, distributed under the [MIT | ||
license](https://opensource.org/licenses/MIT). | ||
This is free software, distributed under the | ||
[MIT license](https://opensource.org/licenses/MIT). |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
module.exports = { | ||
preset: "ts-jest", | ||
resolver: "ts-jest-resolver", | ||
}; |
Oops, something went wrong.