mostlyserious/craftcms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

mostlyserious/craftcms

Composer 安装命令:

composer create-project mostlyserious/craftcms

包简介

A Craft CMS Starter

README 文档

README

Documentation

Installation

composer create-project --no-install mostlyserious/craftcms $PROJECT_NAME

JavaScript Tooling

This template uses DDEV as the source of truth for JavaScript tooling:

  • .ddev/config.yaml installs Node 24 and enables Corepack
  • package.json pins pnpm@11.1.2 through the packageManager field
  • pnpm-lock.yaml is the shared dependency lockfile
  • pnpm-workspace.yaml installs native development-tool binaries for the current platform plus Darwin/Linux ARM64, so DDEV scripts and host IDE tooling can use the same dependency tree
  • run pnpm package-manager commands through DDEV with ddev pnpm ...
  • run package.json scripts through DDEV with ddev pnpm run ...

DDEV treats node_modules as an upload directory so Mutagen does not sync it. Run dependency installs through ddev pnpm ...; supportedArchitectures keeps the native binaries needed by the Linux container and common host IDE environments available from the same dependency tree.

If you pull changes that affect .ddev/config.yaml, run ddev mutagen reset before continuing when Mutagen is enabled for your local DDEV project.

Use DDEV as the source of truth for app/runtime behavior:

  • ddev craft ...
  • ddev pnpm install --frozen-lockfile to install JavaScript dependencies
  • ddev pnpm add ... and ddev pnpm remove ... for dependency changes
  • ddev pnpm run build to build assets inside DDEV
  • ddev pnpm run dev to start Vite inside DDEV
  • ddev pnpm run fmt for repo formatting, including Svelte files, inside DDEV
  • ddev pnpm run fmt:check to verify formatting without writing changes
  • ddev pnpm run lint to run Oxlint
  • ddev pnpm run check for full frontend validation, including TypeScript and Svelte diagnostics, inside DDEV
  • ddev pnpm test -- --run to run the Vitest suite once

This template also commits shared workspace settings for Zed and VS Code. VS Code users should install the recommended extensions when prompted. Editors use the same project dependency tree created by ddev pnpm install --frozen-lockfile.

This template does not require Bun, Vite Plus, ESLint, devcontainers, remote development features, dependency sync scripts, or a custom node_modules Docker volume to be productive in Zed, VS Code, or other IDEs.

Configuration Files

This project includes several configuration files that define code quality standards, build processes, and development tooling:

Code Quality & Linting

  • .editorconfig - Editor configuration for consistent code formatting across different editors and IDEs. Defines indentation, line endings, and character encoding standards.

  • oxlint.config.ts - Oxlint configuration for JavaScript, TypeScript, and Svelte script-block linting. Defines lint rules, plugins, and file-specific overrides for the frontend codebase.

  • oxfmt.config.ts - Oxfmt configuration for repository-wide formatting, including Svelte file formatting. Acts as the shared formatter source for CLI usage and editor integration.

  • pint.json - Laravel Pint configuration for PHP code formatting. Uses Laravel preset with additional rules for strict typing, ordered imports, and consistent code structure.

  • stylelint.config.ts - Stylelint configuration extending Hudochenkov's property order rules for CSS consistency.

Build & Development

  • vite.config.ts - Vite build configuration that handles:

    • Asset bundling and optimization
    • Development server setup with hot module replacement
    • Integration with Tailwind CSS, Svelte, and custom plugins
    • Path aliases for easier imports
    • Production build optimization with code splitting
  • tsconfig.json - TypeScript configuration defining:

    • Compilation targets and module resolution
    • Path mappings for project aliases ($lib, $css, $img, etc.)
    • Strict type checking rules
    • Include/exclude patterns for source files
  • package.json - Node.js package configuration containing:

    • Development and production dependencies
    • Vite scripts (dev, build)
    • Quality scripts (fmt, fmt:check, lint, check, test)
    • Project metadata and type module declaration

Development Workflow

These configuration files work together to provide:

  • Consistent code formatting and style enforcement
  • Modern JavaScript/TypeScript development with Svelte support
  • Optimized asset bundling and processing
  • Hot module replacement for rapid development
  • Production-ready builds with code splitting and optimization

mostlyserious/craftcms 适用场景与选型建议

mostlyserious/craftcms 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 50 次下载、GitHub Stars 达 1, 最近一次更新时间为 2025 年 07 月 22 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 mostlyserious/craftcms 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mostlyserious/craftcms 我们能提供哪些服务?
定制开发 / 二次开发

基于 mostlyserious/craftcms 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 50
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unlicense
  • 更新时间: 2025-07-22