Skip to content

Commit

Permalink
Normalise asset bundle structure and minify resources
Browse files Browse the repository at this point in the history
  • Loading branch information
joshangell committed Oct 12, 2018
1 parent 9f859d7 commit 2a6ad32
Show file tree
Hide file tree
Showing 4,564 changed files with 509,218 additions and 18 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
* @copyright Copyright (c) 2018 Angell & Co
*/

namespace angellco\spoon\assetbundles\Spoon;
namespace angellco\spoon\assetbundles;

use Craft;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
use craft\web\View;

/**
* SpoonConfigurator AssetBundle
* ConfiguratorAsset AssetBundle
*
* @author Angell & Co
* @package Spoon
* @since 3.0.0
*/
class SpoonConfigurator extends AssetBundle
class ConfiguratorAsset extends AssetBundle
{
// Public Methods
// =========================================================================
Expand All @@ -33,7 +33,7 @@ class SpoonConfigurator extends AssetBundle
public function init()
{
// define the path that your publishable resources live
$this->sourcePath = "@angellco/spoon/assetbundles/spoon/dist";
$this->sourcePath = "@angellco/spoon/assetbundles/dist";

// define the dependencies
$this->depends = [
Expand All @@ -43,13 +43,13 @@ public function init()
// define the relative path to CSS/JS files that should be registered with the page
// when this asset bundle is registered
$this->js = [
'js/BlockTypeFieldLayoutDesigner.js',
'js/GroupsDesigner.js',
'js/Configurator.js'
'js/BlockTypeFieldLayoutDesigner.min.js',
'js/GroupsDesigner.min.js',
'js/Configurator.min.js'
];

$this->css = [
'css/Spoon.css',
'css/main.min.css',
];

parent::init();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
* @copyright Copyright (c) 2018 Angell & Co
*/

namespace angellco\spoon\assetbundles\Spoon;
namespace angellco\spoon\assetbundles;

use Craft;
use craft\web\AssetBundle;
use craft\web\assets\cp\CpAsset;
use craft\web\View;

/**
* SpoonFieldManipulator AssetBundle
* FieldManipulatorAsset AssetBundle
*
* @author Angell & Co
* @package Spoon
* @since 3.0.0
*/
class SpoonFieldManipulator extends AssetBundle
class FieldManipulatorAsset extends AssetBundle
{
// Public Methods
// =========================================================================
Expand All @@ -33,7 +33,7 @@ class SpoonFieldManipulator extends AssetBundle
public function init()
{
// define the path that your publishable resources live
$this->sourcePath = "@angellco/spoon/assetbundles/spoon/dist";
$this->sourcePath = "@angellco/spoon/assetbundles/dist";

// define the dependencies
$this->depends = [
Expand All @@ -43,11 +43,11 @@ public function init()
// define the relative path to CSS/JS files that should be registered with the page
// when this asset bundle is registered
$this->js = [
'js/FieldManipulator.js',
'js/FieldManipulator.min.js',
];

$this->css = [
'css/Spoon.css',
'css/main.min.css',
];

parent::init();
Expand Down
1 change: 1 addition & 0 deletions src/assetbundles/dist/css/main.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/assetbundles/dist/js/Configurator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/assetbundles/dist/js/FieldManipulator.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2a6ad32

Please sign in to comment.