webrouse/n-sandbox

Extended nette/sandbox with integrated gulp, es6, nittro, sass, browsersync, ...

Installs: 56

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 4

Forks: 0

Language:JavaScript

Type:project

v0.1 2017-10-02 12:11 UTC

This package is auto-updated.

Last update: 2024-11-12 18:22:26 UTC


README

Latest stable Donate

This is an extended version of nette/sandbox focused on fast development with modern PHP and JS tools.

Wiki explains how to use present technologies with Nette Framework.

This sandbox is currently based on Nette 2.4 due to incompatibility of some extensions with Nette 3.

Requirements

Quick start

Install the gulp command

sudo npm install --global gulp-cli

Create a new project using composer

composer create-project webrouse/n-sandbox path/to/install
cd path/to/install

Install JavaScript dependencies using npm

npm install

Run serve task and profit

gulp serve

Visit http://localhost:3000/checker to check minimal requirements, if some issues, install the missing extensions.

Visit http://localhost:3000 in your browser to see the welcome page.

The serve task:

  • includes default and watch tasks
  • checks coding standards for php, js and scss files
  • compiles js, scss files and other assets
  • runs the PHP built-in webserver on localhost:8000 using project php.ini
  • runs Browsersync server on localhost:3000 that proxy requests to the PHP server
  • watches for changes and then check + recompile assets

You can append --silent to suppress unnecessary output

gulp serve --silent

You can append --fix flag to automatically fix coding standards issues:

gulp --fix
gulp lint --fix
gulp serve --fix

To one-shot assets check and compilation run the default task:

gulp

For more information, see Tutorial or List of all tasks.

What's inside?

Documentation

Wiki explains how to use present technologies and tools.

Contributing

Any improvements to the code or documentation are welcome.

The goal is to create a skeleton that allows comfortable development without affecting the application speed.

Todo

Create test for each Gulp task with shunit2.

License

Nette: New BSD License or GPL 2.0 or 3.0