Skip to content

Commit 80cf0aa

Browse files
author
Igor Chepurnoy
committed
Switched to asset-packagist.org
1 parent bc9298e commit 80cf0aa

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ sudo: false
1010
cache:
1111
directories:
1212
- $HOME/.composer/cache
13-
- vendor
1413

1514
install:
1615
- travis_retry composer self-update && composer --version
17-
- travis_retry composer global require "fxp/composer-asset-plugin:^1.2.0"
1816
- export PATH="$HOME/.composer/vendor/bin:$PATH"
1917
- travis_retry composer install --prefer-dist --no-interaction
2018

2119
script:
2220
- vendor/friendsofphp/php-cs-fixer/php-cs-fixer fix --dry-run --diff
23-
- phpunit --verbose $PHPUNIT_FLAGS
21+
- phpunit

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
CMS Extension
2-
========================
3-
This module provides a web interface for content management system and includes following features:
1+
<p align="center">
2+
<a href="https://github.com/yiisoft" target="_blank">
3+
<img src="https://avatars0.githubusercontent.com/u/993323" height="100px">
4+
</a>
5+
<h1 align="center">Yii2 CMS Extension</h1>
6+
<br>
7+
</p>
8+
9+
This module provides a web interface for content management system and includes the following features:
410

511
- Allows CRUD operations for pages
612
- [Support Markdown Editor](https://github.com/yii2mod/yii2-markdown)

composer.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,11 @@
4141
},
4242
"extra": {
4343
"bootstrap": "yii2mod\\cms\\Bootstrap"
44-
}
44+
},
45+
"repositories": [
46+
{
47+
"type": "composer",
48+
"url": "https://asset-packagist.org"
49+
}
50+
]
4551
}

tests/TestCase.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ protected function mockApplication($config = [], $appClass = '\yii\web\Applicati
3838
'id' => 'testapp',
3939
'basePath' => __DIR__,
4040
'vendorPath' => $this->getVendorPath(),
41+
'aliases' => [
42+
'@bower' => '@vendor/bower-asset',
43+
'@npm' => '@vendor/npm-asset',
44+
],
4145
'components' => [
4246
'db' => [
4347
'class' => 'yii\db\Connection',

0 commit comments

Comments
 (0)