Skip to content

Commit

Permalink
Release 1.0.3. (#54)
Browse files Browse the repository at this point in the history
* Update to latest CircleCI node version.

* Add mention of yarn. (#53)

* Fix usage example in docs. (#52)

* Switch to yarn and add lock file.

* Bump version.

* Update CircleCI config to use yarn.

* Update changelog.
  • Loading branch information
odub authored Oct 18, 2017
1 parent e96580d commit 96bf86f
Show file tree
Hide file tree
Showing 6 changed files with 4,819 additions and 21 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [1.0.3] - 2017-10-18
### Fixed
- Fixed error in docs usage example.

## [1.0.2] - 2017-06-27
### Added
- Added ISC license.
Expand Down
16 changes: 11 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,24 @@ general:
branches:
ignore:
- gh-pages
dependencies:
override:
- yarn
cache_directories:
- ~/.cache/yarn
machine:
environment:
USER_NAME: odub
USER_EMAIL: [email protected]
PATH: "${PATH}:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin"
node:
version: 4.2.2
version: 8.2.0
test:
override:
- npm run build
- npm run lint
- npm run test
- npm run docs:build
- yarn run build
- yarn run lint
- yarn run test
- yarn run docs:build
deployment:
production:
branch: master
Expand Down
3 changes: 3 additions & 0 deletions docs/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ toc:
"To install the latest version of mpe.js:
<pre class='p1 mb1'>npm install --save mpe</pre>\n
Or using yarn:
<pre class='p1 mb1'>yarn add mpe</pre>\n
To use without a package manager:
<pre class='p1 mb1'>&lt;script src='//unpkg.com/mpe@{PACKAGE_JSON_VERSION}/lib/mpe.min.js'>&lt;/script></pre>"

Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mpe",
"version": "1.0.2",
"version": "1.0.3",
"description": "Next generation MIDI for the web",
"keywords": [
"mpe",
Expand All @@ -22,20 +22,20 @@
},
"main": "lib/index.js",
"scripts": {
"build": "npm run clean && npm run compile",
"build:sandbox": "npm run clean && npm run compile:dev",
"build": "yarn run clean && yarn run compile",
"build:sandbox": "yarn run clean && yarn run compile:dev",
"clean": "rm -rf lib/*",
"compile": "WEBPACK_ENV=build webpack",
"compile:dev": "WEBPACK_ENV=dev webpack",
"docs:clean": "rm -rf docs/dist/*",
"docs:jsdoc": "jsdoc src/*/index.js -d docs",
"docs:documentation-js": "documentation build ./src/*/index.js --config docs/documentation.yml --theme docs/_theme --format html --shallow --github --name mpe.js --output docs/dist",
"docs:build": "npm run docs:clean && npm run docs:documentation-js && cp docs/CNAME circle.yml docs/dist/ && cp lib/mpe.min.js docs/dist/assets",
"docs:serve": "npm run docs:build && pushd docs/dist && python -m SimpleHTTPServer 8001 && popd",
"docs:deploy": "npm run docs:build && git-directory-deploy --directory docs/dist --branch gh-pages",
"docs:build": "yarn run docs:clean && yarn run docs:documentation-js && cp docs/CNAME circle.yml docs/dist/ && cp lib/mpe.min.js docs/dist/assets",
"docs:serve": "yarn run docs:build && pushd docs/dist && python -m SimpleHTTPServer 8001 && popd",
"docs:deploy": "yarn run docs:build && git-directory-deploy --directory docs/dist --branch gh-pages",
"lint": "eslint src/",
"prepublish": "npm run build",
"publish": "npm run docs:deploy",
"prepublish": "yarn run build",
"publish": "yarn run docs:deploy",
"test": "mocha --compilers js:babel-core/register test/**/*.test.js",
"serve": "python -m SimpleHTTPServer 8000"
},
Expand Down
17 changes: 9 additions & 8 deletions src/mpeInstrument/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,16 @@ import rootReducer from './reducers';
* // Define `instrument` as an instance of `mpeInstrument`
* const instrument = mpeInstrument();
*
* // 1) Request MIDI device access from the Web MIDI API
* // 2) Take the first `MIDIInput` from the available MIDI `inputMap`
* // 3) Send input messages from this input to `instrument`
* // Request MIDI device access from the Web MIDI API
* navigator.requestMIDIAccess().then(access => {
* const midiInput = access.inputMap.values().next();
* midiInput.addEventListener(
* 'midimessage',
* (event) => instrument.processMidiMessage(event.data)
* );
* // Iterate over the list of inputs returned
* access.inputs.forEach(midiInput => {
* // Send 'midimessage' events to the mpe.js `instrument` instance
* midiInput.addEventListener(
* 'midimessage',
* (event) => instrument.processMidiMessage(event.data)
* );
* });
* });
* @param {Object} options
* @param {Boolean} [options.log=false] Log instrument state to the console on
Expand Down
Loading

0 comments on commit 96bf86f

Please sign in to comment.