Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Create, test and publish Zeplin extensions with no build configuration. ⚗️🦄
You can run Zeplin Extension Manager directly to create an extension:
npx zem create my-extension
You can also use -y
option to create package with default configuration.
npx zem create my-extension -y
Extensions created using the manager have built-in scripts to ease development, build, test and publish processes. No need to setup tools like Webpack or Babel—they are preconfigured and hidden by the manager.
npm start
Starts a local server, serving the extension (by default, at http://localhost:7070). Hostname, port and the list of hosts allowed to access the local server can be provided as options.
Follow the tutorial to learn how to add a local extension to a Zeplin project.
Usage: npm start -- [options]
Options:
-h --host <host> Host name (default: localhost)
-p --port <port> Port (default: 7070)
-a --allowed-hosts <allowed-hosts> Allowed hosts
npm run build
Builds extension source, creating resources targeting production environment.
Usage: npm run build -- [options]
Options:
-d --dev Target development environment
npm run exec
Executes extension function(s) with sample data.
This is a super useful script to debug and test your extension, without running in it Zeplin.
Usage: npm run exec -- [function-name] [options]
Options:
--no-build Use existing build.
--defaults <default-options> Set default extension option values (e.g, flag=false,prefix=\"pre\")
npm run test
Runs test scripts via Jest. Extension packages created using zem include a boilerplate test module. It uses Jest's snapshot testing feature to match the output of your extensions with the expected results. For example, you can take a look at our React Native extension.
Usage: npm run test -- [options]
You can check Jest's docs for options.
npm run clean
Cleans build directory.
npm run publish
Publish extension, sending it for review to be listed on extensions.zeplin.io.
Usage: npm run publish -- [options]
Options:
--path <build-path> Path for the extension build to publish (default: Path used by the build command)
Zeplin Extension Manager can authenticate using an access token instead of your Zeplin credentials which makes it easier to integrate it into your CI workflow.
zem
access token from your Profile in Zeplin.ZEM_ACCESS_TOKEN
environment variable in your CI.webpack.zem.js
at your root to customize webpack config. The module should export a function
that takes current webpack config as an argument and return customized webpack config. For example:module.exports = function({ module: { rules, ...module }, ...webpackConfig }) {
return {
...webpackConfig,
resolve: {
extensions: [".ts"]
},
module: {
...module,
rules: [
{
test: /\.tsx?$/,
use: "ts-loader",
exclude: /node_modules/,
},
...rules,
],
},
};
};
Similar to zem, Zero lets you quickly start working on a Zeplin extension with Webpack.
FAQs
Create, test and publish Zeplin extensions with no build configuration
The npm package zem receives a total of 1,078 weekly downloads. As such, zem popularity was classified as popular.
We found that zem demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.