Skip to content

Commit

Permalink
Adjusted dependency versions to stable ones.
Browse files Browse the repository at this point in the history
  • Loading branch information
qiangxue committed Sep 19, 2014
1 parent 45a748a commit a819699
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 20 deletions.
14 changes: 7 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
"ext-mbstring": "*",
"lib-pcre": "*",
"yiisoft/yii2-composer": "*",
"yiisoft/jquery": "~2.0 | ~1.10",
"ezyang/htmlpurifier": "4.6.*",
"cebe/markdown": "0.9.*",
"bower-asset/jquery": ">=1.8",
"bower-asset/jquery.inputmask": ">=3.0.0",
"bower-asset/punycode": ">=1.3.0",
"bower-asset/yii2-pjax": ">=2.0.0",
"bower-asset/bootstrap": ">=3.0.0",
"bower-asset/jquery-ui": ">=1.10.0"
"bower-asset/jquery": "1.11.* | 2.1.*",
"bower-asset/jquery.inputmask": "3.1.*",
"bower-asset/punycode": "1.3.*",
"bower-asset/yii2-pjax": "2.0.*",
"bower-asset/bootstrap": "3.2.*",
"bower-asset/jquery-ui": "1.11.*",
"bower-asset/typeahead.js": "0.10.*"
},
"require-dev": {
"phpunit/phpunit": "3.7.*",
Expand Down
11 changes: 7 additions & 4 deletions extensions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,10 @@ To add a new extension named `xyz` (must be in lower case), take the following s
* `CHANGELOG.md`
* `LICENSE.md`
3. ask Qiang to create a subsplit for `xyz` and a composer package named `yii2-xyz`;
4. modify `/composer.json` and add `yiisoft/yii2-xyz` to the `replace` section;
5. If an extension contains js/css files or depends on external bower packages:
* create `bower.json`
* ask Qiang to register a bower package with the name `yii2-xyz`
4. If an extension depends on external bower/npm packages:
* in the `composer.json` file of the extension, list the dependencies in the format of `'bower-asset/PackageName': '1.1'`;
* create an asset bundle class to list the needed js/css files from the package. The `sourcePath`
property of the bundle should point to the distribution path of the package, such as
`@bower/PackageName`, or `@bower/PackageName/dist`.
5. modify `/composer.json` and add `yiisoft/yii2-xyz` to the `replace` section. Also add any bower/npm
dependencies to the `require` section.
2 changes: 1 addition & 1 deletion extensions/bootstrap/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"yiisoft/yii2": "*",
"bower-asset/bootstrap": ">=3.0.0"
"bower-asset/bootstrap": "3.2.*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion extensions/gii/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"phpspec/php-diff": ">=1.0.2",
"bower-asset/typeahead.js": ">=0.10.0"
"bower-asset/typeahead.js": "0.10.*"
},
"autoload": {
"psr-4": {
Expand Down
2 changes: 1 addition & 1 deletion extensions/jui/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
],
"require": {
"yiisoft/yii2": "*",
"bower-asset/jquery-ui": ">=1.10.0"
"bower-asset/jquery-ui": "1.11.*"
},
"autoload": {
"psr-4": {
Expand Down
9 changes: 4 additions & 5 deletions framework/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,12 @@
"ext-mbstring": "*",
"lib-pcre": "*",
"yiisoft/yii2-composer": "*",
"yiisoft/jquery": "~2.0 | ~1.10",
"ezyang/htmlpurifier": "4.6.*",
"cebe/markdown": "0.9.*",
"bower-asset/jquery": ">=1.8",
"bower-asset/jquery.inputmask": ">=3.0.0",
"bower-asset/punycode": ">=1.3.0",
"bower-asset/yii2-pjax": ">=2.0.0"
"bower-asset/jquery": "1.11.* | 2.1.*",
"bower-asset/jquery.inputmask": "3.1.*",
"bower-asset/punycode": "1.3.*",
"bower-asset/yii2-pjax": "2.0.*"
},
"autoload": {
"psr-4": {"yii\\": ""}
Expand Down
2 changes: 1 addition & 1 deletion framework/web/JqueryAsset.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
class JqueryAsset extends AssetBundle
{
public $sourcePath = '@vendor/yiisoft/jquery';
public $sourcePath = '@bower/jquery/dist';
public $js = [
'jquery.js',
];
Expand Down

0 comments on commit a819699

Please sign in to comment.