Skip to content

Commit

Permalink
Merge pull request #4 from itsnubix/develop
Browse files Browse the repository at this point in the history
fixing issues
  • Loading branch information
Kyle Milloy committed Jul 26, 2021
2 parents dae9885 + 2d78af0 commit 5adbebf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
8 changes: 4 additions & 4 deletions src/Preset.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ class Preset extends BasePreset

const GITIGNORES = [
'.DS_Store',
'.php-cs-fixer.cache'
'.php-cs-fixer.cache',
'auth.json',
];

public static function install()
Expand All @@ -63,7 +64,7 @@ private static function updateFiles()
$filesystem = new Filesystem();

// Append the default .gitignore
$filesystem->append(base_path('.gitignore'), "\n".implode("\n", static::GITIGNORES));
$filesystem->append(base_path('.gitignore'), "\n".implode("\n", static::GITIGNORES)."\n");

// Code style configuration
$filesystem->copy(__DIR__.'/../stubs/.editorconfig', base_path('.editorconfig'));
Expand Down Expand Up @@ -123,7 +124,7 @@ private static function updateDirectories()
$filesystem = new Filesystem();

// copy github actions configurations
$filesystem->copyDirectory(__DIR__ . '/../stubs/.github', base_path('.github'));
$filesystem->copyDirectory(__DIR__.'/../stubs/.github', base_path('.github'));
}

protected static function updatePackageArray(array $packages)
Expand Down Expand Up @@ -154,7 +155,6 @@ protected static function updatePackageScripts()

$packages = json_decode(file_get_contents(base_path('package.json')), true);


$packages[$configurationKey] = array_merge(
static::NPM_SCRIPT_TO_ADD,
$packages[$configurationKey]
Expand Down
2 changes: 1 addition & 1 deletion stubs/.editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2

[*.vue]
[*.{vue,js}]
indent_size = 2

0 comments on commit 5adbebf

Please sign in to comment.