5.0.0 • Published 4 years ago
@mvccore/debug-js v5.0.0
MvcCore - Debug - Javascripts
Node.JS builder to compile custom javascript for PHP MvcCore library debug bar (mvccore/mvccore).
Javascript files in current stable version 5.0 are compatible with MvcCore framework with version 4.x and 5.x.
Custom javascripts are compiled by Google Closure Compiller with advanced compilation.
Instalation
Go to directory, where is directory with mvccore/mvccore core source files
(https://github.com/mvccore/mvccore/tree/master/src/MvcCore) and run:
Windows
:: create new empty directory "mvccore-ext-debug-js"
mkdir mvccore-ext-debug-js
:: clone this repository into newly created folder
git clone https://github.com/mvccore/ext-debug-js mvccore-ext-debug-js
:: go to repository folder
cd mvccore-ext-debug-js
:: go to repository latest release (optional)
php -r "$a=shell_exec('git ls-remote --tags .');$b=explode('refs/tags/',$a);$c=trim($b[count($b)-1]);shell_exec('git checkout tags/'.$c);"
:: remove whole '.git' directory, git history (you don't need this repository history in your project repo)
rmdir /S /Q .git
:: load this node package dependencies
call npm update
:: call this node package install script
call node install.js
:: follow instructions on the screenLinux
#!/bin/bash
# create new empty directory "mvccore-ext-debug-js"
mkdir mvccore-ext-debug-js
# clone this repository into newly created folder
git clone https://github.com/mvccore/ext-debug-js mvccore-ext-debug-js
# go to repository folder
cd mvccore-ext-debug-js
# go to repository latest release (optional)
php -r "$a=shell_exec('git ls-remote --tags .');$b=explode('refs/tags/',$a);$c=trim($b[count($b)-1]);shell_exec('git checkout tags/'.$c);"
# remove whole '.git' directory, git history (you don't need this repository history in your project repo)
rm -r -f .git
# load this node package dependencies
sh -c "npm update"
# call this node package install script
sh -c "node install.js"
# follow instructions on the screenExtending and custom javascript development
- add, change or remove anything in "mvccore-ext-debug-js/src/*.js"
- configure output location in "mvccore-ext-debug-js/dev-tools/build.js"
- build your new javascript files
Building
Windows
cd mvccore-ext-debug-js/dev-tools
build.cmdLinux
cd mvccore-ext-debug-js/dev-tools
sh build.shConfiguration
- open file "mvccore-ext-form-js/dev-tools/build.js"
- edit lines 9 and 10 to change compiled result file
debug.htmldestination
5.0.0
4 years ago