mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-24 18:51:27 +08:00
avoid publishing dev files of js packages
This commit is contained in:
@@ -9,7 +9,7 @@ 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 `xyz` to the `replace` section;
|
||||
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`
|
||||
|
||||
@@ -17,8 +17,8 @@ use yii\web\AssetBundle;
|
||||
*/
|
||||
class BootstrapAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@bower/bootstrap';
|
||||
public $sourcePath = '@bower/bootstrap/dist';
|
||||
public $css = [
|
||||
'dist/css/bootstrap.css',
|
||||
'css/bootstrap.css',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -17,9 +17,9 @@ use yii\web\AssetBundle;
|
||||
*/
|
||||
class BootstrapPluginAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@bower/bootstrap';
|
||||
public $sourcePath = '@bower/bootstrap/dist';
|
||||
public $js = [
|
||||
'dist/js/bootstrap.js',
|
||||
'js/bootstrap.js',
|
||||
];
|
||||
public $depends = [
|
||||
'yii\web\JqueryAsset',
|
||||
|
||||
@@ -17,9 +17,9 @@ use yii\web\AssetBundle;
|
||||
*/
|
||||
class BootstrapThemeAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@bower/bootstrap';
|
||||
public $sourcePath = '@bower/bootstrap/dist';
|
||||
public $css = [
|
||||
'dist/css/bootstrap-theme.css',
|
||||
'css/bootstrap-theme.css',
|
||||
];
|
||||
public $depends = [
|
||||
'yii\bootstrap\BootstrapAsset',
|
||||
|
||||
@@ -16,9 +16,9 @@ use yii\web\AssetBundle;
|
||||
*/
|
||||
class TypeAheadAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@bower/typeahead.js';
|
||||
public $sourcePath = '@bower/typeahead.js/dist';
|
||||
public $js = [
|
||||
'dist/typeahead.bundle.js',
|
||||
'typeahead.bundle.js',
|
||||
];
|
||||
public $depends = [
|
||||
'yii\bootstrap\BootstrapAsset',
|
||||
|
||||
@@ -19,9 +19,9 @@ use yii\web\AssetBundle;
|
||||
*/
|
||||
class MaskedInputAsset extends AssetBundle
|
||||
{
|
||||
public $sourcePath = '@bower/jquery.inputmask';
|
||||
public $sourcePath = '@bower/jquery.inputmask/dist';
|
||||
public $js = [
|
||||
'dist/jquery.inputmask.bundle.js'
|
||||
'jquery.inputmask.bundle.js'
|
||||
];
|
||||
public $depends = [
|
||||
'yii\web\YiiAsset'
|
||||
|
||||
Reference in New Issue
Block a user