|
1 | 1 | { |
2 | 2 | "name": "jalendport/spark-craft", |
3 | | - "version": "1.0.0-alpha.1", |
4 | 3 | "description": "Craft CMS starter project", |
| 4 | + "version": "1.0.0-alpha.1", |
5 | 5 | "type": "project", |
6 | 6 | "keywords": [ |
7 | 7 | "craft", |
|
10 | 10 | "project" |
11 | 11 | ], |
12 | 12 | "license": "0BSD", |
| 13 | + "authors": [ |
| 14 | + { |
| 15 | + "name": "Jalen Davenport", |
| 16 | + |
| 17 | + "homepage": "https://jalendport.com", |
| 18 | + "role": "Developer" |
| 19 | + } |
| 20 | + ], |
| 21 | + "support": { |
| 22 | + |
| 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 | + }, |
13 | 59 | "scripts": { |
14 | 60 | "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');\"", |
19 | 62 | "@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" |
22 | 65 | ] |
23 | 66 | } |
24 | 67 | } |
0 commit comments