Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
rxliuli committed Aug 31, 2021
2 parents ff1de8c + d805931 commit dff6bb8
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 17 deletions.
4 changes: 4 additions & 0 deletions apps/liuli-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 更新日志

## 3.8.4

- 修复发布后的内容不包含 .gitignore 的问题

## 3.8.3

- 修复模板中的一些依赖缺失和脚本错误的问题
Expand Down
33 changes: 33 additions & 0 deletions apps/liuli-cli/_gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# ----------------------------- Directories --------------------------
node_modules
dist
tests/server/static
tests/server/static/upload
.idea

# ----------------------------- File Types --------------------------
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
*~

# ----------------------------- Files -------------------------------
.DS_Store
# local env files
.env.local
.env.*.local
# log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
**/__tests__/temp/
*.tgz
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
**/i18n/index.d.ts
11 changes: 1 addition & 10 deletions apps/liuli-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@liuli-util/cli",
"version": "3.8.3",
"version": "3.8.4",
"description": "一个针对于库和 CLI 应用程序打包的零配置 CLI",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand All @@ -12,15 +12,6 @@
"build": "rimraf dist && yarn start build cli",
"dev": "yarn start build cli -w"
},
"files": [
"dist",
"src",
"templates",
".gitignore",
"CHANGELOG.md",
"package.json",
"tsconfig.json"
],
"bin": {
"liuli-cli": "dist/bin.js"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/liuli-cli/src/commands/sync/SyncProgram.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export class SyncProgram {
const gitignorePath = path.resolve(this.base, '.gitignore')
await writeFile(
gitignorePath,
await readFile(PathUtil.resolveOfProject('.gitignore'), 'utf-8'),
await readFile(PathUtil.resolveOfProject('_gitignore'), 'utf-8'),
)
},
},
Expand Down
7 changes: 7 additions & 0 deletions jetbrains-plugins/vite-jetbrains-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

# Changelog

## [0.2.0]

### Changed

- chore: change the name of the plugin displayed in the creation panel to Vite
- feat: use create-vite instead of the deprecated @vitejs/create-app

## [0.1.6]

### Changed
Expand Down
2 changes: 1 addition & 1 deletion jetbrains-plugins/vite-jetbrains-plugin/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=com.rxliuli
pluginName=vite-jetbrains-plugin
pluginVersion=0.1.6
pluginVersion=0.2.0
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=202
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import javax.swing.DefaultComboBoxModel
import javax.swing.Icon

class ViteCliProjectGenerator : NpmPackageProjectGenerator() {
private val packageName = "@vitejs/create-app"
private val packageName = "create-vite"
private val executeCmd = "create-vite"

override fun getName(): String {
return ViteMessage.msg("vite.project.generator.name")
Expand Down Expand Up @@ -49,7 +50,7 @@ class ViteCliProjectGenerator : NpmPackageProjectGenerator() {
}

override fun getNpxCommands(): List<NpxPackageDescriptor.NpxCommand> {
return listOf(NpxPackageDescriptor.NpxCommand(packageName, "create-app"))
return listOf(NpxPackageDescriptor.NpxCommand(packageName, executeCmd))
}

val settingsTemplateKey = Key.create<String>("template")
Expand Down Expand Up @@ -87,7 +88,7 @@ class ViteCliProjectGenerator : NpmPackageProjectGenerator() {
override fun generatorArgs(project: Project, baseDir: VirtualFile, settings: Settings): Array<String> {
val template = settings.getUserData(settingsTemplateKey)
globalSettings.template = template!!
return arrayOf(" ${baseDir.name} --template $template")
return arrayOf(baseDir.name, "--template", template)
}

override fun generateInTemp(): Boolean {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<idea-plugin>
<id>com.rxliuli.vite-jetbrains-plugin</id>
<name>Vite Integrated</name>
<vendor email="[email protected]" url="https://github.com/rxliuli/vite-jetbrains-plugin">rxliuli</vendor>
<vendor email="[email protected]" url="https://github.com/rxliuli/liuli-tools/tree/master/jetbrains-plugins/vite-jetbrains-plugin">rxliuli</vendor>

<!-- please see https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/plugin_compatibility.html
on how to target different products -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vite.project.generator.name=Create Vite Project
vite.project.generator.name=Vite
vite.project.generator.description=Use @vitejs/create-app cli to create a project
vite.project.generator.presentablePackageName=Vite CLI
vite.project.generator.settings.template=Template
Expand Down

0 comments on commit dff6bb8

Please sign in to comment.