feat: deploy

This commit is contained in:
linpl 2023-02-24 18:10:40 +08:00
parent ffa6dfecf3
commit 22a5580931
4 changed files with 84 additions and 25 deletions

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx commitlint --edit "${1}"

View File

@ -1,4 +0,0 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"
npx lint-staged

View File

@ -8,28 +8,13 @@
"predeploy": "cp CNAME ./dist", "predeploy": "cp CNAME ./dist",
"deploy": "gh-pages -d dist", "deploy": "gh-pages -d dist",
"dev": "dumi dev", "dev": "dumi dev",
"prepare": "husky install && dumi setup", "prepare": "dumi setup",
"start": "npm run dev" "start": "npm run dev"
}, },
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"lint-staged": {
"*.{md,json}": [
"prettier --write --no-error-on-unmatched-pattern"
]
},
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"dumi": "^2.0.2", "dumi": "^2.0.2",
"dumi-theme-antd-style": "^0.10.5", "dumi-theme-antd-style": "^0.10.5",
"gh-pages": "^5.0.0", "gh-pages": "^5.0.0"
"husky": "^8.0.1",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1"
}, },
"authors": [ "authors": [
"linpeilie@qq.com" "linpeilie@qq.com"

82
pom.xml
View File

@ -8,6 +8,8 @@
<artifactId>mapstruct-plus-pom</artifactId> <artifactId>mapstruct-plus-pom</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>${mapstruct-plus.version}</version> <version>${mapstruct-plus.version}</version>
<name>Mapstruct Plus</name>
<description>mapstruct增加工具包</description>
<modules> <modules>
<module>mapstruct-plus</module> <module>mapstruct-plus</module>
<module>mapstruct-plus-spring-boot-starter</module> <module>mapstruct-plus-spring-boot-starter</module>
@ -20,6 +22,7 @@
<maven.compiler.target>8</maven.compiler.target> <maven.compiler.target>8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<mapstruct.version>1.5.1.Final</mapstruct.version> <mapstruct.version>1.5.1.Final</mapstruct.version>
<projectUrl>https://github.com/linpeilie/mapstruct-plus.git</projectUrl>
</properties> </properties>
<dependencyManagement> <dependencyManagement>
@ -98,7 +101,86 @@
<artifactId>flatten-maven-plugin</artifactId> <artifactId>flatten-maven-plugin</artifactId>
<version>1.1.0</version> <version>1.1.0</version>
</plugin> </plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins> </plugins>
</build> </build>
<developers>
<developer>
<name>linpeilie</name>
<email>linpeilie@qq.com</email>
<url>${projectUrl}</url>
</developer>
</developers>
<!--以下部分内容不需要修改,直接复制咱贴即可-->
<url>${projectUrl}</url>
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo,manual</distribution>
</license>
</licenses>
<scm>
<!-- 采用projectUrl变量代替这个值方便给重复利用这个配置也就是上面的标签替换一下值就行 -->
<connection>${projectUrl}</connection>
<developerConnection>${projectUrl}</developerConnection>
<url>${projectUrl}</url>
</scm>
</project> </project>