Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
@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/compressionIf no arg is passed, development is activated but without watchers.
FAQs
Spryker ZED frontend automation tool
The npm package @spryker/oryx-for-zed receives a total of 6,021 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 0 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.