@mvccore/debug-js

5.0.0 • Public • Published

MvcCore - Debug - Javascripts

Latest Stable Version License Google Closure Build

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 screen

Linux

#!/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 screen

Extending 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.cmd

Linux

cd mvccore-ext-debug-js/dev-tools
sh build.sh

Configuration

  • open file "mvccore-ext-form-js/dev-tools/build.js"
  • edit lines 9 and 10 to change compiled result file debug.html destination

Package Sidebar

Install

npm i @mvccore/debug-js

Weekly Downloads

2

Version

5.0.0

License

BSD-3

Unpacked Size

42.6 kB

Total Files

13

Last publish

Collaborators

  • tomas.flidr