contributte / webpack-skeleton

🎁 Webpack 5 project skeleton based on Nette Framework (@nette) and Contributte (@contributte) libraries by @f3l1x.

Home Page:https://examples.contributte.org/webpack-skeleton/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Website πŸš€ contributte.org | Contact πŸ‘¨πŸ»β€πŸ’» f3l1x.io | Twitter 🐦 @contributte


Goal

Main goal is to provide webpack starter-kit project for Nette developers.

Demo

https://examples.contributte.org/webpack-skeleton/

Installation

You will need PHP 8.1+ and Composer.

Create project using composer.

composer create-project -s dev contributte/webpack-skeleton acme

Install Composer dependencies: composer install or make install

Install NPM dependencies: npm install or make install

Now you have application installed. It's time to run it.

Startup

Backend

The easiest way is to use php built-in web server.

php -S 0.0.0.0:8000 -t www

Or via make dev.

Then visit http://localhost:8000 in your browser.

Frontend

If you want to compile assets, call npm run start.

If you need watcher, call npm run watch, it will watch your codebase and rebuild assets.

If you want build for production, call npm run build.

If you want start webpack development server with HRM, call npm run dev, open http://localhost:8080 in your browser.

Or via make webpack.

Features

  • πŸ‘ Nette 3+
  • πŸ‘ Webpack 5+
    • πŸŽ‰ extracting JS to single bundle
    • πŸŽ‰ extracting CSS to single file
    • πŸŽ‰ more bundles (front/admin/vendor)
  • πŸ‘ Snippets
    • πŸŽ‰ few snippets
  • πŸ‘ Nette Form
    • πŸŽ‰ AJAX submitting
    • πŸŽ‰ form builder
      • empty value on control (@ in email)
      • validation rules (filled + email)
      • simple filter (transform email to lowercase)
      • onValidate / onSubmit / onSuccess
    • πŸŽ‰ manual rendering
      • success snippet / error snippet
      • required class on form-group
      • description on control

Screenshots

Development

See how to contribute to this package.

This package is currently maintaining by these authors.


Consider to support contributte development team. Also thank you for using this project.

About

🎁 Webpack 5 project skeleton based on Nette Framework (@nette) and Contributte (@contributte) libraries by @f3l1x.

https://examples.contributte.org/webpack-skeleton/

License:MIT License


Languages

Language:JavaScript 38.9%Language:Latte 26.3%Language:PHP 23.8%Language:Makefile 10.7%Language:CSS 0.3%