File tree Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Expand file tree Collapse file tree 3 files changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ window.jQuery = window.$ = require('jquery');
1515window . moment = require ( 'moment' ) ;
1616
1717require ( 'popper.js' ) ;
18- require ( 'assets/resources/js/ bootstrap' ) ;
18+ require ( 'bootstrap' ) ;
1919require ( 'jquery.nicescroll' ) ;
2020
2121require ( './stisla/stisla' ) ;
Original file line number Diff line number Diff line change 44
55use Illuminate \Filesystem \Filesystem ;
66use Laravel \Ui \Presets \Preset ;
7+ use Laravel \Ui \UiCommand ;
78
89class StislaPreset extends Preset
910{
@@ -12,14 +13,18 @@ class StislaPreset extends Preset
1213 /**
1314 * Install the preset.
1415 *
16+ * @param UiCommand $command
1517 * @return void
1618 */
17- public static function install ()
19+ public static function install (UiCommand $ command )
1820 {
1921 static ::updatePackages ();
2022
23+ $ command ->info ('Updating Resource JS ' );
2124 static ::updateScripts ();
25+ $ command ->info ('Updating Resource SASS ' );
2226 static ::updateStyles ();
27+ $ command ->info ('Updating Resource Layouts ' );
2328 static ::updateLayoutViews ();
2429
2530 static ::removeNodeModules ();
@@ -35,10 +40,10 @@ protected static function updatePackageArray(array $packages)
3540 {
3641 return [
3742 '@fortawesome/fontawesome-free ' => '^5.10.2 ' ,
43+ 'moment ' => '^2.24 ' ,
3844 'bootstrap ' => '^4.3.1 ' ,
39- 'vue ' => '^2.5.17 ' ,
40- 'vue-template-compiler ' => '^2.6.10 ' ,
41- 'bootstrap-vue ' => '^2.0.1 ' ,
45+ 'jquery ' => '^3.4 ' ,
46+ 'jquery.nicescroll ' => '^3.7 '
4247 ] + $ packages ;
4348 }
4449
Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ class StislaServiceProvider extends ServiceProvider
1515 public function boot ()
1616 {
1717 UiCommand::macro ('stisla ' , function (UiCommand $ command ) {
18- StislaPreset::install ();
18+ StislaPreset::install ($ command );
19+
20+ $ command ->info ('Installing package. ' );
21+ exec ('npm install && npm run production ' );
22+ $ command ->info ('Package installed successfull. ' );
1923
2024 $ command ->info ('Stisla UI scaffolding installed successfully. ' );
2125 });
You can’t perform that action at this time.
0 commit comments