From 2a75581b13ecf7a2bfbe22005bdde5b260e81589 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Sun, 29 May 2016 10:21:37 +0930 Subject: [PATCH] Use smaller FontAwesome shim repo instead of original components/font-awesome is ~8 MB smaller than fortawesome/font-awesome because it excludes all examples/docs. Reducing dependency filesize will be important when we want to package up a .zip for distribution. --- framework/core/composer.json | 2 +- framework/core/src/Asset/LessCompiler.php | 2 +- framework/core/src/Install/Console/InstallCommand.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/framework/core/composer.json b/framework/core/composer.json index 84e28e5c8..5572cbbf7 100644 --- a/framework/core/composer.json +++ b/framework/core/composer.json @@ -23,7 +23,7 @@ "php": ">=5.5.9", "dflydev/fig-cookies": "^1.0.2", "doctrine/dbal": "^2.5", - "fortawesome/font-awesome": "^4.6", + "components/font-awesome": "^4.6", "franzl/whoops-middleware": "^0.4.0", "illuminate/bus": "5.1.*", "illuminate/cache": "5.1.*", diff --git a/framework/core/src/Asset/LessCompiler.php b/framework/core/src/Asset/LessCompiler.php index ae619504a..5a94c6729 100644 --- a/framework/core/src/Asset/LessCompiler.php +++ b/framework/core/src/Asset/LessCompiler.php @@ -48,7 +48,7 @@ class LessCompiler extends RevisionCompiler 'compress' => true, 'cache_dir' => $this->cachePath, 'import_dirs' => [ - base_path().'/vendor/fortawesome/font-awesome/less' => '', + base_path().'/vendor/components/font-awesome/less' => '', ], ]); diff --git a/framework/core/src/Install/Console/InstallCommand.php b/framework/core/src/Install/Console/InstallCommand.php index aaa3e67e2..fa9e73357 100644 --- a/framework/core/src/Install/Console/InstallCommand.php +++ b/framework/core/src/Install/Console/InstallCommand.php @@ -357,7 +357,7 @@ class InstallCommand extends AbstractCommand protected function publishAssets() { $this->filesystem->copyDirectory( - $this->application->basePath().'/vendor/fortawesome/font-awesome/fonts', + $this->application->basePath().'/vendor/components/font-awesome/fonts', $this->application->publicPath().'/assets/fonts' ); }