
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
@efox/emp-cli
Advanced tools
Base on Webpack5 Module Federation Micro Frontends solution!
English | 简体中文
npx @efox/emp-cli init
npm i -g @efox/emp-cli
or yarn global add @efox/emp-cli
emp init
Initialize project
emp init -t <remote-template-url>
The list of custom templates needs to use JSON format ("template name": "git link")
{
"react": "https://github.com/efoxTeam/emp-react-template.git",
"vue2":"https://github.com/efoxTeam/emp-vue2-template.git"
}
emp dev
Development
emp dev --hot
Hot updateemp dev --open
Open the development pageemp dev -rm
Pull the remote declaration file into the src
directory
{
"remoteBaseUrlList": [
{
"url": "https://com/index.d.ts",
"name": "project.d.ts"
}
]
}
emp build
Build
emp build --env
Specify the deployment environmentemp build --analyze
Analyzeemp build --ts
Build the production environment, generate index.d.ts
to dist
directory at the same time
emp build --ts -p [types path] -n [types name]
types path
default relative path is dist
、types name
default type file name is index.d.ts
emp tsc
generate index.d.ts
to dist
directory
emp build --ts -p [types path] -n [types name]
types path
default relative path is dist
、types name
default type file name is index.d.ts
emp tss <remote-url>
Synchronization remote type
emp tss <remote-url> -p [types path] -n [types name]
types path
default relative path is src
、types name
default type file name is empType.d.ts
emp serve
Formal service
emp
help
emp dist:ts
Synchronize local declaration files to subprojects
emp tsc && emp dist:ts && emp dev
{
"childPath": [
{
"path": "project",
"name": "xxx.d.ts"
},
{
"path": "/User/project",
"name": "xxx.d.ts"
}
]
}
emp-plugin-*
, cli.js
is the emp global plugin entry.emp-plugin-
as the project prefix, and the plugin entry is cli.js
module.exports = program => {
program
.command('helloWorldPlugin')
.option('-i, --item <item>')
.description([
`It is plugin description`,
])
.action(({item}) => {
console.log(`Plugin ${item}`)
})
}
yarn
:
yarn global add emp-plugin-example
npm
:
npm install emp-plugin-example -g
Start emp under the command to use the plugin
process.env.EMP_ENV
emp dev --env prod
Set up to distinguish the deployment environment , use process.env.EMP_ENV
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true // eslint Auto format
},
"typescript.tsdk": "node_modules/typescript/lib", // ts css module type check
"typescript.enablePromptUseWorkspaceTsdk": true // ts css module type check
}
FAQs
> Base on Webpack5 Module Federation Micro Frontends solution!
We found that @efox/emp-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 17 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.