Skip to content

Commit 2e6f278

Browse files
committed
Add .gitattributes and update composer.json files
1 parent 78519ea commit 2e6f278

File tree

3 files changed

+62
-8
lines changed

3 files changed

+62
-8
lines changed

.gitattributes

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Do not export those files in the Composer archive (lighter dependency)
2+
.gitattributes export-ignore
3+
.github/ export-ignore
4+
CHANGELOG.md export-ignore
5+
LICENSE.md export-ignore
6+
README.md export-ignore
7+
8+
# Auto detect text files and perform LF normalization
9+
* text=auto

composer.json

Lines changed: 50 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jalendport/spark-craft",
3-
"version": "1.0.0-alpha.1",
43
"description": "Craft CMS starter project",
4+
"version": "1.0.0-alpha.1",
55
"type": "project",
66
"keywords": [
77
"craft",
@@ -10,15 +10,58 @@
1010
"project"
1111
],
1212
"license": "0BSD",
13+
"authors": [
14+
{
15+
"name": "Jalen Davenport",
16+
"email": "[email protected]",
17+
"homepage": "https://jalendport.com",
18+
"role": "Developer"
19+
}
20+
],
21+
"support": {
22+
"email": "[email protected]",
23+
"issues": "https://github.com/jalendport/spark-craft/issues",
24+
"source": "https://github.com/jalendport/spark-craft",
25+
"docs": "https://github.com/jalendport/spark-craft/blob/master/README.MD"
26+
},
27+
"funding": [
28+
{
29+
"type": "github",
30+
"url": "https://github.com/sponsors/jalendport"
31+
}
32+
],
33+
"require": {
34+
"craftcms/cms": "^5.0.0",
35+
"vlucas/phpdotenv": "^5.4.0"
36+
},
37+
"require-dev": {
38+
"craftcms/generator": "^2.0.0",
39+
"yiisoft/yii2-shell": "^2.0.0"
40+
},
41+
"autoload": {
42+
"psr-4": {
43+
"modules\\": "src/modules/"
44+
}
45+
},
46+
"minimum-stability": "dev",
47+
"prefer-stable": true,
48+
"config": {
49+
"allow-plugins": {
50+
"craftcms/plugin-installer": true,
51+
"yiisoft/yii2-composer": true
52+
},
53+
"sort-packages": true,
54+
"optimize-autoloader": true,
55+
"platform": {
56+
"php": "8.3"
57+
}
58+
},
1359
"scripts": {
1460
"post-create-project-cmd": [
15-
"@php -r \"unlink('README.md');\"",
16-
"@php -r \"unlink('CHANGELOG.md');\"",
17-
"@php -r \"unlink('LICENSE');\"",
18-
"@php -r \"rename('.env.example', '.env');\"",
61+
"@php -r \"file_exists('.env') || copy('.example.env', '.env');\"",
1962
"@php -r \"unlink('composer.json');\"",
20-
"@php -r \"unlink('composer.lock');\"",
21-
"@php -r \"rename('composer.json.project', 'composer.json');\""
63+
"@php -r \"rename('composer.json.project', 'composer.json');\"",
64+
"@composer dump-autoload -o"
2265
]
2366
}
2467
}

composer.json.project

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,16 @@
44
"vlucas/phpdotenv": "^5.4.0"
55
},
66
"require-dev": {
7-
"craftcms/generator": "^1.3.0",
7+
"craftcms/generator": "^2.0.0",
88
"yiisoft/yii2-shell": "^2.0.0"
99
},
1010
"autoload": {
1111
"psr-4": {
1212
"modules\\": "src/modules/"
1313
}
1414
},
15+
"minimum-stability": "dev",
16+
"prefer-stable": true,
1517
"config": {
1618
"allow-plugins": {
1719
"craftcms/plugin-installer": true,

0 commit comments

Comments
 (0)