# @visual-framework/vf-frctl-extensions

> Reusable componentised code, modules and config for Visual Framework based projects using Fractal.

Latest version **2.0.0** (published 2021-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install @visual-framework/vf-frctl-extensions
pnpm add @visual-framework/vf-frctl-extensions
yarn add @visual-framework/vf-frctl-extensions
bun add @visual-framework/vf-frctl-extensions
```

## Health

**Score 30/100 (F)** — status: abandoned.

Positive: no vulnerabilities; high maintenance score.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-11-23 |
| First published | 2020-08-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 28 |
| Author | Ken Hawkins |
| Maintainers | khawkins98 |
| Keywords | visual, framework, vf, eleventy, fractal |

## Links

- npm: https://www.npmjs.com/package/@visual-framework/vf-frctl-extensions
- Repository: https://github.com/visual-framework/vf-core
- Homepage: https://github.com/visual-framework/vf-core#readme
- Issues: https://github.com/visual-framework/vf-core/issues
- npm.io page: https://npm.io/package/@visual-framework/vf-frctl-extensions

## Alternatives

- [@sveltejs/kit](https://npm.io/package/@sveltejs/kit.md) — 2.2M weekly downloads
- [@atlaskit/theme](https://npm.io/package/@atlaskit/theme.md) — 402.0K weekly downloads
- [@tangle-network/brand](https://npm.io/package/@tangle-network/brand.md) — 10.0K weekly downloads
- [seneca](https://npm.io/package/seneca.md) — 7.4K weekly downloads
- [@bsb/base](https://npm.io/package/@bsb/base.md) — 7.2K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2021-11-23
- 1.0.1 — 2021-03-24
- 1.0.0-alpha.2 — 2020-08-10
- 1.0.0-alpha.1 — 2020-08-10

## README

[![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/EMBL/EMBL-Visual-Framework)


**👋 Downloading or cloning this repo? 🛑**

Most won't need to clone this repo. Do so if you only wish to [develop the architecture](https://stable.visual-framework.dev/developing/) of the Visual Framework core or contribute a global component, otherwise [use one of the boilerplates or install a component directly](https://stable.visual-framework.dev/).

---

# The Visual Framework Core (`vf-core`)

[![npm version](https://badge.fury.io/js/%40visual-framework%2Fvf-core.svg)](https://badge.fury.io/js/%40visual-framework%2Fvf-core) [![This project is using Percy.io for visual regression testing.](https://percy.io/static/images/percy-badge.svg)](https://percy.io/EMBL/EMBL-Visual-Framework)

If you’re new to the Visual Framework system for life science websites: think of it as a Bootstrap but made for flexibility. The Visual Framework is highly modular for compatibility allowing for non-breaking use alongside other frameworks, like Bootstrap. So you can use components made elsewhere without breaking your site. [Learn more about the Visual Framework system here](https://stable.visual-framework.dev/).

This repo, for the "VF Core", is one part of that effort and — as the name suggests — is at the heart of all Visual Framework-based tools. The VF Core allows for extendable components and builds CSS, JS and other image-style assets.

<img src="README/intro_image.jpg" alt="Image of columns representing a metaphor for the VF Core" width="600" />

*Much like an arch-based design of a cistern, the `vf-core` supports complex systems with a flexible space inside. (For those that didn’t guess it, this is a photo of the Basilica Cistern; [Image by Clint on Flickr](https://www.flickr.com/photos/amberandclint/4086669134/in/photolist-7e8fmE-nGAs7L-5ANpRm-bbDtk2-8fW4a-eZi5N3-5RRtw5-3KvouK-6K6fLC-48S7Tv-m1BVz9-77ZEvU-58GPp8-6ygYZw-5ANs87-5ANp2Q-48S9K6-gr8bps-evst93-7Vyo1U-evpjTg-e1EWNm-dUwmxf-q4ZFUa-auYW6V-7fFJXo-bstDTF-euKd7K-e9LAh3-5zSVSn-evpkb8-dtp995-5k2ATs-aj5HWY-8jbFnQ-MGp6W-57mU2S-bAKj6C-djW5iW-HVYU44-buCcrw-e6JLkQ-djW4bp-7DHGCa-av2Auo-28gPqDR-ea68SD-48S8hT-btjZH8-48W95A/))*

In short: The VF Core is a base to build systems.

<img src="README/diagram.svg" alt="Schematic of VF Core" />

*Here’s that column metaphor translates as a schematic of relationships for VF Core.*

The `vf-core` is built with:

- [Fractal](https://fractal.build/) for component structure
- Node and Gulp; to:
    - rollup JavaScript and handle assets
    - allow custom Sass/CSS components to be added to local projects
- [Dart Sass](https://github.com/sass/dart-sass)
- [Yeoman](https://yeoman.io/) to make custom components interactively
- [Yarn](https://yarnpkg.com/) to install components
- [Nunjucks](https://mozilla.github.io/nunjucks/templating.html) for component templates
- [Lerna](https://lerna.js.org/) to publish components to npm as a [mono-repo](https://www.toptal.com/front-end/guide-to-monorepos/)
- Name-spacing for JavaScript and CSS; more on that in [the coding standards](https://stable.visual-framework.dev/developing/#guidelines)

## Making use of the VF Core

[Here's a guide with the most common approaches](https://stable.visual-framework.dev/building/).

## FAQ

[Here's a guide to the most common questions](https://stable.visual-framework.dev/#faq).

## Have a problem?

See the [troubleshooting guide](https://stable.visual-framework.dev/troubleshooting).

## Want to help develop?

Great. See the [development guide](https://stable.visual-framework.dev/developing/).

---

## Have opinions, ideas, concerns or want to get involved?

There are a few ways that we discuss and track ideas:

- ⚙️ Technical: [GitHub issues here](https://github.com/visual-framework/vf-core/issues) for implementing deeply technical and specific issues, like the Sass build process, browser bugs
- 🏢 E-mail: if you have a sweeping Big Idea™️, e-mail Ken Hawkins <ken.hawkins@embl.de>

## Kubernetes deployment

This repository now also includes a static nginx image and Kustomize manifests for Kubernetes deployment.

- `Dockerfile` builds the site from `tools/vf-component-library`
- `k8s/base` contains the shared deployment, service, and HPA
- `k8s/overlays/dev` sets a single-replica dev deployment
- `k8s/overlays/prod` sets a two-replica prod deployment

The deployment expects `WEB_IMAGE` to be substituted before apply, matching the templating approach used by `lro-website`.

---
_Source: https://npm.io/package/@visual-framework/vf-frctl-extensions · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
