Skip to content

Commit 7e0fe40

Browse files
committed
Remove build of midi version
1 parent 8b5bba3 commit 7e0fe40

13 files changed

+12
-281
lines changed

.npmignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ tmp/
1515
deploy-docs.sh
1616
docker-compose.yml
1717
Dockerfile
18-
fix-versions.sh
18+
start-version.sh
1919
webpack.config.js

abcjs-midi.css

-166
This file was deleted.

build-copy.sh

-17
This file was deleted.

dist/abcjs-basic-min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/abcjs-basic.js

+3-14
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ return /******/ (function(modules) { // webpackBootstrap
9191
/******/
9292
/******/
9393
/******/ // Load entry module and return exports
94-
/******/ return __webpack_require__(__webpack_require__.s = "./static-wrappers/basic.js");
94+
/******/ return __webpack_require__(__webpack_require__.s = "./index.js");
9595
/******/ })
9696
/************************************************************************/
9797
/******/ ({
@@ -103,6 +103,8 @@ return /******/ (function(modules) { // webpackBootstrap
103103
/*! no static exports found */
104104
/***/ (function(module, exports, __webpack_require__) {
105105

106+
__webpack_require__(/*! ./static-wrappers/license */ "./static-wrappers/license.js");
107+
106108
var version = __webpack_require__(/*! ./version */ "./version.js");
107109

108110
var animation = __webpack_require__(/*! ./src/api/abc_animation */ "./src/api/abc_animation.js");
@@ -25353,19 +25355,6 @@ module.exports = unhighlight;
2535325355

2535425356
/***/ }),
2535525357

25356-
/***/ "./static-wrappers/basic.js":
25357-
/*!**********************************!*\
25358-
!*** ./static-wrappers/basic.js ***!
25359-
\**********************************/
25360-
/*! no static exports found */
25361-
/***/ (function(module, exports, __webpack_require__) {
25362-
25363-
__webpack_require__(/*! ./license */ "./static-wrappers/license.js");
25364-
25365-
module.exports = __webpack_require__(/*! ../index */ "./index.js");
25366-
25367-
/***/ }),
25368-
2536925358
/***/ "./static-wrappers/license.js":
2537025359
/*!************************************!*\
2537125360
!*** ./static-wrappers/license.js ***!

dist/abcjs-basic.js.LICENSE

-23
This file was deleted.

dist/abcjs-basic.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/abcjs-plugin-min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fix-versions.sh

-23
This file was deleted.

midi.js

-21
This file was deleted.

package.json

+1-5
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,10 @@
66
"types": "types/index.d.ts",
77
"scripts": {
88
"webpack": "webpack",
9-
"build": "npm run fix-versions && npm run build:basic && npm run webpack && npm run copy-output",
9+
"build": "npm run build:basic && npm run webpack",
1010
"build:basic": "npm run webpack -- --mode development --config-name basic",
1111
"build:basic-min": "npm run webpack -- --mode production --config-name basic",
1212
"build:plugin": "npm run webpack -- --mode production --config-name plugin",
13-
"build:midi": "npm run webpack -- --mode production --config-name midi",
14-
"fix-versions": "./fix-versions.sh 6.0.0-beta.28",
15-
"copy-output": "./build-copy.sh 6.0.0-beta.28",
1613
"test": "mocha 'tests/**/*.js'",
1714
"docs:dev": "vuepress dev docs",
1815
"docs:build": "vuepress build docs",
@@ -52,7 +49,6 @@
5249
"babel-loader": "8.1.0",
5350
"chai": "4.2.0",
5451
"compression-webpack-plugin": "5.0.1",
55-
"midi": "https://github.com/paulrosen/MIDI.js.git#abcjs",
5652
"mocha": "8.1.3",
5753
"serialize-javascript": "4.0.0",
5854
"svg-inline-loader": "0.8.2",

start-version.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,6 @@ perl -pi -e "s/\"version\": \"([^\"]+)\"/\"version\": \"$1\"/" package.json
1616
# build so dist has the right version numbers.
1717
CMD="install" docker-compose up
1818
CMD="run build" docker-compose up
19+
#### If not running under Docker, do this instead:
20+
# npm install
21+
# npm run build

webpack.config.js

-7
Original file line numberDiff line numberDiff line change
@@ -56,18 +56,11 @@ module.exports = (env = {} , argv) => {
5656
name: 'plugin',
5757
entry: `./static-wrappers/plugin.js`,
5858
...defaults(argv, 'plugin')
59-
}, {
60-
name: 'midi',
61-
entry: `./midi.js`,
62-
...defaults(argv, 'midi')
6359
}
6460
]
6561
};
6662

6763
function makeBanner(type) {
6864
let banner = `abcjs_${type} v${pkg.version} Copyright © 2009-2021 Paul Rosen and Gregory Dyke (https://abcjs.net) */\n`
69-
if (type === 'midi') {
70-
banner += `/*! midi.js Copyright © Michael Deal (http://mudcu.be) */\n`;
71-
}
7265
return banner + `/*! For license information please see abcjs_${type}.LICENSE`;
7366
}

0 commit comments

Comments
 (0)