
Product
Introducing Socket Firewall Enterprise: Flexible, Configurable Protection for Modern Package Ecosystems
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.
@efox/emp-cli
Advanced tools
Base on Webpack5 Module Federation Micro Frontends solution!
English | 简体中文
npx @efox/emp-cli initnpm 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.tsemp 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.tsemp 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.tsemp 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.jsmodule.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-examplenpm:
npm install emp-plugin-example -gStart emp under the command to use the plugin
process.env.EMP_ENVemp 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.

Product
Socket Firewall Enterprise is now available with flexible deployment, configurable policies, and expanded language support.

Security News
Open source dashboard CNAPulse tracks CVE Numbering Authorities’ publishing activity, highlighting trends and transparency across the CVE ecosystem.

Product
Detect malware, unsafe data flows, and license issues in GitHub Actions with Socket’s new workflow scanning support.