-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: require vscode (#565) * refactor: record (#568) * refactor: record execute command * style: remove empty line * feat: record for service * chore: rename module * feat: record open in browser * feat: record show doc pick * refactor: no need locale * refactor: remove data * chore: remove console * feat: update * feat: update * feat: update readme * fix: rules * feat: support vue (#580) * feat: support scan command (#581) * chore: sets the extension to be flagged as a Preview in the Marketplace. (#582) * feat: code Editor for Page Templater (#583) * feat: add editor * docs: changlog * fix: no select blocks prompt (#575) * fix: select blocks prompt * chore: version and changelog * fix: open materials panel when code editor opened (#573) * feat: unable to open material panel when no editor * feat: input path in settings.json * feat: support generate page or component to the specify path * fix: configuration description i18n * fix: lint * feat: support generate code to special path * feat: generate code to special path * feat: custom material sources will be at first in material sources list (#586) * chore: update version and change log * docs: new image for Visual Construction * fix: require path not found (#590) * chore: sorting of quick entry (#589) * chore: sorting of quick entry * docs: typo * chore: package version * feat: update readme * chore: title for quick entry (#592) Co-authored-by: Hengchang Lu <44047106+luhc228@users.noreply.github.com> Co-authored-by: yangfan <18767120422@163.com> Co-authored-by: luhc228 <luhengchang228@gmail.com>
- Loading branch information
1 parent
54f8c7e
commit b2f0b83
Showing
76 changed files
with
725 additions
and
385 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ web/** | |
**/*.map | ||
**/*.ts | ||
|
||
node_modules/terser | ||
node_modules/typescript | ||
node_modules/ts-loader |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"iceworksDoctor.commands.dashboard.title": "Iceworks: Open Dashboard." | ||
"iceworksDoctor.commands.dashboard.title": "Iceworks: Open Dashboard.", | ||
"iceworksDoctor.commands.scan.title": "Iceworks: Scan Your Project." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
{ | ||
"iceworksDoctor.commands.dashboard.title": "Iceworks: 打开仪表盘" | ||
"iceworksDoctor.commands.dashboard.title": "Iceworks: 打开仪表盘", | ||
"iceworksDoctor.commands.scan.title": "Iceworks: 扫描代码" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* eslint-disable */ | ||
const fs = require('fs'); | ||
const path = require('path'); | ||
const glob = require('glob'); | ||
const { minify } = require('terser'); | ||
|
||
// ESLint has its own loader specification and cannot use webpack to build the entire package. | ||
// Keep the npm package in node_modules so that ESLint can find the corresponding configs and plugins. | ||
// | ||
// When VS Code is released with all files in node_modules, the package size will exceed 30MB. | ||
// This script filters all files in node_modules to remove unnecessary files and reduce the package size. | ||
// | ||
// After running this script, you may not be able to debug this project. You can reinstall the dependency for debugging. | ||
glob(`${path.join(__dirname, '../node_modules')}/**/*.+(${['js', 'ts', 'md', 'map'].join('|')})`, { nodir: true }, async (error, files) => { | ||
if (!error) { | ||
console.log(`Start minify node_modules js files, count: ${files.length}`); | ||
|
||
for (let i = 0, l = files.length; i < l; i++) { | ||
const file = files[i]; | ||
|
||
// Delete .md, .ts and .map file after build | ||
if (/\.(md|ts|map)$/.test(file)) { | ||
fs.unlinkSync(file); | ||
continue; | ||
} | ||
|
||
// Delete */test/* file after build | ||
if (/^(?:\/(.*))\/test(?:\/(.*))[\/#\?]?$/i.test(file)) { | ||
fs.unlinkSync(file); | ||
continue; | ||
} | ||
|
||
// Minify node_modules js files | ||
let minifiedCode = ''; | ||
try { | ||
const result = await minify({ | ||
[file]: fs.readFileSync(file, 'utf8'), | ||
}); | ||
minifiedCode = result.code; | ||
} catch (e) { | ||
// ignore | ||
} | ||
|
||
if (minifiedCode) { | ||
fs.writeFileSync(file, minifiedCode, 'utf8'); | ||
} | ||
} | ||
} | ||
}); | ||
|
||
|
||
// Delete licenses | ||
glob(`${path.join(__dirname, '../node_modules')}/**/license`, { nodir: true }, async (error, files) => { | ||
if (!error) { | ||
(files || []).forEach(file => { | ||
fs.unlinkSync(file); | ||
}); | ||
} | ||
}); |
Oops, something went wrong.