Skip to content

Commit 8e5c400

Browse files
committed
music21j 0.17.12
Move to eslint 9. Remove broken grunt-publish and update README. Fix little lint bugs.
1 parent 0245b7c commit 8e5c400

25 files changed

+2696
-1508
lines changed

Gruntfile.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -264,9 +264,4 @@ module.exports = grunt => {
264264
// grunt.registerTask('test_no_watch', 'Run qunit tests', ['webpack:test', 'qunit']);
265265
grunt.registerTask('test', 'Watch qunit tests', ['webpack:test']);
266266
grunt.registerTask('test_no_watch', 'Run qunit tests', ['webpack:test_no_watch', 'qunit']);
267-
grunt.registerTask('publish', 'Raise the version and be ready to publish', () => {
268-
// vulnerable jsdoc versions only available.
269-
// grunt.task.run('jsdoc');
270-
grunt.task.run('bump');
271-
});
272267
};

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ the Seaver Institute and the National Endowment for the Humanities. Earlier ver
159159
[jsdoc]:http://usejsdoc.org
160160

161161

162-
## Dev Notes
162+
# Dev Notes
163163
Build and watch with
164164

165165
```sh
@@ -189,32 +189,28 @@ for running tests one time without watch, you can use:
189189
$ grunt test_no_watch
190190
```
191191

192-
### Publishing a new version
192+
## Publishing a new version
193193
You'll need to be part of the npm dev team.
194194

195195
Two steps
196196

197-
1: Build the latest version by running:
197+
1. Update the version number in package.json, manually in main.ts,
198+
and (if bigger than patch), here. Then do all the steps again from the start. :-)
198199

199-
```sh
200-
$ grunt
201-
```
202200

203-
Then update the version number and commit with:
201+
2. Run this which will update the version number in package-lock.json -- important!
204202

205203
```sh
206-
$ grunt publish
207-
```
204+
$ npm install
205+
````
208206

209-
(It also tries to build the
210-
docs via `grunt jsdoc` (currently failing).
211-
The template is specified in jsdoc-template/jsdoc.conf.json)
207+
3. Build the latest version by running:
212208

213-
For a non-backwards compatible release, edit the minor
214-
version number manually in this README.md, in main.ts, and in
215-
package.json. Then do all the steps again from the start. :-)
209+
```sh
210+
$ grunt
211+
```
216212

217-
Then run the copy script with:
213+
4. Then run the copy script with:
218214

219215
```sh
220216
$ npm publish
@@ -223,12 +219,16 @@ $ npm publish
223219
which will copy the current contents of `build` in `releases`
224220
and publish on npm.
225221

226-
Before publishing, every once in a while run (in the music21j directory)
222+
## Updating Dependencies
223+
224+
Every once in a while run (in the music21j directory)
227225

228226
```sh
229227
$ node_modules/.bin/npm-check-updates
230228
```
231229

230+
(You may have it installed as "ncu")
231+
232232
and if it looks like something to update, run
233233

234234
```sh

package-lock.json

Lines changed: 15 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "music21j",
3-
"version": "0.17.11",
3+
"version": "0.17.12",
44
"description": "A toolkit for computer-aided musicology, Javascript version",
55
"main": "releases/music21.debug.js",
66
"typings": "releases/src/main.d.ts",

releases/music21.debug.js

Lines changed: 2614 additions & 1445 deletions
Large diffs are not rendered by default.

releases/music21.debug.js.LICENSE.txt

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
/*!
2+
----------------------------------------------------------
3+
midicube
4+
2025-05-23 - version 0.9
5+
6+
based on MIDI.js. v. 0.3.4 : 2015-03-26
7+
8+
MIT License
9+
https://github.com/mscuthbert/midicube/
10+
11+
Technologies: Web MIDI API, Web Audio API, HTML5 Audio Tag
12+
----------------------------------------------------------
13+
*/
14+
15+
/*!
16+
*
17+
* jsonpickle.js 1.1.2 built on 2019-08-31
18+
* Copyright (c) 2013-2019 Michael Scott Cuthbert and cuthbertLab. BSD License
19+
*
20+
* http://github.com/cuthbertLab/jsonpickleJS
21+
*
22+
*/
23+
24+
/**!
25+
* **music21j**: Javascript reimplementation of Core music21 features.
26+
*
27+
* See http://web.mit.edu/music21/ for more details.
28+
*
29+
* Copyright (c) 2013-24, Michael Scott Asato Cuthbert
30+
* Released under a BSD-3-clause license
31+
*
32+
*/

releases/music21.debug.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

releases/src/common.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference types="jquery" />
2-
/// <reference types="jquery" />
31
export declare function coerceHTMLElement(el?: JQuery | HTMLElement): HTMLElement;
42
/**
53
* concept borrowed from Vex.Flow.Merge, though here the source can be undefined;

releases/src/common.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

releases/src/keyboard.d.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
/// <reference types="jquery" />
2-
/// <reference types="jquery" />
31
import * as miditools from './miditools';
42
import * as pitch from './pitch';
53
/**

0 commit comments

Comments
 (0)