├── .editorconfig ├── .gitignore ├── CHANGELOG.md ├── LICENSE.txt ├── README.devel.txt ├── composer.json ├── phpunit.xml ├── src └── JSMin │ ├── JSMin.php │ ├── UnterminatedCommentException.php │ ├── UnterminatedRegExpException.php │ └── UnterminatedStringException.php ├── tests ├── JSMinTest.php ├── Resources │ └── minify │ │ ├── actual │ │ └── .gitkeep │ │ ├── expected │ │ ├── before.js │ │ ├── class.js │ │ ├── comment.js │ │ ├── condcomm.js │ │ ├── control-chars.js │ │ ├── es6-literal.js │ │ ├── issue144.js │ │ ├── issue256.js │ │ ├── keyword-regex.js │ │ ├── not-regexp.js │ │ ├── regexes.js │ │ ├── starts-regex.js │ │ ├── tab-in-comment.js │ │ └── token-regexp.js │ │ └── input │ │ ├── before.js │ │ ├── class.js │ │ ├── comment.js │ │ ├── condcomm.js │ │ ├── control-chars.js │ │ ├── es6-literal.js │ │ ├── issue144.js │ │ ├── issue256.js │ │ ├── keyword-regex.js │ │ ├── not-regexp.js │ │ ├── regexes.js │ │ ├── starts-regex.js │ │ ├── tab-in-comment.js │ │ └── token-regexp.js ├── TestCase.php └── bootstrap.php └── web ├── README.txt └── index.php /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/.gitignore -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/LICENSE.txt -------------------------------------------------------------------------------- /README.devel.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/README.devel.txt -------------------------------------------------------------------------------- /composer.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/composer.json -------------------------------------------------------------------------------- /phpunit.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/phpunit.xml -------------------------------------------------------------------------------- /src/JSMin/JSMin.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/src/JSMin/JSMin.php -------------------------------------------------------------------------------- /src/JSMin/UnterminatedCommentException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/src/JSMin/UnterminatedCommentException.php -------------------------------------------------------------------------------- /src/JSMin/UnterminatedRegExpException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/src/JSMin/UnterminatedRegExpException.php -------------------------------------------------------------------------------- /src/JSMin/UnterminatedStringException.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/src/JSMin/UnterminatedStringException.php -------------------------------------------------------------------------------- /tests/JSMinTest.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/JSMinTest.php -------------------------------------------------------------------------------- /tests/Resources/minify/actual/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Resources/minify/expected/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/before.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/class.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/comment.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Resources/minify/expected/condcomm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/condcomm.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/control-chars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/control-chars.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/es6-literal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/es6-literal.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/issue144.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/issue144.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/issue256.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/issue256.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/keyword-regex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/keyword-regex.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/not-regexp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/not-regexp.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/regexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/expected/regexes.js -------------------------------------------------------------------------------- /tests/Resources/minify/expected/starts-regex.js: -------------------------------------------------------------------------------- 1 | /return/.test(bar); -------------------------------------------------------------------------------- /tests/Resources/minify/expected/tab-in-comment.js: -------------------------------------------------------------------------------- 1 | console.log(1); -------------------------------------------------------------------------------- /tests/Resources/minify/expected/token-regexp.js: -------------------------------------------------------------------------------- 1 | typeof[/return/]; -------------------------------------------------------------------------------- /tests/Resources/minify/input/before.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/before.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/class.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/class.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/comment.js: -------------------------------------------------------------------------------- 1 | // test -------------------------------------------------------------------------------- /tests/Resources/minify/input/condcomm.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/condcomm.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/control-chars.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/control-chars.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/es6-literal.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/es6-literal.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/issue144.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/issue144.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/issue256.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/issue256.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/keyword-regex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/keyword-regex.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/not-regexp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/not-regexp.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/regexes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/regexes.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/starts-regex.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/starts-regex.js -------------------------------------------------------------------------------- /tests/Resources/minify/input/tab-in-comment.js: -------------------------------------------------------------------------------- 1 | // Hello, World! 2 | console.log(1); 3 | -------------------------------------------------------------------------------- /tests/Resources/minify/input/token-regexp.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/Resources/minify/input/token-regexp.js -------------------------------------------------------------------------------- /tests/TestCase.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/TestCase.php -------------------------------------------------------------------------------- /tests/bootstrap.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/tests/bootstrap.php -------------------------------------------------------------------------------- /web/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/web/README.txt -------------------------------------------------------------------------------- /web/index.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mrclay/jsmin-php/HEAD/web/index.php --------------------------------------------------------------------------------