Skip to content

Commit

Permalink
Release 1.5.1 (#971)
Browse files Browse the repository at this point in the history
feat: only check codemod for rax and ice project  feat: only check codemod for rax and ice project #969
feat: remove AppWorks - CodeMod, Bookmarks and Code Runner. AppWorks 插件集 插件优化 #970
  • Loading branch information
fyangstudio authored Dec 1, 2021
1 parent 0b1c76e commit 5b65670
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
4 changes: 4 additions & 0 deletions extensions/appworks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [1.5.1](https://github.com/apptools-lab/appworks/releases/tag/v1.5.1)
- feat: only check codemod for rax and ice project [#969](https://github.com/apptools-lab/appworks/pull/969)
- feat: remove [AppWorks - CodeMod](https://marketplace.visualstudio.com/items?itemName=iceworks-team.iceworks-codemod), [Bookmarks](https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks) and [Code Runner](https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner)

## [1.5.0](https://github.com/apptools-lab/appworks/releases/tag/v1.5.0)

- feat: add auto import for CSS Modules file [#961](https://github.com/apptools-lab/appworks/pull/961)
Expand Down
7 changes: 2 additions & 5 deletions extensions/appworks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "AppWorks",
"description": "Application Development Pack, provide visualization and intelligent technology to build Universal Application faster and better, support Web / H5 / MiniProgram(小程序) Application.",
"publisher": "iceworks-team",
"version": "1.5.0",
"version": "1.5.1",
"engines": {
"vscode": "^1.41.0"
},
Expand Down Expand Up @@ -39,7 +39,6 @@
"iceworks-team.iceworks-material-helper",
"iceworks-team.iceworks-doctor",
"iceworks-team.iceworks-time-master",
"iceworks-team.iceworks-codemod",
"iceworks-team.iceworks-refactor",
"iceworks-team.iceworks-generator",
"eamodio.gitlens",
Expand All @@ -48,9 +47,7 @@
"esbenp.prettier-vscode",
"formulahendry.auto-rename-tag",
"xabikos.JavaScriptSnippets",
"burkeholland.simple-react-snippets",
"formulahendry.code-runner",
"alefragnani.Bookmarks"
"burkeholland.simple-react-snippets"
],
"homepage": "https://github.com/apptools-lab/appworks/blob/master/extensions/appworks/README.md",
"bugs": {
Expand Down
4 changes: 4 additions & 0 deletions extensions/doctor/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

# 1.1.7

- feat: only check codemod for rax and ice project

# 1.1.6

- feat: add showInformationMessage for codemod result
Expand Down
2 changes: 1 addition & 1 deletion extensions/doctor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Doctor",
"description": "A free security and quality audit tool for modern DevOps teams",
"publisher": "iceworks-team",
"version": "1.1.6",
"version": "1.1.7",
"engines": {
"vscode": "^1.41.0"
},
Expand Down
10 changes: 8 additions & 2 deletions extensions/doctor/src/codemod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as path from 'path';
import * as vscode from 'vscode';
import * as semver from 'semver';
import { Doctor } from '@appworks/doctor';
import { projectPath } from '@appworks/project-service';
import { projectPath, getProjectFramework } from '@appworks/project-service';
import parse from 'parse-package-name';
import setOutput from './setOutput';
import setDeprecatedPackage from './setDeprecatedPackage';
Expand Down Expand Up @@ -34,8 +34,14 @@ export async function activateCodemod(context: vscode.ExtensionContext) {
const packageFile = path.join(projectPath, 'package.json');
const packageJSON = fs.existsSync(packageFile) ? JSON.parse(fs.readFileSync(packageFile, 'utf-8')) : {};

const projectFramework = await getProjectFramework();

// Show notifaction
if (fs.existsSync(packageFile) && projectPath) {
if (
fs.existsSync(packageFile) && projectPath &&
// Only check for rax and ice project
projectFramework !== 'unknown' && projectFramework !== 'vue'
) {
const reports = await doctor.scan(projectPath, SCAN_OPTIONS);
(reports.codemod?.reports || []).forEach((codemod) => {
if (codemod.severity > 0) {
Expand Down

0 comments on commit 5b65670

Please sign in to comment.