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.
@rebox/web
Advanced tools
Set of helpers to deal with React applications using our Babel config.
$ yarn add @rebox/web
type TBuildWebAppReleaseOptions = {
entryPointPath: string,
htmlTemplatePath: string,
outputPath: string,
browsersList?: string[], // ['defaults'] by default
globalConstants?: {
[key: string]: string
},
globalAliases?: {
[key: string]: string
},
props?: TJsonValue,
isQuiet?: boolean, // false by default
shouldGenerateSourceMaps?: boolean, // false by default
shouldGenerateBundleAnalyzerReport?: boolean // false by default
}
const buildWebAppRelease: (userOptions: TBuildWebAppReleaseOptions) => Promise<void>
type TRunWebAppOptions = {
entryPointPath: string,
htmlTemplatePath: string,
browsersList?: string[], // ['last 1 Chrome version', 'last 1 Firefox version'] by default
assetsPath?: string,
props?: TJsonValue,
isQuiet?: boolean, // false by default
shouldOpenBrowser?: boolean // false by default
}
const runWebApp: (options: TRunWebAppOptions) => Promise<() => Promise<void>>
// App.tsx
import { FC } from 'react'
export type TApp = {
color: string
}
export const App: FC<TApp> = ({ color }) => (
<h1 style={{ color }}>Test</h1>
)
<!-- template.html -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>Test</title>
<style>
body { margin: 0 }
</style>
</head>
<body>
<div id="root"></div>
</body>
</html>
// build.ts
import { buildWebAppRelease } from '@rebox/web'
await buildWebAppRelease({
entryPointPath: './App.tsx',
htmlTemplatePath: './template.html',
outputPath: './build/',
props: {
color: '#ff0000'
}
})
// run.ts
import { runWebApp } from '@rebox/web'
await runWebApp({
entryPointPath: './App.tsx',
htmlTemplatePath: './template.html',
props: {
color: '#ff0000'
}
})
FAQs
Set of helpers to deal with React applications using our Babel config
We found that @rebox/web demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.