Skip to content

MvcCore empty template project skeleton for portable packing/building.

License

Notifications You must be signed in to change notification settings

mvccore/project-portable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MvcCore - Project - Template For Portable Packing

Latest Stable Version License Packager Build PHP Version

  • MvcCore empty template project skeleton for portable packing/building.
  • Project is configured to pack with Packager in strict package mode but is possible to reconfigure it to any mixed mode with hard drive.
  • All assets has to be hardly linked for strict package mode with MvcCore Extension - View Helper Assets.

Instalation

# load MvcCore project template skeleton for portable packing/building
composer create-project mvccore/project-portable ./my-portable-project

# go to project root dir
cd my-portable-project

# load MvcCore basic website project template for portable packing/building
composer create-project mvccore/project-basic-portable development

# ... now you can do anything in development dir

Build

1. Prepare application

  • go to my-portable-project-structure/development
  • clear everything in ./Var/Tmp/
  • uncomment ->SetCompiled(\MvcCore\Application::COMPILED_SFU) in ./index.php
  • visit all application routes where are different JS/CSS bundles groups to generate ./Var/Tmp/ content for result app
  • run build process

2. Build

Linux:

# go to project root dir
cd ./my-portable-project/build
# run build process into single PHP file
sh make.sh

Windows:

# go to project root dir
cd ./my-portable-project/build
# run build process into single PHP file
make.cmd

Browser:

# visit script `make-php.php` in your project root directory:
http://localhost/my-portable-project/build/make-php.php

Result