@kitconcept/core

1.0.0-alpha.1 • Public • Published

kitconcept.core (core)

Core setup for kitconcept GmbH distributions built on top of Plone

npm CI

Features

Installation

To install your project, you must choose the method appropriate to your version of Volto.

Volto 18 and later

Add core to your package.json.

"dependencies": {
    "core": "*"
}

Add core to your volto.config.js.

const addons = ['core'];

If this package provides a Volto theme, and you want to activate it, then add the following to your volto.config.js.

const theme = 'core';

Volto 17 and earlier

Create a new Volto project. You can skip this step if you already have one.

npm install -g yo @plone/generator-volto
yo @plone/volto my-volto-project --addon core
cd my-volto-project

Add core to your package.json.

"addons": [
    "core"
],

"dependencies": {
    "core": "*"
}

Download and install the new add-on.

yarn install

Start Volto.

yarn start

Test installation

Visit http://localhost:3000/ in a browser, login, and check the awesome new features.

Development

The development of this add-on is done in isolation using pnpm workspaces, the latest mrs-developer, and other Volto core improvements. For these reasons, it only works with pnpm and Volto 18.

Prerequisites ✅

Installation 🔧

  1. Clone this repository, then change your working directory.

    git clone git@github.com:kitconcept/kitconcept-core.git
    cd kitconcept-core/frontend
  2. Install this code base.

    make install

Make convenience commands

Run make help to list the available Make commands.

Set up development environment

Install package requirements.

make install

Start developing

Start the backend.

make backend-docker-start

In a separate terminal session, start the frontend.

make start

Lint code

Run ESlint, Prettier, and Stylelint in analyze mode.

make lint

Format code

Run ESlint, Prettier, and Stylelint in fix mode.

make format

i18n

Extract the i18n messages to locales.

make i18n

Unit tests

Run unit tests.

make test

Run Cypress tests

Run each of these steps in separate terminal sessions.

In the first session, start the frontend in development mode.

make acceptance-frontend-dev-start

In the second session, start the backend acceptance server.

make acceptance-backend-start

In the third session, start the Cypress interactive test runner.

make acceptance-test

License

The project is licensed under the MIT license.

Package Sidebar

Install

npm i @kitconcept/core

Weekly Downloads

156

Version

1.0.0-alpha.1

License

MIT

Unpacked Size

21.9 kB

Total Files

23

Last publish

Collaborators

  • timostollenwerk
  • sneridagh
  • robgietema
  • jackahl
  • jonaspiterek
  • reebalazs
  • davisagli
  • ericof