
Security News
npm v12 Ships With Install Scripts Off by Default, Begins Deprecating 2FA-Bypass Tokens
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.
Mist 组件编译工具
npm install -g mistc
mistc [options] file
mistc --help
Mist 模板编译工具
Usage:
mistc [options] file
Options:
-o,--output <file> 输出到指定文件
-m,--minify 是否进行最小化
-b,--binary 是否编译为二进制产物
-u,--check-update 检查更新,输出 JSON 字符串,属性有 hasUpdate, currentVersion, newVersion
-p,--platform 编译平台
-d,--debug 是否调试
-v,--version 输出版本号
-h,--help 显示帮助
import { compile } from 'mistc'
async function test() {
const templatePath = '/path/to/the/template/file.mist'
const compiledTemplate = await compile(templatePath, { minify: true, tsxOptions: {
removeConsoleLog: false,
symbolNameOptimization: true,
shortStyleKeyOptimization: false
}});
console.log(compiledTemplate)
}
.
├── FEATURE.md
├── README.md
├── bin
│ └── mistc
├── dev // 测试
│ └── test.js
├── package-lock.json
├── package.json
├── src // 代码
│ ├── binary
│ ├── cli.ts
│ ├── constantFolding.ts
│ ├── convertExpressions.ts
│ ├── exp
│ ├── index.ts
│ ├── inlineComponents.ts
│ └── tsx
├── test // 单元测试
│ ├── index.js
│ ├── mist
│ └── tsx
1 安装依赖
npm i
2 编写代码
执行测试代码
ts-node ./dev/test.js
断点调试 打开test.js文件,按F5启动调试
3 跑单元测试
npm run test
4 发布beta版 修改版本号
npm publish --tag=beta
5 发布正式版 修改版本号
npm publish
node --prof ./dev/prof.js
node --prof-process isolate-0x7f949e700000-43913-v8.log > processed.txt
FAQs
compiler for mist templates
The npm package mistc receives a total of 15 weekly downloads. As such, mistc popularity was classified as not popular.
We found that mistc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
npm v12 is generally available, turning install scripts off by default and beginning the deprecation of 2FA-bypass publishing tokens.

Research
/Security News
Socket tracks the activity as Operation “Muck and Load”: a threat actor uses commit-farming workflows, public dead drops, and protected archives to stage Windows RAT and infostealer malware.

Security News
pnpm 11.10 hardens registry auth to block token redirection, tightens pack-app and deploy, and makes the Rust port (v12) installable.