artisan-build/laravel-nodeless 问题修复 & 功能扩展

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

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

artisan-build/laravel-nodeless

Composer 安装命令:

composer create-project artisan-build/laravel-nodeless

包简介

A Laravel Livewire starter kit with no Node, npm, Vite, or frontend build step.

README 文档

README

Laravel Nodeless is a Laravel starter kit for building Livewire applications without a frontend build system.

It starts from Laravel's official Livewire starter kit, then removes Node, npm, Vite, Tailwind compilation, and all related CI steps. The result is a PHP-first application scaffold that can be installed, developed, tested, and deployed with Composer and Laravel tooling only.

Philosophy

Laravel is productive because the framework gives you a cohesive, batteries-included path for building server-rendered applications. This starter kit keeps that path intentionally small:

  • No Node runtime requirement.
  • No npm install step.
  • No Vite dev server.
  • No frontend build step in local development, CI, or deployment.
  • Livewire and Flux remain the primary UI layer.
  • Static CSS, JavaScript, and fonts are checked in under public/build and served directly by Laravel.

This tradeoff is deliberate. You give up an editable Tailwind/Vite pipeline in exchange for a starter kit that works in PHP-only environments and has fewer moving parts.

What's Included

  • Laravel 13
  • Livewire 4
  • Flux 2
  • Fortify authentication
  • Two-factor authentication
  • Passkey support
  • Prebuilt Tailwind/Flux assets served from public/build

What's Removed

  • package.json
  • package-lock.json
  • node_modules
  • vite.config.js
  • resources/css/app.css
  • resources/js/*
  • npm and Vite steps from Composer scripts and GitHub Actions

Getting Started

Install dependencies and prepare the application:

composer install
cp .env.example .env
php artisan key:generate
php artisan migrate

Run the development server:

php artisan serve

Run the test suite:

php artisan test

Composer Scripts

This starter kit includes an opinionated Composer workflow for keeping Laravel applications ready to ship:

  • composer setup installs dependencies, creates .env, generates the app key, and runs migrations.
  • composer dev starts Laravel's local development server without Vite or Node.
  • composer lint runs Laravel Pint and fixes PHP style issues.
  • composer test:lint runs Laravel Pint in check-only mode.
  • composer lint:check is an alias for the check-only Pint run.
  • composer rector runs Rector with the Laravel code quality, collection, and Laravel level sets.
  • composer stan runs PHPStan through Larastan at level 6.
  • composer test clears cached config, checks PHP formatting, and runs the Laravel test suite.
  • composer ide-helper regenerates Laravel IDE Helper files and model mixins.
  • composer ready runs IDE helper generation, Rector, Pint, PHPStan, tests, and Composer audit.
  • composer report runs Rector, Pint, PHPStan, tests, and Composer audit as a non-blocking report.
  • composer ci:check runs the default project test check used by this starter kit.
  • php artisan fresh resets the database to a fresh, seeded state. You can add additional steps to set your application up for local development.
  • php artisan flux:pro installs Flux Pro by adding the Flux Pro Composer repository and requiring livewire/flux-pro. This assumes your Flux Pro credentials are already saved globally; if they are not, run php artisan flux:activate instead.

Working With Assets

The starter kit intentionally does not require a source asset pipeline. Application CSS, font CSS, fonts, and the passkey browser helper are committed as static files in public/build/assets.

By default, there is still no frontend build step. The application loads public/build/assets/app.css, public/build/assets/fonts.css, and public/build/assets/passkeys.js directly.

If CSS size matters or you add Tailwind classes and want to regenerate the checked-in CSS, run the opt-in optimizer:

php artisan tailwind:optimize

The command downloads the standalone Tailwind CSS CLI for your operating system, caches it under storage/app/tools, scans the configured Tailwind sources, and writes the optimized output to public/build/assets/app.css. It does not require Node, npm, or Vite, and it is not part of the default setup or CI workflow.

You can force a fresh CLI download or change paths when needed:

php artisan tailwind:optimize --force-download
php artisan tailwind:optimize --tailwind-version=v4.3.0
php artisan tailwind:optimize --input=resources/css/tailwind.css --output=public/build/assets/app.css

Repository

This project lives at artisan-build/laravel-nodeless.

artisan-build/laravel-nodeless 适用场景与选型建议

artisan-build/laravel-nodeless 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 06 月 09 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「framework」 「laravel」 「livewire」 「nodeless」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

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

围绕 artisan-build/laravel-nodeless 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-09