Skip to content

Commit 847f636

Browse files
committed
Update version
1 parent 43c5935 commit 847f636

File tree

3 files changed

+28
-23
lines changed

3 files changed

+28
-23
lines changed

src/Module.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Philippe Gaultier <[email protected]>
88
* @copyright 2010-2017 Philippe Gaultier
99
* @license http://www.sweelix.net/license license
10-
* @version XXX
10+
* @version 1.0.1
1111
* @link http://www.sweelix.net
1212
* @package sweelix\webpack
1313
*/
@@ -20,12 +20,12 @@
2020

2121

2222
/**
23-
* Oauth2 server Module definition
23+
* Webpack Module definition
2424
*
2525
* @author Philippe Gaultier <[email protected]>
2626
* @copyright 2010-2017 Philippe Gaultier
2727
* @license http://www.sweelix.net/license license
28-
* @version XXX
28+
* @version 1.0.1
2929
* @link http://www.sweelix.net
3030
* @package sweelix\webpack
3131
* @since XXX
@@ -45,12 +45,12 @@ public function bootstrap($app)
4545
/**
4646
* Update controllers map to add console commands
4747
* @param ConsoleApplication $app
48-
* @since XXX
48+
* @since 1.0.0
4949
*/
5050
protected function mapConsoleControllers(ConsoleApplication $app)
5151
{
5252
$app->controllerMap['webpack'] = [
5353
'class' => 'sweelix\webpack\commands\WebpackController',
5454
];
5555
}
56-
}
56+
}

src/WebpackAssetBundle.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Philippe Gaultier <[email protected]>
88
* @copyright 2010-2017 Ibitux
99
* @license http://www.ibitux.com/license license
10-
* @version XXX
10+
* @version 1.0.1
1111
* @link http://www.ibitux.com
1212
* @package sweelix\webpack
1313
*/
@@ -25,10 +25,10 @@
2525
* @author Philippe Gaultier <[email protected]>
2626
* @copyright 2010-2017 Ibitux
2727
* @license http://www.ibitux.com/license license
28-
* @version XXX
28+
* @version 1.0.1
2929
* @link http://www.ibitux.com
3030
* @package sweelix\webpack
31-
* @since XXX
31+
* @since 1.0.0
3232
*/
3333
class WebpackAssetBundle extends AssetBundle
3434
{
@@ -60,7 +60,7 @@ class WebpackAssetBundle extends AssetBundle
6060
/**
6161
* Merge webpack bundles with classic bundles and cache it if needed
6262
* @return void
63-
* @since XXX
63+
* @since 1.0.0
6464
*/
6565
protected function mergeWebpackBundles()
6666
{
@@ -103,4 +103,4 @@ public function init()
103103
$this->mergeWebpackBundles();
104104
parent::init();
105105
}
106-
}
106+
}

src/commands/WebpackController.php

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @author Philippe Gaultier <[email protected]>
88
* @copyright 2010-2017 Philippe Gaultier
99
* @license http://www.sweelix.net/license license
10-
* @version XXX
10+
* @version 1.0.1
1111
* @link http://www.sweelix.net
1212
* @package sweelix\webpack\commands
1313
*/
@@ -25,10 +25,10 @@
2525
* @author Philippe Gaultier <[email protected]>
2626
* @copyright 2010-2017 Philippe Gaultier
2727
* @license http://www.sweelix.net/license license
28-
* @version XXX
28+
* @version 1.0.1
2929
* @link http://www.sweelix.net
3030
* @package sweelix\webpack\commands
31-
* @since XXX
31+
* @since 1.0.0
3232
*/
3333
class WebpackController extends Controller
3434
{
@@ -67,7 +67,7 @@ class WebpackController extends Controller
6767
* Initialize webpack for current project (webpack.config.js, package.json, webpack-yii2.json)
6868
*
6969
* @return int
70-
* @since XXX
70+
* @since 1.0.0
7171
*/
7272
public function actionInit()
7373
{
@@ -88,7 +88,7 @@ public function actionInit()
8888
* Generate webpack.config.js file
8989
*
9090
* @return int
91-
* @since XXX
91+
* @since 1.0.0
9292
*/
9393
public function actionGenerateWebpack()
9494
{
@@ -101,7 +101,7 @@ public function actionGenerateWebpack()
101101
* Generate package.json file
102102
*
103103
* @return int
104-
* @since XXX
104+
* @since 1.0.0
105105
*/
106106
public function actionGeneratePackage()
107107
{
@@ -114,7 +114,7 @@ public function actionGeneratePackage()
114114
* Generate webpack-yii2.json file
115115
*
116116
* @return int
117-
* @since XXX
117+
* @since 1.0.0
118118
*/
119119
public function actionGenerateConfig()
120120
{
@@ -124,10 +124,10 @@ public function actionGenerateConfig()
124124
}
125125

126126
/**
127-
* Generate webpack-yii2.json file
127+
* Generate tsconfig.json file
128128
*
129129
* @return int
130-
* @since XXX
130+
* @since 1.0.1
131131
*/
132132
public function actionGenerateTypescriptConfig()
133133
{
@@ -138,7 +138,7 @@ public function actionGenerateTypescriptConfig()
138138

139139
/**
140140
* Prepare webpack.config.js file
141-
* @since XXX
141+
* @since 1.0.0
142142
*/
143143
protected function generateWebpackConfigJs()
144144
{
@@ -161,7 +161,7 @@ protected function generateWebpackConfigJs()
161161

162162
/**
163163
* Prepare tsconfig.json file
164-
* @since XXX
164+
* @since 1.0.1
165165
*/
166166
protected function generateTsConfigJson()
167167
{
@@ -184,7 +184,7 @@ protected function generateTsConfigJson()
184184

185185
/**
186186
* Prepare webpack config for yii
187-
* @since XXX
187+
* @since 1.0.0
188188
*/
189189
protected function generateConfigJson()
190190
{
@@ -242,6 +242,11 @@ protected function generateConfigJson()
242242

243243
}
244244

245+
/**
246+
* Search composer.json
247+
* @return string
248+
* @since 1.0.0
249+
*/
245250
protected function findComposerJson()
246251
{
247252
if ($this->composerJsonPath === null) {
@@ -268,7 +273,7 @@ protected function findComposerJson()
268273

269274
/**
270275
* Search information from composer.json and generate package.json
271-
* @since XXX
276+
* @since 1.0.0
272277
*/
273278
protected function generatePackageJson()
274279
{

0 commit comments

Comments
 (0)