Skip to content

Commit

Permalink
Add .gitattributes and update composer.json files
Browse files Browse the repository at this point in the history
  • Loading branch information
jalendport committed Jul 25, 2024
1 parent 78519ea commit 2e6f278
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 8 deletions.
9 changes: 9 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
57 changes: 50 additions & 7 deletions composer.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -10,15 +10,58 @@
"project"
],
"license": "0BSD",
"authors": [
{
"name": "Jalen Davenport",
"email": "[email protected]",
"homepage": "https://jalendport.com",
"role": "Developer"
}
],
"support": {
"email": "[email protected]",
"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"
]
}
}
4 changes: 3 additions & 1 deletion composer.json.project
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
"vlucas/phpdotenv": "^5.4.0"
},
"require-dev": {
"craftcms/generator": "^1.3.0",
"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,
Expand Down

0 comments on commit 2e6f278

Please sign in to comment.