Skip to content

Commit bf682c6

Browse files
committed
首次提交
0 parents  commit bf682c6

1,592 files changed

Lines changed: 228027 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitbook.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
structure:
2+
summary: doc/README.md

.github/workflows/main.yml

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: Actions
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
# Building and testing Java with Maven
7+
# https://docs.github.com/en/actions/guides/building-and-testing-java-with-maven
8+
Litemall-all:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
java-version:
13+
- 8
14+
- 8.0.192
15+
- 11
16+
- 11.0.3
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Set up JDK ${{ matrix.java-version }}
20+
uses: actions/setup-java@v2
21+
with:
22+
java-version: ${{ matrix.java-version }}
23+
distribution: zulu
24+
- name: Cache Maven packages
25+
uses: actions/cache@v2
26+
with:
27+
path: ~/.m2
28+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
29+
restore-keys: ${{ runner.os }}-m2
30+
- name: Build with Maven
31+
run: mvn --batch-mode --update-snapshots verify
32+
33+
# Building and testing Node.js
34+
# https://docs.github.com/en/actions/guides/building-and-testing-nodejs
35+
Litemall-admin:
36+
runs-on: ubuntu-latest
37+
strategy:
38+
matrix:
39+
node-version:
40+
- 10.x
41+
- 12.x
42+
- 14.x
43+
# - 15.x
44+
steps:
45+
- uses: actions/checkout@v2
46+
- name: Use Node.js ${{ matrix.node-version }}
47+
uses: actions/setup-node@v1
48+
with:
49+
node-version: ${{ matrix.node-version }}
50+
- run: npm --prefix litemall-admin install
51+
- run: npm --prefix litemall-admin run test
52+
53+
Litemall-vue:
54+
runs-on: ubuntu-latest
55+
strategy:
56+
matrix:
57+
node-version:
58+
- 10.x
59+
- 12.x
60+
- 14.x
61+
# - 15.x
62+
steps:
63+
- uses: actions/checkout@v2
64+
- name: Use Node.js ${{ matrix.node-version }}
65+
uses: actions/setup-node@v1
66+
with:
67+
node-version: ${{ matrix.node-version }}
68+
- run: npm --prefix litemall-vue install
69+
- run: npm --prefix litemall-vue run test

.gitignore

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
### gradle ###
2+
.gradle
3+
/build/
4+
!gradle/wrapper/gradle-wrapper.jar
5+
6+
### STS ###
7+
.settings/
8+
.apt_generated
9+
.classpath
10+
.factorypath
11+
.project
12+
.settings
13+
.springBeans
14+
15+
16+
### IntelliJ IDEA ###
17+
/.idea/
18+
/private/
19+
/storage/
20+
/litemall.iml
21+
.checkstyle
22+
.idea
23+
*.iws
24+
*.iml
25+
*.ipr
26+
rebel.xml
27+
### maven ###
28+
target/
29+
*.war
30+
*.ear
31+
*.zip
32+
*.tar
33+
*.tar.gz
34+
35+
### logs ####
36+
/logs/
37+
*.log
38+
39+
### temp ignore ###
40+
*.cache
41+
*.diff
42+
*.patch
43+
*.tmp
44+
*.java~
45+
*.properties~
46+
*.xml~
47+
48+
### system ignore ###
49+
.DS_Store
50+
Thumbs.db
51+
Servers
52+
.metadata
53+
upload
54+
gen_code

.workflow/BranchPipeline.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
version: '1.0'
2+
name: branch-pipeline
3+
displayName: BranchPipeline
4+
stages:
5+
- stage:
6+
name: compile
7+
displayName: 编译
8+
steps:
9+
- step: build@maven
10+
name: build_maven
11+
displayName: Maven 构建
12+
# 支持6、7、8、9、10、11六个版本
13+
jdkVersion: 8
14+
# 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+
mavenVersion: 3.3.9
16+
# 构建命令
17+
commands:
18+
- mvn -B clean package -Dmaven.test.skip=true
19+
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+
artifacts:
21+
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+
- name: BUILD_ARTIFACT
23+
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+
path:
25+
- ./target
26+
- step: publish@general_artifacts
27+
name: publish_general_artifacts
28+
displayName: 上传制品
29+
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+
dependArtifact: BUILD_ARTIFACT
31+
# 上传到制品库时的制品命名,默认output
32+
artifactName: output
33+
dependsOn: build_maven
34+
- stage:
35+
name: release
36+
displayName: 发布
37+
steps:
38+
- step: publish@release_artifacts
39+
name: publish_release_artifacts
40+
displayName: '发布'
41+
# 上游上传制品任务的产出
42+
dependArtifact: output
43+
# 发布制品版本号
44+
version: '1.0.0.0'
45+
# 是否开启版本号自增,默认开启
46+
autoIncrement: true
47+
triggers:
48+
push:
49+
branches:
50+
exclude:
51+
- master
52+
include:
53+
- .*

.workflow/MasterPipeline.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
version: '1.0'
2+
name: master-pipeline
3+
displayName: MasterPipeline
4+
stages:
5+
- stage:
6+
name: compile
7+
displayName: 编译
8+
steps:
9+
- step: build@maven
10+
name: build_maven
11+
displayName: Maven 构建
12+
# 支持6、7、8、9、10、11六个版本
13+
jdkVersion: 8
14+
# 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+
mavenVersion: 3.3.9
16+
# 构建命令
17+
commands:
18+
- mvn -B clean package -Dmaven.test.skip=true
19+
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+
artifacts:
21+
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+
- name: BUILD_ARTIFACT
23+
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+
path:
25+
- ./target
26+
- step: publish@general_artifacts
27+
name: publish_general_artifacts
28+
displayName: 上传制品
29+
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+
dependArtifact: BUILD_ARTIFACT
31+
# 上传到制品库时的制品命名,默认output
32+
artifactName: output
33+
dependsOn: build_maven
34+
- stage:
35+
name: release
36+
displayName: 发布
37+
steps:
38+
- step: publish@release_artifacts
39+
name: publish_release_artifacts
40+
displayName: '发布'
41+
# 上游上传制品任务的产出
42+
dependArtifact: output
43+
# 发布制品版本号
44+
version: '1.0.0.0'
45+
# 是否开启版本号自增,默认开启
46+
autoIncrement: true
47+
triggers:
48+
push:
49+
branches:
50+
include:
51+
- master

.workflow/PRPipeline.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
version: '1.0'
2+
name: pr-pipeline
3+
displayName: PRPipeline
4+
stages:
5+
- stage:
6+
name: compile
7+
displayName: 编译
8+
steps:
9+
- step: build@maven
10+
name: build_maven
11+
displayName: Maven 构建
12+
# 支持6、7、8、9、10、11六个版本
13+
jdkVersion: 8
14+
# 支持2.2.1、3.2.5、3.3.9、3.5.2、3.5.3、3.5.4、3.6.1、3.6.3八个版本
15+
mavenVersion: 3.3.9
16+
# 构建命令
17+
commands:
18+
- mvn -B clean package -Dmaven.test.skip=true
19+
# 非必填字段,开启后表示将构建产物暂存,但不会上传到制品库中,7天后自动清除
20+
artifacts:
21+
# 构建产物名字,作为产物的唯一标识可向下传递,支持自定义,默认为BUILD_ARTIFACT。在下游可以通过${BUILD_ARTIFACT}方式引用来获取构建物地址
22+
- name: BUILD_ARTIFACT
23+
# 构建产物获取路径,是指代码编译完毕之后构建物的所在路径,如通常jar包在target目录下。当前目录为代码库根目录
24+
path:
25+
- ./target
26+
- step: publish@general_artifacts
27+
name: publish_general_artifacts
28+
displayName: 上传制品
29+
# 上游构建任务定义的产物名,默认BUILD_ARTIFACT
30+
dependArtifact: BUILD_ARTIFACT
31+
# 构建产物制品库,默认default,系统默认创建
32+
artifactRepository: default
33+
# 上传到制品库时的制品命名,默认output
34+
artifactName: output
35+
dependsOn: build_maven
36+
triggers:
37+
pr:
38+
branches:
39+
include:
40+
- master

0 commit comments

Comments
 (0)