定制 helsingborg-stad/styleguide 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

helsingborg-stad/styleguide

最新稳定版本:2.235.6

Composer 安装命令:

composer require helsingborg-stad/styleguide

包简介

README 文档

README

Contributors Forks Stargazers Issues License

Logo

Styleguide


Report Bug · Request Feature

Summary

The style guide is intended for websites within Helsingborgs stad / Municipio Websites and others who use our platform. The guide provides examples, markup and themes for our standardized components. The Helsingborg Styleguide is a flexible and minimalistic component-based framework built in the BEM standard & designed around the Atomic Design principle.

Requirements

Installation

  1. Clone the repo:
git clone git@github.com:helsingborg-stad/styleguide.git
  1. Run the build script in the cloned project:
cd styleguide && php build.php

Development

  1. Start by running the steps under Installation.
  2. Run webpack in watch-mode:
npm run watch

Testing

Jest is used as testing framework for JavaScript in the StyleGuide.

Test files should be added adjacent to the file that is the subject fo testing. Naming convention for test files is to use the same name as the file that is subject for testing and be appended with ".test.js" or "test.ts". The ".ts" file ending enables some IDE's, like VS Code, to add intellisense for Jest.

Example file accompanied by test file

source/js
├── gallery.js
├── gallery.test.ts

Test scripts

  • Run tests:
    npm test
  • Runs tests in file watch mode:
    npm run test:dev

VS Code Devcontainer & Codespaces

Configuration for Codespaces is available and to get it up and running do the following after opening a Codespace:

  1. Run task Setup.
  2. Run task Serve.

License

Distributed under the MIT License.

Acknowledgements

统计信息

  • 总下载量: 542
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 3
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 8
  • Forks: 5
  • 开发语言: SCSS

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-03-02

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固