
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@frctls/seabed
Advanced tools
Common build environment and shared React components for Fractal web applications
A sturdy base for web projects. Seabed is built on the philosophy that you should have full visibility and control over your development and build process, while keeping a set of base configurations and shared components between projects. You are encouraged to thouroughly read the generated configuration files.
This project was created as a common environment for Fractal web applications.
Node >= 10.13Yarnlast 2 versions> 1%Add Seabed to your project with yarn add @fractal/seabed.
yarn run seabed init to initialize your project with Seabed's default configurations.
Any previously existing files will be compared, and their replacement confirmed.
.browserslistrc // supported browsers
.eslintrc // ESLint rules
.gitattributes // GitHub support for proper JSX syntax highlighting in diffs
.gitignore // files ignored by git
.linguirc // LinguiJS configuration
.stylelintrc // stylelint rules
babel.config.js // Babel configuration
jest.config.js // Jest configuration
postcss.config.js // PostCSS configuration
production-configuration-server.js // Express server to test production builds
svgo.config.json // SVG Optimizer configuration
webpack.common.js // Webpack common configuration
webpack.development.js // Webpack development configuration (extends common)
webpack.production.js // Webpack production configuration (extends common)
src
├── assets
│  └── favicon.png // source image for favicon generation (transparent square PNG works best)
├── index.html // HTML template for React application to be rendered in
├── index.js // React application entry point
test
├── __mocks__
│  ├── fileMock.js // mock for file imports when running tests
│  └── styleMock.js // mock for stylesheet imports when running tests
└── test-helper.js // test helper with custom render function
You must create and maintain your own package.json file. These are the recommended scripts for development, building, testing, and i18n management.
{
"scripts": {
"start": "webpack-dev-server --config webpack.development.js",
"lint": "eslint src test",
"stylelint": "stylelint src/styles",
"test": "yarn i18n-compile && TZ=UTC NODE_ENV=test jest test",
"test:es-check": "yarn i18n-compile && dotenv -e .env.test yarn build && es-check es5 build/*.js",
"build": "NODE_ENV=production webpack -p --config webpack.production.js",
"test-build": "yarn i18n-compile && yarn build && node production-configuration-server.js",
"i18n-add-locale": "lingui add-locale",
"i18n-extract": "lingui extract",
"i18n-compile": "lingui compile"
},
}
stroke and fill values per import (with support for custom -svg-stroke and -svg-fill CSS properties)woff and woff2 fonts.po language catalog files (using @lingui/loader)src/assets/favicon.png@babel/plugin-proposal-optional-chaining@babel/proposal-class-properties@babel/plugin-proposal-export-default-from@babel/plugin-syntax-dynamic-importbabel-plugin-macrosbabel-plugin-transform-importsUsage of these components assumes that peerDependencies are installed:
reactreact-domprop-typesclassnamesConfirmation (uses Modal internally)DropdownMenuModalExternalLinkredux-form)CheckboxInputRadioGroupTextareaEach of the available stylesheets is built with theming and customization in mind. We use CSS custom properties to achieve this. The available properties for each of the stylesheets are defined under :root.
For maximum compatibility with mobile devices, a --mobile-viewport-height is used on "fullscreen" mobile components, like Modal. This properties defaults to 100vh if not defined.
base.scssimport "@frctls/seabed/dist/base.scss"
This file must be included before all others, but after reset / normalize.
card.scssimport "@frctls/seabed/dist/card.scss";
modal.scssimport "@frctls/seabed/dist/modal.scss";
dropdown-menu.scssimport "@frctls/seabed/dist/dropdown-menu.scss";
FAQs
Common build environment and shared React components for Fractal web applications
The npm package @frctls/seabed receives a total of 1 weekly downloads. As such, @frctls/seabed popularity was classified as not popular.
We found that @frctls/seabed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.