
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
weex-rx-framework
Advanced tools
window
navigator
screen
location
fetchURL
URLSearchParams
alertdefinerequire__weex_downgrade____weex_data____weex_options____weex_define____weex_require__const webpack = require('webpack');
const RxPlugin = require('rx-webpack-plugin');
module.exports = {
target: 'node',
entry: {
// Entry name should ends with `.factory`
'your-module.factory' : './src/index.js',
},
output: {
path: './dist/',
filename: '[name].js',
},
plugins: [
new RxPlugin({
// Your could config builtinModules here
externalBuiltinModules: false,
builtinModules: RxPlugin.BuiltinModules,
});
],
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015', 'rx']
}
}]
}
}
Then publish module with factory build file to npm registry:
npm publish
Or link module in local:
npm link
builtin.js in framework sourceInstall builtin module from npm:
npm install your-module --save
Or link from local:
npm link your-module
Config builtin.js and add your custom builtin module:
export let BuiltinModulesFactory = {
'@universal/rx': require('universal-rx/dist/rx.factory'),
'@universal/env': require('universal-env/dist/env.factory'),
'@universal/transition': require('universal-transition/dist/transition.factory'),
// Add your builtin module
'your-module': require('your-module/dist/your-module.factory'),
};
const webpack = require('webpack');
const RxPlugin = require('rx-webpack-plugin');
module.exports = {
target: 'node',
entry: {
// Entry name should ends with `.framework`
'rx.framework': './packages/weex-rx-framework/src/index.js',
},
output: {
path: './packages/weex-rx-framework/dist/',
filename: '[name].js',
},
plugins: [
new RxPlugin();
],
module: {
loaders: [{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel', // 'babel-loader' is also a legal name to reference
query: {
presets: ['es2015']
}
}]
}
}
jsfm including weex-rx-framework?git clone git@github.com:alibaba/weex.git
cd weex
npm install
weex-rx-frameworkcd weex
npm install weex-rx-framework --save
weex-rx-frameworkUpdate html5/frameworks/index.js file with below content:
import * as Weex from './legacy/index'
import * as Rx from 'weex-rx-framework'
export default {
Rx,
Weex
}
jsfm for native renderer to dist/native.jsnpm run build:native
dist/native.js to weex-sdkcp -vf ./dist/native.js ./android/sdk/assets/main.js
cp -vf ./dist/native.js ./ios/sdk/WeexSDK/Resources/main.js
FAQs
Rx framework for weex.
The npm package weex-rx-framework receives a total of 55 weekly downloads. As such, weex-rx-framework popularity was classified as not popular.
We found that weex-rx-framework 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.