
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
@spryker/oryx-for-zed
Advanced tools
Spryker ZED frontend automation tool (oryx based)
For more info about oryx, click here.
This is an extension of oryx that performs a full build for Spryker Zed UI applications.
It also provides access to Zed settings and Zed webpack
configuration, so you are able
to extend/change the whole building process.
nodejs
version 6.x LTSnpm
version >= 3.x or yarn
version >= 0.19.xYou need to add oryx-for-zed to your package.json
;
open the terminal, go to your project root folder and type:
npm install @spryker/oryx-for-zed --save-dev
# or
yarn add @spryker/oryx-for-zed --dev
oryx-for-zed comes with a peer dependency:
oryx
version >= 0.3.xOnce installed, you can:
webpack
configuration for your custom Zed buildThe easiest way to run oryx-for-zed is to add a script to your package.json
:
{
"scripts": {
"build-zed": "node ./node_modules/@spryker/oryx-for-zed/build"
}
}
Then just open the terminal and type:
npm run build-zed
# or
yarn run build-zed
If you want to customise settings, just rely on onyx-for-zed API. The following example shows how to create a custom build.
Create a build.js
file in your project containing your custom settings
and the logic needed to get the webpack
configuration and run the builder:
const oryx = require('@spryker/oryx');
const oryxForZed = require('@spryker/oryx-for-zed');
const myCustomZedSettings = Object.assign({}, oryxForZed.settings, {
// your own settings
});
const configuration = oryxForZed.getConfiguration(myCustomZedSettings);
oryx.build(configuration);
Add a script into your package.json
pointing to build.js
.
{
"scripts": {
"build-zed": "node ./path/to/build"
}
}
webpack
configurationIf you want to customise the webpack
configuration, just rely on onyx-for-zed API.
The following example shows how to create a custom build.
Create a webpack.config.js
file in your project containing
your webpack
custom configuration:
const oryxForZed = require('@spryker/oryx-for-zed');
const oryxConfiguration = oryxForZed.getConfiguration(oryxForZed.settings);
const myCustomZedConfiguration = Object.assign({}, oryxConfiguration, {
// your own configuration
});
module.exports = myCustomZedConfiguration;
Create a build.js
file in your project containing your webpack
configuration
and the logic needed to run the builder:
const oryx = require('@spryker/oryx');
const myCustomZedConfiguration = require('./webpack.config.js');
oryx.build(myCustomZedConfiguration);
Add a script into your package.json
pointing to build.js
.
{
"scripts": {
"build-zed": "node ./path/to/build"
}
}
oryxForZed.settings
Contain all the basic setting used in the webpack
configuration.
Look here (code) for more details.
oryxForZed.getConfiguration(settings)
Return the default Zed webpack
configuration, based on provided settings
.
Look here (code) for more details.
oryx-for-zed uses some arg to customise the build process. You can pass them using the terminal:
npm run script-name -- --arg
# or
yarn run script-name -- --arg
Or embedding them into the script section in package.json
:
{
"scripts": {
"build-zed": "node ./node_modules/@spryker/oryx-for-zed/build --arg"
}
}
--dev
: development mode; enable webpack
watchers on the code--prod
: production mode; enable assets optimisation/compression--boost
: build boost mode (experimental); build assets using eval
source mapsIf no arg is passed, development is activated but without watchers.
0.5.5 (beta)
Released on 29.03.2017
FAQs
Spryker ZED frontend automation tool
The npm package @spryker/oryx-for-zed receives a total of 4,642 weekly downloads. As such, @spryker/oryx-for-zed popularity was classified as popular.
We found that @spryker/oryx-for-zed demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.