Skip to content

Commit

Permalink
Release 1.1.0 (#863)
Browse files Browse the repository at this point in the history
* release: 1.0

* refactor: sync release/1.0

* fix: only exit when prepublishOnly (#836)

* feat: add recommend extensions (#837)

* feat: add recommend extensions

* docs: typo

* docs: remove

* fix: fail to pase ts code (#839)

* fix: make sure that the start & end fields exist (#838)

* fix: make sure that the start & end fields exist

* docs: changelog

* docs: 编程 => 编码

* feat: lib-mtop-complete

* fix: some mistakes

* refactor: update icons (#846)

* refactor: icons

* docs: icon

* docs: update links

* fix: update MtopRequest autoComplete

* fix: update autoComplete

* fix: update

* refactor: solved diff

* refactor: solved diff

* chore: update webview icon (#856)

* chore: webview  icon

* chore: version and changelog

* fix: #861 (#862)

* feat: hint user install types/rax (#854)

* feat: hini user install types/rax

* feat: hint user install @types/Rax

* refactor: updated

* doc: update

* fix: change transfer parameters

* feat: update (#866)

* Feat: release 1.1.0 and update .vscodeignore  (#864)

* feat: update

* feat: update

* feat: update

* fix hintInstallTypesRax (#868)

* feat: support less (#869)

Co-authored-by: wuji.xwt <wuji.xwt@alibaba-inc.com>
Co-authored-by: alvin.hui <alvin.hui@qq.com>
Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com>
Co-authored-by: GiveMe-A-Name <a455300764b@hotmail.com>
Co-authored-by: GiveMe-A-Name <58852732+GiveMe-A-Name@users.noreply.github.com>
  • Loading branch information
6 people authored Jun 17, 2021
1 parent c6330aa commit f4b2258
Show file tree
Hide file tree
Showing 42 changed files with 405 additions and 55 deletions.
16 changes: 11 additions & 5 deletions extensions/application-manager/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Change Log

## 1.0.1

- chore: update webview icon

## 1.0.0

Release 1.0.0

## 0.8.3

- feat: support preview in mobile device

## 0.8.2
Expand Down Expand Up @@ -74,7 +79,7 @@ Release 1.0.0

## 0.5.8

- fix: material sources edit form dialog will disappear before error
- fix: material sources edit form dialog will disappear before error
- fix: material sources list display order
- feat: add create custom scaffold entry

Expand All @@ -85,7 +90,7 @@ Release 1.0.0
## 0.5.6

- chore: change extension name
- chore: publish material-engine package
- chore: publish material-engine package

## 0.5.5

Expand Down Expand Up @@ -125,6 +130,7 @@ Release 1.0.0
- fix: build error

## 0.4.7

- feat: auto focus field
- chore: quick entries title and detail
- feat: hide some entries and treeview in pegasus project
Expand Down Expand Up @@ -157,12 +163,12 @@ Release 1.0.0

## 0.4.0

- refactor: auto start status bar and editor title
- refactor: auto start status bar and editor title
- feat: delete page & component

## 0.3.0

- feat: support en-US
- feat: support en-US

## 0.2.1

Expand All @@ -171,7 +177,7 @@ Release 1.0.0

## 0.2.0

- feat: install dependencies automatically when node_modules does not exist
- feat: install dependencies automatically when node_modules does not exist
- feat: refresh dependencies list、pages list and components list automatically
- feat: support stopping scripts

Expand Down
2 changes: 1 addition & 1 deletion extensions/application-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Application Manager",
"description": "Quick view your Universal Application(React/Rax/Vue, etc).",
"publisher": "iceworks-team",
"version": "1.0.0",
"version": "1.0.1",
"engines": {
"vscode": "^1.41.0"
},
Expand Down
4 changes: 4 additions & 0 deletions extensions/application-manager/src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import showAllQuickPick from './quickPicks/showAllQuickPick';
import autoOpenPreview from './utils/preview/autoOpenPreview';
import createScriptsCommands from './utils/createScriptsCommands';
import createExtensionsStatusBar from './statusBar/createExtensionsStatusBar';
import hintInstallTypesRax from './hintInstallTypesRax';
import i18n from './i18n';

// eslint-disable-next-line
Expand Down Expand Up @@ -189,6 +190,9 @@ export async function activate(context: vscode.ExtensionContext) {
// globalState.update(didShowWelcomePageBySidebarStateKey, true);
}
}

// if rax-ts project is uninstalled @types/rax, hint user install it;
hintInstallTypesRax(recorder);
}

export function deactivate() { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
function hasTypesRaxInObject(object: Object): boolean {
const TYPES_RAX = '@types/rax';
for (const key in object) {
if (key === TYPES_RAX) {
return true;
}
}
return false;
}

export default (projectPackageJSON: any): boolean => {
const { devDependencies, dependencies } = projectPackageJSON;
let flag = false;
if (devDependencies && typeof devDependencies === 'object' && hasTypesRaxInObject(devDependencies)) {
flag = true;
}
if (dependencies && typeof dependencies === 'object' && hasTypesRaxInObject(dependencies)) {
flag = true;
}
return flag;
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { getProjectType, getProjectLanguageType } from '@appworks/project-service';

export default async function isRaxTsProject(): Promise<boolean> {
const type = await getProjectType();
const languageType = await getProjectLanguageType();
return type === 'rax' && languageType === 'ts';
}

52 changes: 52 additions & 0 deletions extensions/application-manager/src/hintInstallTypesRax/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
import * as vscode from 'vscode';
import runScript from '../terminal/runScript';
import { getProjectPackageJSON } from '@appworks/project-service/lib/utils';
import checkHasTypesRax from './checkHasTypesRax';
import checkIsRaxTsProject from './checkIsRaxTsProject';
import { projectPath } from '@appworks/project-service';
import { createNpmCommand, getAddDependencyAction } from '@appworks/common-service';
import { Recorder } from '@appworks/recorder';
import i18n from '../i18n';

/**
* 检测是否需要提示用户安装 @types/rax
* @returns
*/
async function checkIsShowTip(): Promise<boolean> {
const projectPackageJSON = await getProjectPackageJSON();
return await checkIsRaxTsProject() && !checkHasTypesRax(projectPackageJSON);
}

/**
* 根据用户的选择,自动安装@types/rax
* @param value
*/
async function installTypesRax(value: string | undefined, recorder: Recorder) {
if (value === i18n.format('extension.applicationManager.hintInstallTypesrax.message.install')) {
recorder.record({
action: 'actualInstall',
module: 'hintInstallTypesRax',
});
const terminalName = 'install @typesRax';
const npmCommandAction = getAddDependencyAction();

const script = createNpmCommand(npmCommandAction, '@types/rax', '--save-dev');
runScript(terminalName, projectPath, script);
}
}

export default async (recorder: Recorder) => {
if (await checkIsShowTip()) {
recorder.record({
action: 'showInstallTip',
module: 'hintInstallTypesRax',
});
vscode.window
.showInformationMessage(
i18n.format('extension.applicationManager.hintInstallTypesrax.message'),
i18n.format('extension.applicationManager.hintInstallTypesrax.message.install'),
i18n.format('extension.applicationManager.hintInstallTypesrax.message.ignore'),
)
.then((value) => installTypesRax(value, recorder));
}
};
5 changes: 4 additions & 1 deletion extensions/application-manager/src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@
"extension.applicationManager.configHelper.extension.webviewTitle": "Settings - AppWorks",
"extension.applicationManager.welcome.extension.webviewTitle": "Welcome - AppWorks",
"extension.applicationManager.dashboard.extension.webviewTitle": "Dashboard - AppWorks",
"extension.applicationManager.extension.emptyWorkplace": "Current workspace is empty, please open or create an application."
"extension.applicationManager.extension.emptyWorkplace": "Current workspace is empty, please open or create an application.",
"extension.applicationManager.hintInstallTypesrax.message": "Detected that you did not have @types/rax installed. For better code tips, it is recommended that you install.",
"extension.applicationManager.hintInstallTypesrax.message.install": "Install",
"extension.applicationManager.hintInstallTypesrax.message.ignore": "Ignore"
}
5 changes: 4 additions & 1 deletion extensions/application-manager/src/locales/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@
"extension.applicationManager.openEntryFile.ErrorMessage": "没有找到入口",
"extension.applicationManager.configHelper.extension.webviewTitle": "设置 - AppWorks",
"extension.applicationManager.welcome.extension.webviewTitle": "欢迎 - AppWorks",
"extension.applicationManager.dashboard.extension.webviewTitle": "项目仪表盘 - AppWorks"
"extension.applicationManager.dashboard.extension.webviewTitle": "项目仪表盘 - AppWorks",
"extension.applicationManager.hintInstallTypesrax.message": "检测到您未安装 @types/rax。为获得更好的代码提示,建议您安装。",
"extension.applicationManager.hintInstallTypesrax.message.install": "安装",
"extension.applicationManager.hintInstallTypesrax.message.ignore": "忽略"
}
22 changes: 17 additions & 5 deletions extensions/application-manager/src/quickPicks/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ export default [
detail: i18n.format('extension.applicationManager.showEntriesQuickPick.DefPublish.detail'),
command: 'applicationManager.scripts.DefPublish',
async condition() {
return (await checkIsAliInternal()) && await checkIsTargetProjectType();
return (await checkIsAliInternal()) && (await checkIsTargetProjectType());
},
},
{
Expand All @@ -82,31 +82,43 @@ export default [
detail: i18n.format('extension.applicationManager.showEntriesQuickPick.generatePage.detail'),
command: 'material-helper.page-generator.start',
async condition() {
return (await checkIsTargetProjectType()) && !(await checkIsPegasusProject()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper');
return (
(await checkIsTargetProjectType()) &&
!(await checkIsPegasusProject()) &&
vscode.extensions.getExtension('iceworks-team.iceworks-material-helper')
);
},
},
{
label: i18n.format('extension.applicationManager.showEntriesQuickPick.materialImport.label'),
detail: i18n.format('extension.applicationManager.showEntriesQuickPick.materialImport.detail'),
command: 'material-helper.material-importer.start',
async condition() {
return (await checkIsTargetProjectType()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper');
return (
(await checkIsTargetProjectType()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper')
);
},
},
{
label: i18n.format('extension.applicationManager.showEntriesQuickPick.createComponent.label'),
detail: i18n.format('extension.applicationManager.showEntriesQuickPick.createComponent.detail'),
command: 'material-helper.component-creator.start',
async condition() {
return (await checkIsTargetProjectType()) && !(await checkIsPegasusProject()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper');
return (
(await checkIsTargetProjectType()) &&
!(await checkIsPegasusProject()) &&
vscode.extensions.getExtension('iceworks-team.iceworks-material-helper')
);
},
},
{
label: i18n.format('extension.applicationManager.showEntriesQuickPick.showMaterialDocs.label'),
detail: i18n.format('extension.applicationManager.showEntriesQuickPick.showMaterialDocs.detail'),
command: 'material-helper.showMaterialDocs',
async condition() {
return (await checkIsTargetProjectType()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper');
return (
(await checkIsTargetProjectType()) && vscode.extensions.getExtension('iceworks-team.iceworks-material-helper')
);
},
},
{
Expand Down
16 changes: 13 additions & 3 deletions extensions/appworks/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# Change Log

## 1.1.0

- feat: hint user install types/rax [#854](https://github.com/appworks-lab/pack/pull/854)
- fix: rax-spa project targets null [#862](https://github.com/appworks-lab/pack/pull/862)
- Chore: update webview icon [#856](https://github.com/appworks-lab/pack/pull/856) [#846](https://github.com/appworks-lab/pack/pull/846)
- feat: add recommend extensions [#837](https://github.com/appworks-lab/pack/pull/837)
- fix: only exit process when prepublishOnly [#836](https://github.com/appworks-lab/pack/pull/836)
- fix: make sure that the start & end fields exist [#838](https://github.com/appworks-lab/pack/pull/838)
- fix: vsce [#576](https://github.com/microsoft/vscode-vsce/issues/576) .vscodeignore configuration

## 1.0.3

- Update slogan to "前端研发套件".
Expand Down Expand Up @@ -31,7 +41,7 @@

## 0.18.1

- fix: Time Master
- fix: Time Master

## 0.18.0

Expand Down Expand Up @@ -135,7 +145,7 @@
## 0.13.0

- feat: support O2
- refactor: update rax and ice config schema
- refactor: update rax and ice config schema
- fix: material debug can not clean source

## 0.12.0
Expand Down Expand Up @@ -190,7 +200,7 @@
## 0.1.5

- docs: project rename to application
- docs: add homepage and repository
- docs: add homepage and repository

## 0.1.4

Expand Down
2 changes: 1 addition & 1 deletion extensions/appworks/README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,4 @@ AppWorks 套件内包含以下推荐的三方插件:

## 获取帮助

向 AppWorks 的 Github 仓库提交 [issue](https://github.com/appworks-lab/pack/issues/new) ,我们会快速响应所提交的问题。
向 AppWorks 的 Github 仓库提交 [issue](https://github.com/appworks-lab/pack/issues/new) ,我们会快速响应所提交的问题。
2 changes: 1 addition & 1 deletion 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.0.3",
"version": "1.1.0",
"engines": {
"vscode": "^1.41.0"
},
Expand Down
6 changes: 5 additions & 1 deletion extensions/codemod/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Change Log

## 1.0.1

- chore: update webview icon

## 1.0.0

Release 1.0.0

## 0.1.0

- initialization
- initialization
2 changes: 1 addition & 1 deletion extensions/codemod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "CodeMod",
"description": "CodeMod(Code Modify) is a tool to assist you with large-scale codebase refactors that can be partially automated but still require human oversight and occasional intervention.",
"publisher": "iceworks-team",
"version": "1.0.0",
"version": "1.0.1",
"engines": {
"vscode": "^1.41.0"
},
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.0.1

- chore: update webview icon

## 1.0.0

Release 1.0.0
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.0.0",
"version": "1.0.1",
"engines": {
"vscode": "^1.41.0"
},
Expand Down
4 changes: 3 additions & 1 deletion extensions/material-helper/.vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ src/**
**/*.map
**/*.ts
web/**
node_modules
node_modules/*
!node_modules/prettier
!node_modules/@iceworks
node_modules/@iceworks/*
!node_modules/@iceworks/code-generator
Loading

0 comments on commit f4b2258

Please sign in to comment.