Skip to content
This repository has been archived by the owner on Dec 30, 2022. It is now read-only.

Commit

Permalink
- Renamed all stub files.
Browse files Browse the repository at this point in the history
- Included a changlog GitHub workflow
- Updated installers to copy renamed stub files.
  • Loading branch information
warrickbayman committed Jul 14, 2022
1 parent c223d62 commit a6c6457
Show file tree
Hide file tree
Showing 22 changed files with 43 additions and 15 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: "Update Changelog"

on:
release:
types: [released]

jobs:
update:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
with:
ref: main

- name: Update Changelog
uses: stefanzweifel/changelog-updater-action@v1
with:
latest-version: ${{ github.event.release.name }}
release-notes: ${{ github.event.release.body }}

- name: Commit updated CHANGELOG
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: main
commit_message: Update CHANGELOG
file_pattern: CHANGELOG.md
File renamed without changes.
6 changes: 3 additions & 3 deletions src/Installers/ConfigInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ class ConfigInstaller extends AbstractInstaller
protected function filesToCopy(): array
{
return [
$this->stubPath('jsconfig.json') => base_path('jsconfig.json'),
$this->stubPath('vite.config.js') => base_path('vite.config.js'),
$this->stubPath('LocalValetDriver.php') => base_path('LocalValetDriver.php'),
$this->stubPath('jsconfig.json.stub') => base_path('jsconfig.json'),
$this->stubPath('vite.config.js.stub') => base_path('vite.config.js'),
$this->stubPath('LocalValetDriver.php.stub') => base_path('LocalValetDriver.php'),
];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Installers/InertiaInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ protected function filesToRemove(): array
protected function filesToCopy(): array
{
return [
$this->stubPath('app.blade.php') => resource_path('views/app.blade.php'),
$this->stubPath('Welcome.vue') => resource_path(Arr::get($this->variables, '$PAGESPATH$').'/Welcome.vue'),
$this->stubPath('web.routes.php') => base_path('routes/web.php'),
$this->stubPath('app.blade.php.stub') => resource_path('views/app.blade.php'),
$this->stubPath('Welcome.vue.stub') => resource_path(Arr::get($this->variables, '$PAGESPATH$').'/Welcome.vue'),
$this->stubPath('web.routes.php.stub') => base_path('routes/web.php'),
];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Installers/JavaScriptInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ protected function filesToCopy(): array
$jsPath = Arr::get($this->variables, '$JSPATH$');

return [
$this->stubPath('bootstrap.js') => resource_path($jsPath.'/bootstrap.js'),
$this->stubPath('Router.js') => resource_path($jsPath.'/Scripts/Routing/Router.js'),
$this->stubPath('app.js') => resource_path($jsPath.'/app.js'),
$this->stubPath('bootstrap.js.stub') => resource_path($jsPath.'/bootstrap.js'),
$this->stubPath('Router.js.stub') => resource_path($jsPath.'/Scripts/Routing/Router.js'),
$this->stubPath('app.js.stub') => resource_path($jsPath.'/app.js'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Installers/NodeScriptInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class NodeScriptInstaller extends AbstractInstaller
protected function filesToCopy(): array
{
return [
$this->stubPath('package.json') => base_path('package.json'),
$this->stubPath('package.json.stub') => base_path('package.json'),
];
}

Expand Down
6 changes: 3 additions & 3 deletions src/Installers/TailwindInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ class TailwindInstaller extends AbstractInstaller
protected function filesToCopy(): array
{
return [
$this->stubPath('app.css') => resource_path('css/app.css'),
$this->stubPath('postcss.config.js') => base_path('postcss.config.js'),
$this->stubPath('tailwind.config.js') => base_path('tailwind.config.js'),
$this->stubPath('app.css.stub') => resource_path('css/app.css'),
$this->stubPath('postcss.config.js.stub') => base_path('postcss.config.js'),
$this->stubPath('tailwind.config.js.stub') => base_path('tailwind.config.js'),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Installers/ViewComposerInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ViewComposerInstaller extends AbstractInstaller
protected function filesToCopy(): array
{
return [
$this->stubPath('AppComposer.php') => app_path('Http/Composers/AppComposer.php'),
$this->stubPath('AppComposer.php.stub') => app_path('Http/Composers/AppComposer.php'),
];
}

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion stubs/app.js → stubs/app.js.stub
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '../css/app.css';
import './bootstrap';
import './bootstrap.js.stub';

import { createApp, h } from 'vue'
import { createInertiaApp } from '@inertiajs/inertia-vue3'
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a6c6457

Please sign in to comment.