diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..76c6724 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,9 @@ +# Do not export those files in the Composer archive (lighter dependency) +.gitattributes export-ignore +.github/ export-ignore +CHANGELOG.md export-ignore +LICENSE.md export-ignore +README.md export-ignore + +# Auto detect text files and perform LF normalization +* text=auto diff --git a/composer.json b/composer.json index 160e69a..ae58114 100644 --- a/composer.json +++ b/composer.json @@ -1,7 +1,7 @@ { "name": "jalendport/spark-craft", - "version": "1.0.0-alpha.1", "description": "Craft CMS starter project", + "version": "1.0.0-alpha.1", "type": "project", "keywords": [ "craft", @@ -10,15 +10,58 @@ "project" ], "license": "0BSD", + "authors": [ + { + "name": "Jalen Davenport", + "email": "hello@jalendport.com", + "homepage": "https://jalendport.com", + "role": "Developer" + } + ], + "support": { + "email": "support@jalendport.com", + "issues": "https://github.com/jalendport/spark-craft/issues", + "source": "https://github.com/jalendport/spark-craft", + "docs": "https://github.com/jalendport/spark-craft/blob/master/README.MD" + }, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/jalendport" + } + ], + "require": { + "craftcms/cms": "^5.0.0", + "vlucas/phpdotenv": "^5.4.0" + }, + "require-dev": { + "craftcms/generator": "^2.0.0", + "yiisoft/yii2-shell": "^2.0.0" + }, + "autoload": { + "psr-4": { + "modules\\": "src/modules/" + } + }, + "minimum-stability": "dev", + "prefer-stable": true, + "config": { + "allow-plugins": { + "craftcms/plugin-installer": true, + "yiisoft/yii2-composer": true + }, + "sort-packages": true, + "optimize-autoloader": true, + "platform": { + "php": "8.3" + } + }, "scripts": { "post-create-project-cmd": [ - "@php -r \"unlink('README.md');\"", - "@php -r \"unlink('CHANGELOG.md');\"", - "@php -r \"unlink('LICENSE');\"", - "@php -r \"rename('.env.example', '.env');\"", + "@php -r \"file_exists('.env') || copy('.example.env', '.env');\"", "@php -r \"unlink('composer.json');\"", - "@php -r \"unlink('composer.lock');\"", - "@php -r \"rename('composer.json.project', 'composer.json');\"" + "@php -r \"rename('composer.json.project', 'composer.json');\"", + "@composer dump-autoload -o" ] } } diff --git a/composer.json.project b/composer.json.project index 79845cf..9ecba76 100644 --- a/composer.json.project +++ b/composer.json.project @@ -4,7 +4,7 @@ "vlucas/phpdotenv": "^5.4.0" }, "require-dev": { - "craftcms/generator": "^1.3.0", + "craftcms/generator": "^2.0.0", "yiisoft/yii2-shell": "^2.0.0" }, "autoload": { @@ -12,6 +12,8 @@ "modules\\": "src/modules/" } }, + "minimum-stability": "dev", + "prefer-stable": true, "config": { "allow-plugins": { "craftcms/plugin-installer": true,