@devaloop/devalang 0.0.1-beta.2 → 0.1.1
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 +177 -146
- package/out-tsc/api.d.ts +180 -0
- package/out-tsc/api.d.ts.map +1 -0
- package/out-tsc/api.js +286 -0
- package/out-tsc/api.js.map +1 -0
- package/out-tsc/bin/index.d.ts +12 -0
- package/out-tsc/bin/index.d.ts.map +1 -0
- package/out-tsc/bin/index.js +20 -54
- package/out-tsc/bin/index.js.map +1 -0
- package/out-tsc/examples/basic-usage.d.ts +8 -0
- package/out-tsc/examples/basic-usage.d.ts.map +1 -0
- package/out-tsc/examples/basic-usage.js +113 -0
- package/out-tsc/examples/basic-usage.js.map +1 -0
- package/out-tsc/index.d.ts +19 -5
- package/out-tsc/index.d.ts.map +1 -0
- package/out-tsc/index.js +24 -6
- package/out-tsc/index.js.map +1 -0
- package/out-tsc/scripts/copy-wasm-dts.d.ts +7 -0
- package/out-tsc/scripts/copy-wasm-dts.d.ts.map +1 -0
- package/out-tsc/scripts/copy-wasm-dts.js +36 -32
- package/out-tsc/scripts/copy-wasm-dts.js.map +1 -0
- package/out-tsc/scripts/postinstall.d.ts +1 -0
- package/out-tsc/scripts/postinstall.d.ts.map +1 -0
- package/out-tsc/scripts/postinstall.js +4 -1
- package/out-tsc/scripts/postinstall.js.map +1 -0
- package/out-tsc/scripts/version/bump.d.ts +5 -1
- package/out-tsc/scripts/version/bump.d.ts.map +1 -0
- package/out-tsc/scripts/version/bump.js +114 -44
- package/out-tsc/scripts/version/bump.js.map +1 -0
- package/out-tsc/scripts/version/fetch.d.ts +12 -1
- package/out-tsc/scripts/version/fetch.d.ts.map +1 -0
- package/out-tsc/scripts/version/fetch.js +68 -24
- package/out-tsc/scripts/version/fetch.js.map +1 -0
- package/out-tsc/scripts/version/index.d.ts +6 -0
- package/out-tsc/scripts/version/index.d.ts.map +1 -0
- package/out-tsc/scripts/version/index.js +44 -22
- package/out-tsc/scripts/version/index.js.map +1 -0
- package/out-tsc/scripts/version/sync.d.ts +5 -1
- package/out-tsc/scripts/version/sync.d.ts.map +1 -0
- package/out-tsc/scripts/version/sync.js +78 -29
- package/out-tsc/scripts/version/sync.js.map +1 -0
- package/out-tsc/types.d.ts +68 -0
- package/out-tsc/types.d.ts.map +1 -0
- package/out-tsc/{core/types/value.js → types.js} +4 -0
- package/out-tsc/types.js.map +1 -0
- package/out-tsc/wasm.d.ts +8 -0
- package/out-tsc/wasm.d.ts.map +1 -0
- package/out-tsc/{core/index.js → wasm.js} +9 -6
- package/out-tsc/wasm.js.map +1 -0
- package/package.json +50 -37
- package/.cargo/config.toml +0 -2
- package/.devalang +0 -9
- package/.github/workflows/ci.yml +0 -103
- package/Cargo.toml +0 -81
- package/docs/CHANGELOG.md +0 -581
- package/docs/CONTRIBUTING.md +0 -101
- package/docs/ROADMAP.md +0 -38
- package/docs/TODO.md +0 -71
- package/examples/automation.deva +0 -42
- package/examples/bank.deva +0 -7
- package/examples/bus.deva +0 -10
- package/examples/condition.deva +0 -20
- package/examples/duration.deva +0 -9
- package/examples/effect.deva +0 -2
- package/examples/events.deva +0 -12
- package/examples/filter.deva +0 -11
- package/examples/function.deva +0 -15
- package/examples/group.deva +0 -12
- package/examples/index.deva +0 -63
- package/examples/lfo.deva +0 -9
- package/examples/loop.deva +0 -10
- package/examples/pattern.deva +0 -8
- package/examples/plugin.deva +0 -16
- package/examples/samples/hat-808.wav +0 -0
- package/examples/samples/kick-808.wav +0 -0
- package/examples/synth.deva +0 -24
- package/examples/synth_types.deva +0 -17
- package/examples/variables.deva +0 -9
- package/out-tsc/core/functions/index.d.ts +0 -42
- package/out-tsc/core/functions/index.js +0 -87
- package/out-tsc/core/index.d.ts +0 -6
- package/out-tsc/core/types/index.d.ts +0 -4
- package/out-tsc/core/types/index.js +0 -20
- package/out-tsc/core/types/plugin.d.ts +0 -18
- package/out-tsc/core/types/plugin.js +0 -2
- package/out-tsc/core/types/result.d.ts +0 -27
- package/out-tsc/core/types/result.js +0 -2
- package/out-tsc/core/types/statement.d.ts +0 -106
- package/out-tsc/core/types/statement.js +0 -2
- package/out-tsc/core/types/value.d.ts +0 -43
- package/out-tsc/pkg/devalang_core.d.ts +0 -15
- package/out-tsc/pkg/devalang_core.js +0 -65
- package/out-tsc/pkg/devalang_core_bg.wasm.d.ts +0 -34
- package/project-version.json +0 -6
- package/rust/cli/bank/api.rs +0 -122
- package/rust/cli/bank/commands.rs +0 -306
- package/rust/cli/bank/mod.rs +0 -29
- package/rust/cli/build/commands.rs +0 -153
- package/rust/cli/build/mod.rs +0 -2
- package/rust/cli/build/process.rs +0 -165
- package/rust/cli/check/mod.rs +0 -208
- package/rust/cli/discover/commands.rs +0 -253
- package/rust/cli/discover/config.rs +0 -111
- package/rust/cli/discover/fs.rs +0 -19
- package/rust/cli/discover/install.rs +0 -103
- package/rust/cli/discover/metadata.rs +0 -48
- package/rust/cli/discover/mod.rs +0 -5
- package/rust/cli/init/commands.rs +0 -88
- package/rust/cli/init/mod.rs +0 -1
- package/rust/cli/install/addon.rs +0 -118
- package/rust/cli/install/bank.rs +0 -72
- package/rust/cli/install/commands.rs +0 -35
- package/rust/cli/install/mod.rs +0 -4
- package/rust/cli/install/plugin.rs +0 -80
- package/rust/cli/login/commands.rs +0 -124
- package/rust/cli/login/mod.rs +0 -1
- package/rust/cli/mod.rs +0 -12
- package/rust/cli/parser.rs +0 -359
- package/rust/cli/play/commands.rs +0 -375
- package/rust/cli/play/io.rs +0 -17
- package/rust/cli/play/mod.rs +0 -5
- package/rust/cli/play/process.rs +0 -159
- package/rust/cli/play/realtime.rs +0 -91
- package/rust/cli/play/utils.rs +0 -23
- package/rust/cli/telemetry/commands.rs +0 -22
- package/rust/cli/telemetry/event_creator.rs +0 -80
- package/rust/cli/telemetry/mod.rs +0 -3
- package/rust/cli/telemetry/send.rs +0 -51
- package/rust/cli/template/commands.rs +0 -69
- package/rust/cli/template/mod.rs +0 -1
- package/rust/cli/update/commands.rs +0 -6
- package/rust/cli/update/mod.rs +0 -1
- package/rust/config/driver.rs +0 -112
- package/rust/config/mod.rs +0 -3
- package/rust/config/ops.rs +0 -26
- package/rust/config/settings.rs +0 -101
- package/rust/core/audio/engine/driver.rs +0 -220
- package/rust/core/audio/engine/export.rs +0 -169
- package/rust/core/audio/engine/helpers.rs +0 -178
- package/rust/core/audio/engine/mod.rs +0 -56
- package/rust/core/audio/engine/notes/dsp.rs +0 -85
- package/rust/core/audio/engine/notes/mod.rs +0 -44
- package/rust/core/audio/engine/notes/params.rs +0 -294
- package/rust/core/audio/engine/sample/insert.rs +0 -199
- package/rust/core/audio/engine/sample/mod.rs +0 -40
- package/rust/core/audio/engine/sample/padding.rs +0 -170
- package/rust/core/audio/evaluator/condition.rs +0 -61
- package/rust/core/audio/evaluator/mod.rs +0 -9
- package/rust/core/audio/evaluator/numeric.rs +0 -152
- package/rust/core/audio/evaluator/rhs.rs +0 -16
- package/rust/core/audio/evaluator/string_expr.rs +0 -94
- package/rust/core/audio/interpreter/driver.rs +0 -574
- package/rust/core/audio/interpreter/mod.rs +0 -2
- package/rust/core/audio/interpreter/statements/arrow_call/interprete.rs +0 -175
- package/rust/core/audio/interpreter/statements/arrow_call/methods/chord.rs +0 -384
- package/rust/core/audio/interpreter/statements/arrow_call/methods/mod.rs +0 -2
- package/rust/core/audio/interpreter/statements/arrow_call/methods/note.rs +0 -316
- package/rust/core/audio/interpreter/statements/arrow_call/mod.rs +0 -3
- package/rust/core/audio/interpreter/statements/arrow_call/types/arp.rs +0 -192
- package/rust/core/audio/interpreter/statements/arrow_call/types/mod.rs +0 -24
- package/rust/core/audio/interpreter/statements/arrow_call/types/pad.rs +0 -116
- package/rust/core/audio/interpreter/statements/arrow_call/types/pluck.rs +0 -97
- package/rust/core/audio/interpreter/statements/arrow_call/types/sub.rs +0 -100
- package/rust/core/audio/interpreter/statements/automate.rs +0 -16
- package/rust/core/audio/interpreter/statements/call.rs +0 -295
- package/rust/core/audio/interpreter/statements/condition.rs +0 -72
- package/rust/core/audio/interpreter/statements/function.rs +0 -24
- package/rust/core/audio/interpreter/statements/let_.rs +0 -36
- package/rust/core/audio/interpreter/statements/load.rs +0 -17
- package/rust/core/audio/interpreter/statements/loop_.rs +0 -115
- package/rust/core/audio/interpreter/statements/mod.rs +0 -12
- package/rust/core/audio/interpreter/statements/sleep.rs +0 -28
- package/rust/core/audio/interpreter/statements/spawn.rs +0 -253
- package/rust/core/audio/interpreter/statements/tempo.rs +0 -40
- package/rust/core/audio/interpreter/statements/trigger.rs +0 -239
- package/rust/core/audio/loader/mod.rs +0 -1
- package/rust/core/audio/loader/trigger.rs +0 -98
- package/rust/core/audio/mod.rs +0 -6
- package/rust/core/audio/player.rs +0 -70
- package/rust/core/audio/special/easing.rs +0 -189
- package/rust/core/audio/special/env.rs +0 -45
- package/rust/core/audio/special/math.rs +0 -134
- package/rust/core/audio/special/mod.rs +0 -9
- package/rust/core/audio/special/modulator.rs +0 -143
- package/rust/core/builder/mod.rs +0 -129
- package/rust/core/debugger/lexer.rs +0 -27
- package/rust/core/debugger/logs.rs +0 -52
- package/rust/core/debugger/mod.rs +0 -30
- package/rust/core/debugger/preprocessor.rs +0 -27
- package/rust/core/debugger/store.rs +0 -38
- package/rust/core/error/mod.rs +0 -269
- package/rust/core/lexer/driver.rs +0 -59
- package/rust/core/lexer/handler/arrow.rs +0 -82
- package/rust/core/lexer/handler/at.rs +0 -21
- package/rust/core/lexer/handler/brace.rs +0 -41
- package/rust/core/lexer/handler/colon.rs +0 -21
- package/rust/core/lexer/handler/comment.rs +0 -30
- package/rust/core/lexer/handler/dot.rs +0 -21
- package/rust/core/lexer/handler/driver.rs +0 -337
- package/rust/core/lexer/handler/identifier.rs +0 -47
- package/rust/core/lexer/handler/indent.rs +0 -66
- package/rust/core/lexer/handler/mod.rs +0 -15
- package/rust/core/lexer/handler/newline.rs +0 -23
- package/rust/core/lexer/handler/number.rs +0 -31
- package/rust/core/lexer/handler/operator.rs +0 -46
- package/rust/core/lexer/handler/parenthesis.rs +0 -41
- package/rust/core/lexer/handler/slash.rs +0 -21
- package/rust/core/lexer/handler/string.rs +0 -63
- package/rust/core/lexer/mod.rs +0 -3
- package/rust/core/lexer/token.rs +0 -91
- package/rust/core/mod.rs +0 -9
- package/rust/core/parser/driver/block.rs +0 -111
- package/rust/core/parser/driver/cursor.rs +0 -82
- package/rust/core/parser/driver/driver_impl.rs +0 -139
- package/rust/core/parser/driver/mod.rs +0 -6
- package/rust/core/parser/driver/parse_array.rs +0 -120
- package/rust/core/parser/driver/parse_map.rs +0 -223
- package/rust/core/parser/driver/parser.rs +0 -160
- package/rust/core/parser/handler/arrow_call.rs +0 -277
- package/rust/core/parser/handler/at.rs +0 -279
- package/rust/core/parser/handler/bank.rs +0 -104
- package/rust/core/parser/handler/condition.rs +0 -83
- package/rust/core/parser/handler/dot.rs +0 -148
- package/rust/core/parser/handler/identifier/automate.rs +0 -254
- package/rust/core/parser/handler/identifier/call.rs +0 -91
- package/rust/core/parser/handler/identifier/emit.rs +0 -70
- package/rust/core/parser/handler/identifier/function.rs +0 -113
- package/rust/core/parser/handler/identifier/group.rs +0 -89
- package/rust/core/parser/handler/identifier/let_.rs +0 -173
- package/rust/core/parser/handler/identifier/mod.rs +0 -55
- package/rust/core/parser/handler/identifier/on.rs +0 -107
- package/rust/core/parser/handler/identifier/print.rs +0 -49
- package/rust/core/parser/handler/identifier/sleep.rs +0 -96
- package/rust/core/parser/handler/identifier/spawn.rs +0 -91
- package/rust/core/parser/handler/identifier/synth.rs +0 -135
- package/rust/core/parser/handler/loop_.rs +0 -194
- package/rust/core/parser/handler/mod.rs +0 -9
- package/rust/core/parser/handler/pattern.rs +0 -74
- package/rust/core/parser/handler/tempo.rs +0 -105
- package/rust/core/parser/mod.rs +0 -3
- package/rust/core/parser/statement.rs +0 -10
- package/rust/core/plugin/loader.rs +0 -137
- package/rust/core/plugin/mod.rs +0 -2
- package/rust/core/plugin/runner/mod.rs +0 -11
- package/rust/core/plugin/runner/non_wasm.rs +0 -297
- package/rust/core/plugin/runner/wasm32.rs +0 -43
- package/rust/core/preprocessor/loader/inject.rs +0 -278
- package/rust/core/preprocessor/loader/loader_helpers.rs +0 -110
- package/rust/core/preprocessor/loader/mod.rs +0 -235
- package/rust/core/preprocessor/mod.rs +0 -4
- package/rust/core/preprocessor/module.rs +0 -55
- package/rust/core/preprocessor/processor/handlers.rs +0 -107
- package/rust/core/preprocessor/processor/mod.rs +0 -1
- package/rust/core/preprocessor/resolver/bank.rs +0 -49
- package/rust/core/preprocessor/resolver/call.rs +0 -124
- package/rust/core/preprocessor/resolver/condition.rs +0 -95
- package/rust/core/preprocessor/resolver/driver.rs +0 -324
- package/rust/core/preprocessor/resolver/function.rs +0 -69
- package/rust/core/preprocessor/resolver/group.rs +0 -122
- package/rust/core/preprocessor/resolver/let_.rs +0 -32
- package/rust/core/preprocessor/resolver/loop_.rs +0 -318
- package/rust/core/preprocessor/resolver/mod.rs +0 -16
- package/rust/core/preprocessor/resolver/pattern.rs +0 -83
- package/rust/core/preprocessor/resolver/spawn.rs +0 -99
- package/rust/core/preprocessor/resolver/synth.rs +0 -54
- package/rust/core/preprocessor/resolver/tempo.rs +0 -48
- package/rust/core/preprocessor/resolver/trigger.rs +0 -116
- package/rust/core/preprocessor/resolver/value.rs +0 -176
- package/rust/core/store/global.rs +0 -57
- package/rust/core/store/mod.rs +0 -1
- package/rust/lib.rs +0 -323
- package/rust/main.rs +0 -388
- package/rust/types/Cargo.toml +0 -11
- package/rust/types/src/addons.rs +0 -55
- package/rust/types/src/ast.rs +0 -202
- package/rust/types/src/config.rs +0 -84
- package/rust/types/src/lib.rs +0 -15
- package/rust/types/src/plugin.rs +0 -20
- package/rust/types/src/store.rs +0 -139
- package/rust/types/src/telemetry.rs +0 -85
- package/rust/utils/Cargo.toml +0 -26
- package/rust/utils/src/error.rs +0 -186
- package/rust/utils/src/file.rs +0 -94
- package/rust/utils/src/first_usage.rs +0 -97
- package/rust/utils/src/lib.rs +0 -9
- package/rust/utils/src/logger.rs +0 -200
- package/rust/utils/src/path.rs +0 -129
- package/rust/utils/src/signature.rs +0 -41
- package/rust/utils/src/spinner.rs +0 -20
- package/rust/utils/src/version.rs +0 -27
- package/rust/utils/src/watcher.rs +0 -46
- package/rust/web/api.rs +0 -5
- package/rust/web/cdn.rs +0 -34
- package/rust/web/mod.rs +0 -3
- package/rust/web/sso.rs +0 -5
- package/templates/minimal/.devalang +0 -5
- package/templates/minimal/README.md +0 -218
- package/templates/minimal/src/index.deva +0 -2
- package/templates/welcome/.devalang +0 -5
- package/templates/welcome/README.md +0 -218
- package/templates/welcome/samples/kick-808.wav +0 -0
- package/templates/welcome/src/index.deva +0 -61
- package/templates/welcome/src/variables.deva +0 -3
- package/tests/integration.rs +0 -21
- package/tests/rust/cli_check_build.rs +0 -21
- package/tests/rust/cli_help.rs +0 -12
- package/tests/rust/cli_template_list.rs +0 -10
- package/tests/rust/cli_version.rs +0 -11
- package/tests/typescript/index.spec.ts +0 -136
- package/tests/typescript/playhead.spec.ts +0 -36
- package/tests/typescript/render_e2e.spec.ts +0 -77
- package/tsconfig.json +0 -115
- package/typescript/bin/index.ts +0 -28
- package/typescript/core/functions/index.ts +0 -94
- package/typescript/core/index.ts +0 -6
- package/typescript/core/types/index.ts +0 -4
- package/typescript/core/types/plugin.ts +0 -19
- package/typescript/core/types/result.ts +0 -29
- package/typescript/core/types/statement.ts +0 -47
- package/typescript/core/types/value.ts +0 -29
- package/typescript/index.ts +0 -8
- package/typescript/pkg/devalang_core.d.ts +0 -4
- package/typescript/pkg/devalang_core.ts +0 -65
- package/typescript/scripts/copy-wasm-dts.ts +0 -41
- package/typescript/scripts/postinstall.ts +0 -85
- package/typescript/scripts/version/bump.ts +0 -44
- package/typescript/scripts/version/fetch.ts +0 -18
- package/typescript/scripts/version/index.ts +0 -25
- package/typescript/scripts/version/sync.ts +0 -24
|
@@ -1,32 +1,81 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
Object.defineProperty(
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const path_1 = __importDefault(require("path"));
|
|
18
|
-
const syncVersion = (projectVersionPath) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
const version = fs_1.default.readFileSync(projectVersionPath, "utf-8").trim();
|
|
20
|
-
const versionString = JSON.parse(version).version;
|
|
21
|
-
// Package.json
|
|
22
|
-
const pkgPath = path_1.default.join(__dirname, "..", "..", "..", "package.json");
|
|
23
|
-
const pkgJson = JSON.parse(fs_1.default.readFileSync(pkgPath, "utf-8"));
|
|
24
|
-
pkgJson.version = versionString;
|
|
25
|
-
fs_1.default.writeFileSync(pkgPath, JSON.stringify(pkgJson, null, 2));
|
|
26
|
-
// Cargo.toml
|
|
27
|
-
const cargoPath = path_1.default.join(__dirname, "..", "..", "..", "Cargo.toml");
|
|
28
|
-
const cargoToml = fs_1.default.readFileSync(cargoPath, "utf-8");
|
|
29
|
-
const updatedCargo = cargoToml.replace(/(version\s*=\s*")[^"]*(")/, `$1${versionString}$2`);
|
|
30
|
-
fs_1.default.writeFileSync(cargoPath, updatedCargo);
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
31
17
|
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
36
|
exports.syncVersion = syncVersion;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
/**
|
|
40
|
+
* Synchronizes version from package.json to all other version files
|
|
41
|
+
*/
|
|
42
|
+
async function syncVersion() {
|
|
43
|
+
const rootPath = path.resolve(__dirname, '../../../..');
|
|
44
|
+
// Read package.json as source of truth
|
|
45
|
+
const packageJsonPath = path.join(rootPath, 'package.json');
|
|
46
|
+
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
|
|
47
|
+
const version = packageJson.version;
|
|
48
|
+
if (!version) {
|
|
49
|
+
throw new Error('No version found in package.json');
|
|
50
|
+
}
|
|
51
|
+
// Determine channel from version
|
|
52
|
+
const isPreRelease = version.includes('-');
|
|
53
|
+
let channel = 'stable';
|
|
54
|
+
if (isPreRelease) {
|
|
55
|
+
if (version.includes('alpha'))
|
|
56
|
+
channel = 'alpha';
|
|
57
|
+
else if (version.includes('beta'))
|
|
58
|
+
channel = 'beta';
|
|
59
|
+
else
|
|
60
|
+
channel = 'preview';
|
|
61
|
+
}
|
|
62
|
+
// Update Cargo.toml
|
|
63
|
+
const cargoTomlPath = path.join(rootPath, 'Cargo.toml');
|
|
64
|
+
let cargoToml = fs.readFileSync(cargoTomlPath, 'utf-8');
|
|
65
|
+
cargoToml = cargoToml.replace(/version = "[\d\.]+-?[a-z\.]*\d*"/, `version = "${version}"`);
|
|
66
|
+
fs.writeFileSync(cargoTomlPath, cargoToml);
|
|
67
|
+
console.log(`✅ Synchronized Cargo.toml to ${version}`);
|
|
68
|
+
// Update project-version.json
|
|
69
|
+
const projectVersionPath = path.join(rootPath, 'project-version.json');
|
|
70
|
+
let projectVersion = { version, channel, build: 1 };
|
|
71
|
+
if (fs.existsSync(projectVersionPath)) {
|
|
72
|
+
const existing = JSON.parse(fs.readFileSync(projectVersionPath, 'utf-8'));
|
|
73
|
+
projectVersion.build = existing.build || 1;
|
|
74
|
+
projectVersion.commit = existing.commit;
|
|
75
|
+
}
|
|
76
|
+
projectVersion.version = version;
|
|
77
|
+
projectVersion.channel = channel;
|
|
78
|
+
fs.writeFileSync(projectVersionPath, JSON.stringify(projectVersion, null, 2) + '\n');
|
|
79
|
+
console.log(`✅ Synchronized project-version.json to ${version}`);
|
|
80
|
+
}
|
|
81
|
+
//# sourceMappingURL=sync.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sync.js","sourceRoot":"","sources":["../../../src/typescript/scripts/version/sync.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,kCA+CC;AArDD,uCAAyB;AACzB,2CAA6B;AAE7B;;GAEG;AACI,KAAK,UAAU,WAAW;IAC/B,MAAM,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC;IAExD,uCAAuC;IACvC,MAAM,eAAe,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAC5D,MAAM,WAAW,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;IAC1E,MAAM,OAAO,GAAG,WAAW,CAAC,OAAO,CAAC;IAEpC,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtD,CAAC;IAED,iCAAiC;IACjC,MAAM,YAAY,GAAG,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC3C,IAAI,OAAO,GAA4C,QAAQ,CAAC;IAEhE,IAAI,YAAY,EAAE,CAAC;QACjB,IAAI,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC;YAAE,OAAO,GAAG,OAAO,CAAC;aAC5C,IAAI,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC;YAAE,OAAO,GAAG,MAAM,CAAC;;YAC/C,OAAO,GAAG,SAAS,CAAC;IAC3B,CAAC;IAED,oBAAoB;IACpB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IACxD,IAAI,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IACxD,SAAS,GAAG,SAAS,CAAC,OAAO,CAC3B,kCAAkC,EAClC,cAAc,OAAO,GAAG,CACzB,CAAC;IACF,EAAE,CAAC,aAAa,CAAC,aAAa,EAAE,SAAS,CAAC,CAAC;IAC3C,OAAO,CAAC,GAAG,CAAC,gCAAgC,OAAO,EAAE,CAAC,CAAC;IAEvD,8BAA8B;IAC9B,MAAM,kBAAkB,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,sBAAsB,CAAC,CAAC;IACvE,IAAI,cAAc,GAAQ,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC;IAEzD,IAAI,EAAE,CAAC,UAAU,CAAC,kBAAkB,CAAC,EAAE,CAAC;QACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC,CAAC;QAC1E,cAAc,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,IAAI,CAAC,CAAC;QAC3C,cAAc,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC;IAC1C,CAAC;IAED,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IACjC,cAAc,CAAC,OAAO,GAAG,OAAO,CAAC;IAEjC,EAAE,CAAC,aAAa,CAAC,kBAAkB,EAAE,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACrF,OAAO,CAAC,GAAG,CAAC,0CAA0C,OAAO,EAAE,CAAC,CAAC;AACnE,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for Devalang V2
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Options for rendering audio
|
|
6
|
+
*/
|
|
7
|
+
export interface RenderOptions {
|
|
8
|
+
sampleRate?: number;
|
|
9
|
+
bpm?: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Options for MIDI export
|
|
13
|
+
*/
|
|
14
|
+
export interface MidiOptions extends RenderOptions {
|
|
15
|
+
timeSignatureNum?: number;
|
|
16
|
+
timeSignatureDen?: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Parse result from Devalang parser
|
|
20
|
+
*/
|
|
21
|
+
export interface ParseResult {
|
|
22
|
+
success: boolean;
|
|
23
|
+
statements: StatementInfo[];
|
|
24
|
+
errors: string[];
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Statement information
|
|
28
|
+
*/
|
|
29
|
+
export interface StatementInfo {
|
|
30
|
+
kind: string;
|
|
31
|
+
line: number;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Debug render result with metadata
|
|
35
|
+
*/
|
|
36
|
+
export interface DebugRenderResult {
|
|
37
|
+
audio: Float32Array;
|
|
38
|
+
sampleRate: number;
|
|
39
|
+
duration: number;
|
|
40
|
+
eventCount: number;
|
|
41
|
+
bpm: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Metadata about code without rendering
|
|
45
|
+
*/
|
|
46
|
+
export interface CodeMetadata {
|
|
47
|
+
statementCount: number;
|
|
48
|
+
bpm: number;
|
|
49
|
+
sampleRate: number;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Registered bank information
|
|
53
|
+
*/
|
|
54
|
+
export interface RegisteredBank {
|
|
55
|
+
fullName: string;
|
|
56
|
+
alias: string;
|
|
57
|
+
triggers: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Debug state information
|
|
61
|
+
*/
|
|
62
|
+
export interface DebugState {
|
|
63
|
+
sampleLoadCount: number;
|
|
64
|
+
playbackDebugCount: number;
|
|
65
|
+
errorCount: number;
|
|
66
|
+
debugErrorsEnabled: boolean;
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/typescript/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,WAAY,SAAQ,aAAa;IAChD,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,EAAE,aAAa,EAAE,CAAC;IAC5B,MAAM,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,YAAY,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACb;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,MAAM,CAAC;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,OAAO,CAAC;CAC7B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/typescript/types.ts"],"names":[],"mappings":";AAAA;;GAEG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wasm.d.ts","sourceRoot":"","sources":["../src/typescript/wasm.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* WASM bindings re-export
|
|
4
|
+
*
|
|
5
|
+
* This module re-exports the generated WASM bindings.
|
|
6
|
+
* It will be available after running: npm run rust:wasm:all
|
|
7
|
+
*/
|
|
2
8
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
9
|
if (k2 === undefined) k2 = k;
|
|
4
10
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,9 +20,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
20
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
21
|
};
|
|
16
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*/
|
|
21
|
-
__exportStar(require("./types/index"), exports);
|
|
22
|
-
__exportStar(require("./functions/index"), exports);
|
|
23
|
+
// These will be available after WASM build
|
|
24
|
+
__exportStar(require("../../pkg/node/devalang_wasm"), exports);
|
|
25
|
+
//# sourceMappingURL=wasm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wasm.js","sourceRoot":"","sources":["../src/typescript/wasm.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;AAEH,2CAA2C;AAC3C,+DAA6C"}
|
package/package.json
CHANGED
|
@@ -1,65 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devaloop/devalang",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.1.1",
|
|
5
5
|
"description": "Write music like code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text.",
|
|
6
6
|
"main": "out-tsc/index.js",
|
|
7
|
+
"types": "./out-tsc/index.d.ts",
|
|
7
8
|
"bin": {
|
|
8
9
|
"devalang": "./out-tsc/bin/index.js"
|
|
9
10
|
},
|
|
10
|
-
"types": "./out-tsc/index.d.ts",
|
|
11
11
|
"scripts": {
|
|
12
12
|
"rust:fmt": "cargo fmt",
|
|
13
|
-
"rust:
|
|
14
|
-
"rust:
|
|
15
|
-
"rust:
|
|
16
|
-
"rust:
|
|
17
|
-
"rust:wasm:
|
|
18
|
-
"rust:
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
13
|
+
"rust:check": "cargo check --lib",
|
|
14
|
+
"rust:build": "cargo build --lib --release",
|
|
15
|
+
"rust:build:cli": "cargo build --features cli --release",
|
|
16
|
+
"rust:test": "cargo test",
|
|
17
|
+
"rust:wasm:web": "wasm-pack build --target web --out-dir pkg/web --no-default-features --features wasm",
|
|
18
|
+
"rust:wasm:node": "wasm-pack build --target nodejs --out-dir pkg/node --no-default-features --features wasm",
|
|
19
|
+
"rust:wasm:all": "npm run rust:wasm:web && npm run rust:wasm:node",
|
|
20
|
+
"ts:build": "tsc",
|
|
21
|
+
"ts:watch": "tsc --watch",
|
|
22
|
+
"ts:clean": "rimraf out-tsc",
|
|
22
23
|
"types:build": "tsc --emitDeclarationOnly",
|
|
23
|
-
"types:wasm": "
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
24
|
+
"types:wasm": "npm run rust:wasm:node && node out-tsc/scripts/copy-wasm-dts.js",
|
|
25
|
+
"version:bump": "tsx src/typescript/scripts/version/index.ts bump",
|
|
26
|
+
"version:sync": "tsx src/typescript/scripts/version/index.ts sync",
|
|
27
|
+
"version:fetch": "tsx src/typescript/scripts/version/index.ts fetch",
|
|
28
|
+
"build": "npm run ts:build && npm run rust:build",
|
|
29
|
+
"build:all": "npm run rust:wasm:all && npm run ts:build",
|
|
30
|
+
"build:release": "npm run build:all && npm run rust:build:cli",
|
|
31
|
+
"test": "npm run rust:test",
|
|
32
|
+
"test:examples": "cargo run --features cli -- check --entry examples/",
|
|
33
|
+
"clean": "cargo clean && npm run ts:clean",
|
|
34
|
+
"prepare": "npm run ts:build",
|
|
35
|
+
"prepublishOnly": "npm run build:all",
|
|
36
|
+
"postinstall": "node -e \"try { require('./out-tsc/scripts/postinstall.js') } catch (e) { console.log('⚠️ Skipping postinstall (build first)') }\""
|
|
29
37
|
},
|
|
30
38
|
"homepage": "https://devalang.com",
|
|
31
39
|
"keywords": [
|
|
32
40
|
"devalang",
|
|
33
41
|
"music",
|
|
34
42
|
"sound",
|
|
35
|
-
"domain-specific language",
|
|
36
43
|
"dsl",
|
|
37
|
-
"programming language",
|
|
38
|
-
"sound design",
|
|
39
|
-
"music hacking",
|
|
40
44
|
"audio",
|
|
41
45
|
"synthesis",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
46
|
+
"midi",
|
|
47
|
+
"wasm",
|
|
48
|
+
"live-coding",
|
|
49
|
+
"sound-design"
|
|
45
50
|
],
|
|
46
|
-
"author":
|
|
51
|
+
"author": {
|
|
52
|
+
"name": "Devaloop",
|
|
53
|
+
"email": "contact@devaloop.com",
|
|
54
|
+
"url": "https://devaloop.com"
|
|
55
|
+
},
|
|
47
56
|
"license": "MIT",
|
|
48
57
|
"repository": {
|
|
49
58
|
"type": "git",
|
|
50
59
|
"url": "https://github.com/devaloop-labs/devalang.git"
|
|
51
60
|
},
|
|
52
|
-
"
|
|
61
|
+
"devDependencies": {
|
|
53
62
|
"@types/follow-redirects": "^1.14.4",
|
|
54
|
-
"@types/node": "^
|
|
55
|
-
"follow-redirects": "^1.15.
|
|
63
|
+
"@types/node": "^20.19.19",
|
|
64
|
+
"follow-redirects": "^1.15.9",
|
|
65
|
+
"rimraf": "^5.0.10",
|
|
66
|
+
"tsx": "^4.20.6",
|
|
67
|
+
"typescript": "^5.9.3"
|
|
56
68
|
},
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
|
|
65
|
-
|
|
69
|
+
"engines": {
|
|
70
|
+
"node": ">=16.0.0"
|
|
71
|
+
},
|
|
72
|
+
"files": [
|
|
73
|
+
"out-tsc/**/*",
|
|
74
|
+
"pkg/**/*",
|
|
75
|
+
"README.md",
|
|
76
|
+
"LICENSE"
|
|
77
|
+
]
|
|
78
|
+
}
|
package/.cargo/config.toml
DELETED
package/.devalang
DELETED
package/.github/workflows/ci.yml
DELETED
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
name: CI & Release
|
|
2
|
-
|
|
3
|
-
permissions:
|
|
4
|
-
contents: write
|
|
5
|
-
|
|
6
|
-
on:
|
|
7
|
-
push:
|
|
8
|
-
tags:
|
|
9
|
-
- "v*"
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
build:
|
|
13
|
-
name: Build binaries
|
|
14
|
-
runs-on: ${{ matrix.os }}
|
|
15
|
-
strategy:
|
|
16
|
-
matrix:
|
|
17
|
-
include:
|
|
18
|
-
- os: ubuntu-latest
|
|
19
|
-
target: x86_64-unknown-linux-gnu
|
|
20
|
-
bin_ext: ""
|
|
21
|
-
- os: macos-latest
|
|
22
|
-
target: x86_64-apple-darwin
|
|
23
|
-
bin_ext: ""
|
|
24
|
-
- os: windows-latest
|
|
25
|
-
target: x86_64-pc-windows-msvc
|
|
26
|
-
bin_ext: ".exe"
|
|
27
|
-
|
|
28
|
-
steps:
|
|
29
|
-
- name: Checkout sources
|
|
30
|
-
uses: actions/checkout@v4
|
|
31
|
-
|
|
32
|
-
- name: Install ALSA (Linux)
|
|
33
|
-
if: matrix.os == 'ubuntu-latest'
|
|
34
|
-
run: |
|
|
35
|
-
sudo apt-get update
|
|
36
|
-
sudo apt-get install -y libasound2-dev pkg-config
|
|
37
|
-
|
|
38
|
-
- name: Install Node.js
|
|
39
|
-
uses: actions/setup-node@v4
|
|
40
|
-
with:
|
|
41
|
-
node-version: 20
|
|
42
|
-
|
|
43
|
-
- name: Install Rust
|
|
44
|
-
uses: actions-rs/toolchain@v1
|
|
45
|
-
with:
|
|
46
|
-
toolchain: stable
|
|
47
|
-
override: true
|
|
48
|
-
target: ${{ matrix.target }}
|
|
49
|
-
|
|
50
|
-
- name: NPM Install
|
|
51
|
-
run: npm install
|
|
52
|
-
|
|
53
|
-
- name: Build TS
|
|
54
|
-
run: npx tsc
|
|
55
|
-
|
|
56
|
-
- name: Build release
|
|
57
|
-
run: cargo build --release --target ${{ matrix.target }}
|
|
58
|
-
|
|
59
|
-
- name: Ensure out-tsc/bin exists (Unix)
|
|
60
|
-
if: runner.os != 'Windows'
|
|
61
|
-
run: mkdir -p out-tsc/bin
|
|
62
|
-
|
|
63
|
-
- name: Ensure out-tsc/bin exists (Windows)
|
|
64
|
-
if: runner.os == 'Windows'
|
|
65
|
-
shell: pwsh
|
|
66
|
-
run: |
|
|
67
|
-
New-Item -ItemType Directory -Force out-tsc/bin | Out-Null
|
|
68
|
-
|
|
69
|
-
- name: Copy binary (Unix)
|
|
70
|
-
if: runner.os != 'Windows'
|
|
71
|
-
run: cp target/${{ matrix.target }}/release/devalang${{ matrix.bin_ext }} out-tsc/bin/devalang-${{ matrix.target }}${{ matrix.bin_ext }}
|
|
72
|
-
|
|
73
|
-
- name: Copy binary (Windows)
|
|
74
|
-
if: runner.os == 'Windows'
|
|
75
|
-
shell: pwsh
|
|
76
|
-
run: |
|
|
77
|
-
Copy-Item "target\${{ matrix.target }}\release\devalang${{ matrix.bin_ext }}" "out-tsc\bin\devalang-${{ matrix.target }}${{ matrix.bin_ext }}" -Force
|
|
78
|
-
|
|
79
|
-
- name: Upload artifact (CI)
|
|
80
|
-
uses: actions/upload-artifact@v4
|
|
81
|
-
with:
|
|
82
|
-
name: devalang-${{ matrix.target }}
|
|
83
|
-
path: out-tsc/bin/*
|
|
84
|
-
|
|
85
|
-
release:
|
|
86
|
-
name: Create GitHub Release
|
|
87
|
-
runs-on: ubuntu-latest
|
|
88
|
-
needs: build
|
|
89
|
-
steps:
|
|
90
|
-
- name: Download all build artifacts
|
|
91
|
-
uses: actions/download-artifact@v4
|
|
92
|
-
with:
|
|
93
|
-
path: dist
|
|
94
|
-
pattern: devalang-*
|
|
95
|
-
merge-multiple: true
|
|
96
|
-
|
|
97
|
-
- name: List files
|
|
98
|
-
run: ls -la dist
|
|
99
|
-
|
|
100
|
-
- name: Upload to GitHub Release
|
|
101
|
-
uses: softprops/action-gh-release@v2
|
|
102
|
-
with:
|
|
103
|
-
files: dist/*
|
package/Cargo.toml
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
[package]
|
|
2
|
-
name = "devalang"
|
|
3
|
-
version = "0.0.1-beta.2"
|
|
4
|
-
authors = ["Devaloop <contact@devaloop.com>"]
|
|
5
|
-
description = "Write music like code. Devalang is a domain-specific language (DSL) for sound designers and music hackers. Compose, automate, and control sound — in plain text."
|
|
6
|
-
license = "MIT"
|
|
7
|
-
repository = "https://github.com/devaloop-labs/devalang"
|
|
8
|
-
keywords = ["music", "dsl", "audio", "cli"]
|
|
9
|
-
categories = ["command-line-utilities", "development-tools", "parser-implementations"]
|
|
10
|
-
readme = "README.md"
|
|
11
|
-
homepage = "https://devalang.com"
|
|
12
|
-
documentation = "https://docs.devalang.com/"
|
|
13
|
-
edition = "2024"
|
|
14
|
-
|
|
15
|
-
[[bin]]
|
|
16
|
-
name = "devalang"
|
|
17
|
-
path = "rust/main.rs"
|
|
18
|
-
|
|
19
|
-
[lib]
|
|
20
|
-
name = "devalang_core"
|
|
21
|
-
path = "rust/lib.rs"
|
|
22
|
-
crate-type = ["cdylib", "rlib"]
|
|
23
|
-
|
|
24
|
-
[profile.release]
|
|
25
|
-
opt-level = "s"
|
|
26
|
-
|
|
27
|
-
[features]
|
|
28
|
-
default = ["cli"]
|
|
29
|
-
cli = ["crossterm", "indicatif", "inquire", "zip", "reqwest", "flate2", "tokio"]
|
|
30
|
-
|
|
31
|
-
[dependencies]
|
|
32
|
-
devalang_types = { path = "rust/types", version = "0.0.3" }
|
|
33
|
-
clap = { version = "4.5", features = ["derive"] }
|
|
34
|
-
serde = { version = "1.0", features = ["derive"] }
|
|
35
|
-
serde_json = "1.0"
|
|
36
|
-
rodio = "0.17"
|
|
37
|
-
hound = "3.4.0"
|
|
38
|
-
toml = "0.8"
|
|
39
|
-
notify = "6.1"
|
|
40
|
-
fs_extra = "1.3"
|
|
41
|
-
include_dir = "0.7"
|
|
42
|
-
wasm-bindgen = "0.2"
|
|
43
|
-
serde-wasm-bindgen = "0.4"
|
|
44
|
-
nom_locate = "4.0.0"
|
|
45
|
-
chrono = "0.4"
|
|
46
|
-
crossterm = { version = "0.27", optional = true }
|
|
47
|
-
indicatif = { version = "0.17", optional = true }
|
|
48
|
-
inquire = { version = "0.7.5", optional = true }
|
|
49
|
-
js-sys = "0.3"
|
|
50
|
-
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
51
|
-
reqwest = { version = "0.12.22", optional = true, features = ["json"] }
|
|
52
|
-
flate2 = { version = "1.0", optional = true }
|
|
53
|
-
tokio = { version = "1", features = ["full"], optional = true }
|
|
54
|
-
zip = { version = "4.3.0", optional = true }
|
|
55
|
-
rayon = "1.10.0"
|
|
56
|
-
webbrowser = "0.8"
|
|
57
|
-
tiny_http = "0.9.0"
|
|
58
|
-
dirs = "5"
|
|
59
|
-
urlencoding = "2.1"
|
|
60
|
-
uuid = { version = "1.18.0", features = ["v4"] }
|
|
61
|
-
console_error_panic_hook = "0.1.7"
|
|
62
|
-
midly = "0.5.3"
|
|
63
|
-
|
|
64
|
-
[dev-dependencies]
|
|
65
|
-
assert_cmd = "2"
|
|
66
|
-
predicates = "2"
|
|
67
|
-
tempfile = "3"
|
|
68
|
-
|
|
69
|
-
# For wasm32, enable wasm-friendly randomness backends and avoid
|
|
70
|
-
# pulling in native-only CLI dependencies.
|
|
71
|
-
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
|
72
|
-
getrandom = { version = "0.3", features = ["wasm_js"] }
|
|
73
|
-
uuid = { version = "1.18.0", features = ["v4", "js", "rng-getrandom"] }
|
|
74
|
-
# Keep a lightweight linkage to the utils crate for wasm builds without
|
|
75
|
-
# enabling native CLI features.
|
|
76
|
-
devalang_utils = { path = "rust/utils", default-features = false, version = "0.0.2" }
|
|
77
|
-
|
|
78
|
-
# devalang_utils with CLI and wasmtime are only needed for native targets.
|
|
79
|
-
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
80
|
-
devalang_utils = { path = "rust/utils", features = ["cli"], version = "0.0.2" }
|
|
81
|
-
wasmtime = "19"
|