{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12817","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12817/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12817/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12817/events","html_url":"https://github.com/yiisoft/yii2/issues/12817","id":184797852,"number":12817,"title":"Cannot create min assets for yii2 project","user":{"login":"demid1984","id":4945844,"avatar_url":"https://avatars.githubusercontent.com/u/4945844?v=3","gravatar_id":"","url":"https://api.github.com/users/demid1984","html_url":"https://github.com/demid1984","followers_url":"https://api.github.com/users/demid1984/followers","following_url":"https://api.github.com/users/demid1984/following{/other_user}","gists_url":"https://api.github.com/users/demid1984/gists{/gist_id}","starred_url":"https://api.github.com/users/demid1984/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/demid1984/subscriptions","organizations_url":"https://api.github.com/users/demid1984/orgs","repos_url":"https://api.github.com/users/demid1984/repos","events_url":"https://api.github.com/users/demid1984/events{/privacy}","received_events_url":"https://api.github.com/users/demid1984/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-24T10:00:42Z","updated_at":"2016-10-24T10:48:40Z","closed_at":"2016-10-24T10:48:40Z","body":"### What steps will reproduce the problem?\r\nI create an empty project by command \r\n`composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic`\r\n\r\nCreate empty template by command\r\n`yii asset/template assets.php`\r\n\r\nChange template to\r\n```\r\n<?php\r\nYii::setAlias('@webroot', __DIR__ . '/web');\r\nYii::setAlias('@web', '/');\r\n\r\nreturn [\r\n    // Adjust command/callback for JavaScript files compressing:\r\n    'jsCompressor' => 'closure-compiler --js {from} --js_output_file {to}',\r\n    // Adjust command/callback for CSS files compressing:\r\n    'cssCompressor' => 'yui-compressor --type css {from} -o {to}',\r\n    // Whether to delete asset source after compression:\r\n    'deleteSource' => false,\r\n    // The list of asset bundles to compress:\r\n    'bundles' => [\r\n        'app\\assets\\AppAsset',\r\n        'yii\\web\\YiiAsset',\r\n        'yii\\web\\JqueryAsset',\r\n        'yii\\bootstrap\\BootstrapPluginAsset',\r\n        'yii\\widgets\\ActiveFormAsset',\r\n        'yii\\grid\\GridViewAsset',\r\n        'yii\\widgets\\PjaxAsset',\r\n    ],\r\n    // Asset bundle for compression output:\r\n    'targets' => [\r\n        'all' => [\r\n            'class' => 'yii\\web\\AssetBundle',\r\n            'basePath' => '@webroot/assets',\r\n            'baseUrl' => '@web/assets',\r\n            'js' => 'js/all-{hash}.js',\r\n            'css' => 'css/all-{hash}.css',\r\n        ],\r\n    ],\r\n    // Asset manager configuration:\r\n    'assetManager' => [\r\n        'basePath' => '@webroot/assets',\r\n        'baseUrl' => '@web/assets',\r\n    ],\r\n];\r\n?>\r\n```\r\n### What is the expected result?\r\nRun command\r\n`yii asset assets.php config/assets-prod.php`\r\n\r\nShow js-errors\r\n```\r\nLoading configuration from 'assets.php'...\r\nCollecting source bundles information...\r\nCreating output bundle 'all':\r\n  Compressing JavaScript files...\r\n...tmp/web/assets/js/all-temp.js.tmp:8243: ERROR - Parse error. missing name after . operator\r\n\t\t\t\t\tif ( conv && s.throws ) {\r\n\t\t\t\t\t               ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8244: ERROR - Parse error. syntax error\r\n\t\t\t\t\t\tresponse = conv( response );\r\n\t\t\t\t\t\t         ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8263: ERROR - Parse error. missing ) after argument list\r\njQuery.extend( {\r\n^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8263: ERROR - Parse error. syntax error\r\njQuery.extend( {\r\n      ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8266: ERROR - Parse error. syntax error\r\n\tactive: 0,\r\n\t      ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8269: ERROR - Parse error. syntax error\r\n\tlastModified: {},\r\n\t            ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8270: ERROR - Parse error. syntax error\r\n\tetag: {},\r\n\t    ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8272: ERROR - Parse error. syntax error\r\n\tajaxSettings: {\r\n\t            ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8273: ERROR - Parse error. syntax error\r\n\t\turl: location.href,\r\n\t\t   ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8274: ERROR - Parse error. syntax error\r\n\t\ttype: \"GET\",\r\n\t\t    ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8275: ERROR - Parse error. syntax error\r\n\t\tisLocal: rlocalProtocol.test( location.protocol ),\r\n\t\t       ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8276: ERROR - Parse error. syntax error\r\n\t\tglobal: true,\r\n\t\t      ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8277: ERROR - Parse error. syntax error\r\n\t\tprocessData: true,\r\n\t\t           ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8278: ERROR - Parse error. syntax error\r\n\t\tasync: true,\r\n\t\t     ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8279: ERROR - Parse error. syntax error\r\n\t\tcontentType: \"application/x-www-form-urlencoded; charset=UTF-8\",\r\n\t\t           ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8292: ERROR - Parse error. syntax error\r\n\t\taccepts: {\r\n\t\t       ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8293: ERROR - Parse error. syntax error\r\n\t\t\t\"*\": allTypes,\r\n\t\t\t   ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8294: ERROR - Parse error. syntax error\r\n\t\t\ttext: \"text/plain\",\r\n\t\t\t    ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8295: ERROR - Parse error. syntax error\r\n\t\t\thtml: \"text/html\",\r\n\t\t\t    ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8296: ERROR - Parse error. syntax error\r\n\t\t\txml: \"application/xml, text/xml\",\r\n\t\t\t   ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8297: ERROR - Parse error. syntax error\r\n\t\t\tjson: \"application/json, text/javascript\"\r\n\t\t\t    ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8298: ERROR - Parse error. syntax error\r\n\t\t},\r\n\t\t ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8300: ERROR - Parse error. syntax error\r\n\t\tcontents: {\r\n\t\t        ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8301: ERROR - Parse error. syntax error\r\n\t\t\txml: /\\bxml\\b/,\r\n\t\t\t   ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8301: ERROR - Parse error. illegal character\r\n\t\t\txml: /\\bxml\\b/,\r\n\t\t\t      ^\r\n\r\n...tmp/web/assets/js/all-temp.js.tmp:8301: ERROR - Parse error. illegal character\r\n\t\t\txml: /\\bxml\\b/,\r\n\t\t\t       ^\r\n\r\n26 error(s), 0 warning(s)\r\n  JavaScript files compressed into '...tmp/web/assets/js/all-temp.js'.\r\n  Compressing CSS files...\r\n  CSS files compressed into '...tmp/web/assets/css/all-temp.css'.\r\n\r\nCreating new bundle configuration...\r\nOutput bundle configuration created at 'config/assets-prod.php'.\r\n```\r\n\r\n### Additional info\r\nPHP 5.5.9-1ubuntu4.20 (cli) (built: Oct  3 2016 13:00:37) \r\nCopyright (c) 1997-2014 The PHP Group\r\nZend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies\r\n    with Zend OPcache v7.0.3, Copyright (c) 1999-2014, by Zend Technologies\r\n\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 14.04.5 LTS\r\nRelease:\t14.04\r\nCodename:\ttrusty\r\n```\r\ncomposer global show\r\nfxp/composer-asset-plugin v1.2.2 NPM/Bower Dependency Manager for Composer\r\n```\r\n\r\nclosure-compiler --version\r\nVersion: 20130227\r\nBuilt on: 2015/09/23 16:16\r\n\r\nCan you help me to solve this problem, please?"}}
{"actor":{"display_login":"samdark"}}