2017 © Pedro Peláez
 

project n-sandbox

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

image

webrouse/n-sandbox

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

  • Sunday, February 25, 2018
  • by webrouse
  • Repository
  • 6 Watchers
  • 11 Stars
  • 37 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 2 Versions
  • 3 % Grown

The README.md

n-sandbox

Latest stable Donate, (*1)

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

Wiki explains how to use present technologies with Nette Framework., (*3)

This sandbox is currently based on Nette 2.4 due to incompatibility of some extensions with Nette 3., (*4)

Requirements

Quick start

Install the gulp command, (*5)

sudo npm install --global gulp-cli

Create a new project using composer, (*6)

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

Install JavaScript dependencies using npm, (*7)

npm install

Run serve task and profit, (*8)

gulp serve

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

Visit http://localhost:3000 in your browser to see the welcome page., (*10)

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, (*11)

You can append --silent to suppress unnecessary output, (*12)

gulp serve --silent

You can append --fix flag to automatically fix coding standards issues:, (*13)

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

To one-shot assets check and compilation run the default task:, (*14)

gulp

For more information, see Tutorial or List of all tasks., (*15)

What's inside?

The Versions