commit 41586b354f8402eeefce367c18ed15b1fe172586 Author: Dave Mc Nicoll Date: Fri Oct 6 19:08:30 2023 -0400 - First commit, just began working on it diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..e54356f --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2023 Dave Mc Nicoll + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..1627f1d --- /dev/null +++ b/composer.json @@ -0,0 +1,26 @@ +{ + "name": "mcnd/picea-asset", + "description": "An asset manager working with ES6 'importmap'", + "type": "library", + "license": "MIT", + "authors": [ + { + "name": "Dave Mc Nicoll", + "email": "info@mcnd.ca" + } + ], + "require": { + "mcnd/picea": "dev-master" + }, + "repositories": [ + { + "type": "vcs", + "url": "https://github.com/mcNdave/picea.git" + } + ], + "autoload": { + "psr-4": { + "Picea\\Asset\\": "src/" + } + } +} diff --git a/src/Asset.php b/src/Asset.php new file mode 100644 index 0000000..a4e7b6e --- /dev/null +++ b/src/Asset.php @@ -0,0 +1,15 @@ +registerExtension(new Extension\ImportmapExtension()); + + return $this; + } +} diff --git a/src/Connector/Npm.php b/src/Connector/Npm.php new file mode 100644 index 0000000..0c18492 --- /dev/null +++ b/src/Connector/Npm.php @@ -0,0 +1,8 @@ +$rendered' ?>"; + } +}