-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(spa-collaboration-vue): setup Gradle
- Loading branch information
Showing
7 changed files
with
68 additions
and
65 deletions.
There are no files selected for viewing
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 @@ | ||
@modelix:registry=https://artifacts.itemis.cloud/repository/npm-open |
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 |
---|---|---|
@@ -1,69 +1,11 @@ | ||
# base | ||
# Compiles and hot-reloads for development | ||
|
||
## Project setup | ||
|
||
``` | ||
# yarn | ||
yarn | ||
# npm | ||
npm install | ||
# pnpm | ||
pnpm install | ||
# bun | ||
bun install | ||
``` | ||
|
||
### Compiles and hot-reloads for development | ||
|
||
``` | ||
# yarn | ||
yarn dev | ||
# npm | ||
npm run dev | ||
# pnpm | ||
pnpm dev | ||
# bun | ||
pnpm run dev | ||
``` | ||
|
||
### Compiles and minifies for production | ||
|
||
``` | ||
# yarn | ||
yarn build | ||
# npm | ||
npm run build | ||
# pnpm | ||
pnpm build | ||
# bun | ||
pnpm run build | ||
``` | ||
|
||
### Lints and fixes files | ||
|
||
``` | ||
# yarn | ||
yarn lint | ||
# npm | ||
npm run lint | ||
# pnpm | ||
pnpm lint | ||
# bun | ||
pnpm run lint | ||
```sh | ||
../gradlew :spa-collaboration-vue:npm_run_dev | ||
``` | ||
|
||
### Customize configuration | ||
# Compiles and minifies for production | ||
|
||
See [Configuration Reference](https://vitejs.dev/config/). | ||
```sh | ||
../gradlew :spa-collaboration-vue:build | ||
``` |
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 @@ | ||
# TODO Olekz | ||
|
||
* /Users/odzhychko/Documents/arbeit1/modelix/modelix.samples/mps/metamodel-api-ts/package.json | ||
* Set not snapshot version as dependencie for ts-model-api | ||
* Set ts-model-api as peerDependencie |
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,32 @@ | ||
import com.github.gradle.node.npm.task.NpmTask | ||
|
||
plugins { | ||
base | ||
alias(libs.plugins.node.gradle) | ||
} | ||
|
||
node { | ||
download.set(true) | ||
version.set(libs.versions.node) | ||
} | ||
|
||
val metamodelApiTsProject = project(":mps:metamodel-api-ts") | ||
val metamodelApiTsPackagePath: String = metamodelApiTsProject.layout.buildDirectory | ||
.file("packages/metamodel-api-ts-1.0.0.tgz").get().asFile.path | ||
|
||
val updateMetaModelApiTs = tasks.register<NpmTask>("updateMetaModelApiTs") { | ||
dependsOn(metamodelApiTsProject.tasks.assemble) | ||
args.set(listOf("install", metamodelApiTsPackagePath)) | ||
} | ||
|
||
tasks.npmInstall { | ||
dependsOn(updateMetaModelApiTs) | ||
} | ||
|
||
tasks.assemble { | ||
dependsOn("npm_run_build") | ||
} | ||
|
||
tasks.check { | ||
dependsOn("npm_run_lint") | ||
} |
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