mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-26 20:00:06 +08:00
Adjusted dependency versions to stable ones.
This commit is contained in:
@@ -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.*",
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"require": {
|
||||
"yiisoft/yii2": "*",
|
||||
"bower-asset/bootstrap": ">=3.0.0"
|
||||
"bower-asset/bootstrap": "3.2.*"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -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": {
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
],
|
||||
"require": {
|
||||
"yiisoft/yii2": "*",
|
||||
"bower-asset/jquery-ui": ">=1.10.0"
|
||||
"bower-asset/jquery-ui": "1.11.*"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
@@ -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\\": ""}
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace yii\web;
|
||||
*/
|
||||
class JqueryAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@vendor/yiisoft/jquery';
|
||||
public $sourcePath = '@bower/jquery/dist';
|
||||
public $js = [
|
||||
'jquery.js',
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user