@werckmeister/components 1.1.6-171 → 1.1.6-172

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -157,3 +157,31 @@ sets the style content to the underlying editor component
157
157
  Load a custom CSS file to override the default styling of the editor.
158
158
  ### wm-filename
159
159
  Defines a filename for the editor file. This file is accessable for the compiler.
160
+
161
+ ## Development
162
+
163
+ Requires Node.js 22. The bundle is built with [esbuild](https://esbuild.github.io/) (`build.mjs`) into `dist/`.
164
+
165
+ | Command | |
166
+ |---|---|
167
+ | `npm run serve` | dev server with rebuild on change: http://localhost:1234/test-snippet.html, http://localhost:1234/test-workspace.html |
168
+ | `npm run watch` | rebuild `dist/` on change |
169
+ | `npm run typecheck` | TypeScript type check |
170
+ | `npm run deploy` | type check + production build, `dist/` is ready to publish |
171
+
172
+ Releases are published to npm by CI on every push to `master` (`1.1.6-<run>`) or `develop`/`feature/*` (`1.1.10-dev-<run>`).
173
+
174
+ ### Testing local changes in werckmeister-online
175
+
176
+ Link the local build into the frontend without touching its `package.json`/lockfile:
177
+
178
+ ```sh
179
+ # werckmeister-component
180
+ npm run watch
181
+
182
+ # werckmeister-online/frontend
183
+ npm install --no-save ../../werckmeister-component/dist
184
+ npm start
185
+ ```
186
+
187
+ Changes are picked up by `ng serve` on reload. A regular `npm install`/`npm ci` in the frontend switches back to the published version.
package/package.json CHANGED
@@ -1,21 +1,14 @@
1
1
  {
2
2
  "name": "@werckmeister/components",
3
- "version": "1.1.6-171",
3
+ "version": "1.1.6-172",
4
4
  "description": "",
5
5
  "main": "werckmeister-components.js",
6
6
  "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "build": "parcel build --no-source-maps src/werckmeister-components.ts",
9
- "deploy": "rm -rf dist && npm run build && cp package.json dist && cp README.md dist",
10
- "serve-snippet": "parcel --no-source-maps test-snippet.html editor.css",
11
- "serve-workspace": "parcel --no-source-maps test-workspace.html editor.css"
12
- },
13
- "staticFiles": {
14
- "staticPath": [
15
- "./node_modules/@werckmeister/compilerjs",
16
- "./node_modules/@werckmeister/midiplayer"
17
- ],
18
- "watcherGlob": "*.wasm"
7
+ "build": "node build.mjs",
8
+ "typecheck": "tsc --noEmit",
9
+ "serve": "node build.mjs --serve",
10
+ "watch": "node build.mjs --watch",
11
+ "deploy": "npm run typecheck && npm run build && cp package.json README.md LICENSE dist"
19
12
  },
20
13
  "repository": {
21
14
  "type": "git",
@@ -28,26 +21,17 @@
28
21
  },
29
22
  "homepage": "https://github.com/werckme/werckmeister-component#readme",
30
23
  "dependencies": {
31
- "@types/codemirror": "0.0.98",
32
- "@types/lodash": "^4.14.164",
33
24
  "@werckmeister/compilerjs": "1.4.6-1114",
34
25
  "@werckmeister/language-features": "^1.0.0-79",
35
26
  "@werckmeister/midiplayer": "1.0.2-43",
36
- "babel-core": "^6.26.3",
37
- "babel-polyfill": "^6.26.0",
38
27
  "codemirror": "^5.57.0",
39
- "jquery": "^3.5.1",
40
28
  "lodash": "^4.17.20",
41
- "xmlhttprequest": "^1.8.0"
29
+ "regenerator-runtime": "^0.14.1"
42
30
  },
43
31
  "devDependencies": {
44
- "@babel/core": "^7.11.6",
45
- "@babel/preset-typescript": "^7.10.4",
46
- "babel-plugin-transform-runtime": "^6.23.0",
47
- "babel-preset-es2015": "^6.24.1",
48
- "parcel": "^1.12.3",
49
- "parcel-bundler": "^1.12.5",
50
- "parcel-plugin-static-files-copy": "^2.5.0",
51
- "typescript": "^4.0.2"
32
+ "@types/codemirror": "^5.60.18",
33
+ "@types/lodash": "^4.17.27",
34
+ "esbuild": "^0.28.2",
35
+ "typescript": "^7.0.2"
52
36
  }
53
37
  }