Skip to content

Commit 9388468

Browse files
committed
dsl-kotlin: rename to dsl-kotlin (from zdl)
1 parent 0e0462b commit 9388468

File tree

26 files changed

+132
-125
lines changed

26 files changed

+132
-125
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ Usage:
2727
```xml
2828
<dependency>
2929
<groupId>io.zenwave360.sdk</groupId>
30-
<artifactId>zdl-kotlin-jvm</artifactId>
31-
<version>${zdl-kotlin.version}</version>
30+
<artifactId>dsl-kotlin-jvm</artifactId>
31+
<version>${dsl-kotlin.version}</version>
3232
</dependency>
3333
```
3434

@@ -41,11 +41,11 @@ ZdlModel model = parser.parseModel(zdlContent);
4141
* JavaScript/TypeScript:
4242

4343
```bash
44-
npm install @zenwave360/zdl
44+
npm install @zenwave360/dsl
4545
```
4646

4747
```js
48-
import { parseZdl } from '@zenwave360/zdl';
48+
import { parseZdl } from '@zenwave360/dsl';
4949

5050
const zdlContent = "...";
5151
const model = parseZdl(zdlContent);

build.gradle.kts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ val generateKotlinGrammarSource = tasks.register<com.strumenta.antlrkotlin.gradl
1515
include("**/*.g4")
1616
}
1717

18-
packageName = "io.zenwave360.antlr"
18+
packageName = "io.zenwave360.language.antlr"
1919

2020
val outDir = "generatedAntlr/${packageName?.replace(".", "/")}"
2121
outputDirectory = layout.buildDirectory.dir(outDir).get().asFile
@@ -34,7 +34,7 @@ mavenPublishing {
3434
pom {
3535
name.set("ZDL Kotlin Multiplatform")
3636
description.set("ZenWave Domain Language (ZDL) parser for Kotlin Multiplatform (JVM and JS)")
37-
url.set("https://github.com/ZenWave360/zdl-kotlin")
37+
url.set("https://github.com/ZenWave360/dsl-kotlin")
3838

3939
licenses {
4040
license {
@@ -54,7 +54,7 @@ mavenPublishing {
5454
scm {
5555
connection.set("scm:git:git://github.com/ZenWave360/zdl-kotlin.git")
5656
developerConnection.set("scm:git:ssh://github.com/ZenWave360/zdl-kotlin.git")
57-
url.set("https://github.com/ZenWave360/zdl-kotlin")
57+
url.set("https://github.com/ZenWave360/dsl-kotlin")
5858
}
5959
}
6060
}
@@ -74,13 +74,13 @@ kotlin {
7474

7575
// Set the NPM package name to use scoped naming for main compilation only
7676
compilations["main"].packageJson {
77-
customField("name", "@zenwave360/zdl")
77+
customField("name", "@zenwave360/dsl")
7878
customField("description", "ZenWave Domain Model Language for JavaScript/TypeScript")
7979
customField("keywords", listOf("zdl", "domain-driven-design", "event-storming"))
80-
customField("homepage", "https://github.com/ZenWave360/zdl-kotlin")
80+
customField("homepage", "https://github.com/ZenWave360/dsl-kotlin")
8181
customField("repository", mapOf(
8282
"type" to "git",
83-
"url" to "https://github.com/ZenWave360/zdl-kotlin"
83+
"url" to "https://github.com/ZenWave360/dsl-kotlin"
8484
))
8585
customField("license", "MIT")
8686
}
@@ -162,7 +162,7 @@ kover {
162162
filters {
163163
excludes {
164164
// skip generated parser
165-
packages("io.zenwave360.antlr")
165+
packages("io.zenwave360.language.antlr")
166166
}
167167
}
168168
}

nodejs-test-project/package-lock.json

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

nodejs-test-project/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"name": "zdl-test-project",
2+
"name": "dsl-test-project",
33
"version": "1.0.0",
4-
"description": "Test project for ZDL NPM package",
4+
"description": "Test project for dsl NPM package",
55
"type": "module",
66
"scripts": {
77
"test": "node --test zdl-parser.test.js zfl-parser.test.js",
88
"test:zdl": "node --test zdl-parser.test.js",
99
"test:zfl": "node --test zfl-parser.test.js"
1010
},
1111
"dependencies": {
12-
"@zenwave360/zdl": "file:../build/js/packages/zdl-kotlin",
12+
"@zenwave360/dsl": "file:../build/js/packages/dsl-kotlin",
1313
"jsonpath": "^1.1.1"
1414
}
1515
}

nodejs-test-project/zdl-parser.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, before } from 'node:test';
22
import assert from 'node:assert/strict';
3-
import { parseZdl } from '@zenwave360/zdl';
3+
import { parseZdl } from '@zenwave360/dsl';
44
import fs from 'fs';
55
import { jsonPath, mapSize, arraySize } from './utils.js';
66

nodejs-test-project/zfl-parser.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { describe, it, before } from 'node:test';
22
import assert from 'node:assert/strict';
3-
import { parseZfl } from '@zenwave360/zdl';
3+
import { parseZfl } from '@zenwave360/dsl';
44
import fs from 'fs';
55
import { jsonPath, mapSize, arraySize } from './utils.js';
66

settings.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ pluginManagement {
55
}
66
}
77

8-
rootProject.name = "zdl-kotlin"
8+
rootProject.name = "dsl-kotlin"
99

File renamed without changes.
File renamed without changes.

src/commonMain/kotlin/io/zenwave360/internal/FluentMap.kt renamed to src/commonMain/kotlin/io/zenwave360/language/utils/FluentMap.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package io.zenwave360.internal
1+
package io.zenwave360.language.utils
22

33
/**
44
* Utility functions for building and manipulating MutableMap instances with a fluent API.

0 commit comments

Comments
 (0)