-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #274 from modelix/feature/vue-model-api
feat(vue-model-api): add a library to use models from Vue.js
- Loading branch information
Showing
39 changed files
with
11,165 additions
and
12 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,3 +31,21 @@ repos: | |
# IMPORTANT: keep in sync with the version configured in build.gradle.kts | ||
- --ktlint-version=0.50.0 | ||
- --autofix | ||
- repo: https://github.com/pre-commit/mirrors-prettier | ||
# IMPORTANT: keep in sync with the version configured in `vue-model-api/package.json` | ||
rev: v3.0.3 | ||
hooks: | ||
- id: prettier | ||
files: ^(vue-model-api)|(model-api-gen-gradle-test/vue-integration)/ | ||
- repo: https://github.com/pre-commit/mirrors-eslint | ||
# IMPORTANT: keep versions of hook and additional dependencies in sync with the versions configured in `vue-model-api/package.json` | ||
rev: v8.50.0 | ||
hooks: | ||
- id: eslint | ||
additional_dependencies: | ||
- "[email protected]" | ||
- "[email protected]" | ||
- "@typescript-eslint/[email protected]" | ||
- "@typescript-eslint/[email protected]" | ||
files: ^vue-model-api/src/ | ||
'types': [ts] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
model-api-gen-gradle-test/typescript-generation/package-lock.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
.gradle | ||
build |
Empty file.
26 changes: 26 additions & 0 deletions
26
model-api-gen-gradle-test/vue-integration/build.gradle.kts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import com.github.gradle.node.npm.task.NpmTask | ||
|
||
plugins { | ||
base | ||
alias(libs.plugins.node) | ||
} | ||
|
||
val updateDependencies = tasks.create<NpmTask>("updateDependencies") { | ||
dependsOn(":typescript-generation:packJsPackage") | ||
args.set( | ||
listOf( | ||
"install", | ||
"../../model-client/build/npmDevPackage/model-client.tgz", | ||
"../../vue-model-api/build/npmDevPackage/vue-model-api.tgz", | ||
"../typescript-generation/build/typescript-generation-0.0.0.tgz", | ||
), | ||
) | ||
} | ||
|
||
tasks.npmInstall { | ||
dependsOn(updateDependencies) | ||
} | ||
|
||
tasks.check { | ||
dependsOn("npm_run_test") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
}; |
Oops, something went wrong.