-
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.
- Loading branch information
1 parent
38ea5db
commit 302a747
Showing
32 changed files
with
13,807 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
### Maven | ||
target/ | ||
logs/ | ||
!.mvn/wrapper/maven-wrapper.jar | ||
|
||
### Gradle | ||
.gradle | ||
/build/ | ||
/out/ | ||
!gradle/wrapper/gradle-wrapper.jar | ||
bin/ | ||
|
||
### STS ### | ||
.apt_generated | ||
.classpath | ||
.factorypath | ||
.project | ||
.settings | ||
.springBeans | ||
.sts4-cache | ||
|
||
### IntelliJ IDEA ### | ||
.idea | ||
*.iws | ||
*.iml | ||
*.ipr | ||
log/ | ||
|
||
### NetBeans ### | ||
nbproject/private/ | ||
build/ | ||
nbbuild/ | ||
dist/ | ||
nbdist/ | ||
.nb-gradle/ | ||
|
||
### Mac | ||
.DS_Store | ||
*/.DS_Store | ||
|
||
### VS Code ### | ||
*.project | ||
*.factorypath | ||
|
||
### Compiled class file | ||
*.class | ||
|
||
### Log file | ||
*.log | ||
|
||
### BlueJ files | ||
*.ctxt | ||
|
||
### Mobile Tools for Java (J2ME) | ||
.mtj.tmp/ | ||
|
||
### Package Files | ||
*.war | ||
*.nar | ||
*.ear | ||
*.zip | ||
*.tar.gz | ||
*.rar | ||
|
||
### VSCode | ||
.vscode | ||
|
||
### Local file | ||
application-local.yml | ||
application-local.yaml | ||
application-local.properties | ||
|
||
/admin-frontend/node_modules/ | ||
/workplace/ |
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,10 @@ | ||
reviewers: | ||
- ruibaby | ||
- guqing | ||
- JohnNiang | ||
- wangzhen-fit2cloud | ||
|
||
approvers: | ||
- ruibaby | ||
- guqing | ||
- JohnNiang |
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,63 @@ | ||
plugins { | ||
id "com.github.node-gradle.node" version "3.3.0" | ||
id "io.github.guqing.plugin-development" version "0.0.6-SNAPSHOT" | ||
id 'java' | ||
} | ||
|
||
group 'run.halo.starter' | ||
sourceCompatibility = JavaVersion.VERSION_17 | ||
|
||
repositories { | ||
maven { url 'https://s01.oss.sonatype.org/content/repositories/releases' } | ||
maven { url 'https://repo.spring.io/milestone' } | ||
mavenCentral() | ||
} | ||
|
||
jar { | ||
enabled = true | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
manifest.attributes( | ||
'Plugin-Version': "${project.version}", | ||
) | ||
from { | ||
configurations.runtimeClasspath.collect { | ||
it.isDirectory() ? it : zipTree(it) | ||
} | ||
} | ||
} | ||
|
||
dependencies { | ||
compileOnly platform("run.halo.dependencies:halo-dependencies:1.0.0") | ||
|
||
compileOnly files("lib/halo-2.0.0-SNAPSHOT-plain.jar") | ||
|
||
compileOnly 'org.projectlombok:lombok:1.18.22' | ||
annotationProcessor 'org.projectlombok:lombok:1.18.22' | ||
|
||
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' | ||
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' | ||
} | ||
|
||
test { | ||
useJUnitPlatform() | ||
} | ||
|
||
node { | ||
nodeProjectDir = file("${project.projectDir}/console") | ||
} | ||
|
||
task buildFrontend(type: NpxTask) { | ||
command = 'pnpm' | ||
args = ['build'] | ||
} | ||
|
||
task pnpmInstall(type: NpxTask) { | ||
command = "pnpm" | ||
args = ["install"] | ||
} | ||
|
||
build { | ||
// build frontend before build | ||
tasks.getByName('compileJava').dependsOn('buildFrontend') | ||
tasks.getByName("buildFrontend").dependsOn("pnpmInstall") | ||
} |
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,12 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = false | ||
insert_final_newline = true |
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,15 @@ | ||
/* eslint-env node */ | ||
require("@rushstack/eslint-patch/modern-module-resolution"); | ||
|
||
module.exports = { | ||
root: true, | ||
extends: [ | ||
"plugin:vue/vue3-essential", | ||
"eslint:recommended", | ||
"@vue/eslint-config-typescript/recommended", | ||
"@vue/eslint-config-prettier", | ||
], | ||
env: { | ||
"vue/setup-compiler-macros": true, | ||
}, | ||
}; |
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,28 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
pnpm-debug.log* | ||
lerna-debug.log* | ||
|
||
node_modules | ||
.DS_Store | ||
dist | ||
dist-ssr | ||
coverage | ||
*.local | ||
|
||
/cypress/videos/ | ||
/cypress/screenshots/ | ||
|
||
# Editor directories and files | ||
.vscode/* | ||
!.vscode/extensions.json | ||
.idea | ||
*.suo | ||
*.ntvs* | ||
*.njsproj | ||
*.sln | ||
*.sw? |
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,6 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare module "*.vue" { | ||
import Vue from "vue"; | ||
export default Vue; | ||
} |
Oops, something went wrong.