Skip to content

Commit

Permalink
Renamed third party packages directories
Browse files Browse the repository at this point in the history
  • Loading branch information
berrnd committed Jun 3, 2023
1 parent 4eea876 commit 2fbe500
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
/public/node_modules
/vendor
/packages
/.release
/public/packages
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

$finder = PhpCsFixer\Finder::create()
->exclude(['vendor'])
->exclude(['packages'])
->ignoreVCSIgnored(true)
->files()->name('*.php')
->in(__DIR__)
Expand Down
2 changes: 1 addition & 1 deletion .yarnrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--modules-folder public/node_modules
--modules-folder public/packages
--install.production true
--install.ignore-scripts true
--install.ignore-optional true
2 changes: 1 addition & 1 deletion app.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
}

// Load composer dependencies
require_once __DIR__ . '/vendor/autoload.php';
require_once __DIR__ . '/packages/autoload.php';

// Load config files
require_once PIKSI_DATAPATH . '/config.php';
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
]
},
"config": {
"vendor-dir": "packages",
"platform-check": false
}
}
4 changes: 2 additions & 2 deletions helpers/RequirementsChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ public function CheckEnvironment()
throw new \Exception('/config-dist.php not found - please do not remove this file');
}

if (!file_exists(__DIR__ . '/../vendor/autoload.php'))
if (!file_exists(__DIR__ . '/../packages/autoload.php'))
{
throw new \Exception('/vendor/autoload.php not found - have you run Composer?');
throw new \Exception('/packages/autoload.php not found - have you run Composer?');
}

if (!is_writable(PIKSI_DATAPATH))
Expand Down
2 changes: 1 addition & 1 deletion localization/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgstr "Übersicht"
msgid "About"
msgstr "Über"

# Lowercase locale based on the filename in /public/node_modules/moment/locale
# Lowercase locale based on the filename in /public/packages/moment/locale
msgid "moment_locale"
msgstr "de"

Expand Down
2 changes: 1 addition & 1 deletion localization/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ msgstr "Overview"
msgid "About"
msgstr "About"

# Lowercase locale based on the filename in /public/node_modules/moment/locale
# Lowercase locale based on the filename in /public/packages/moment/locale
msgid "moment_locale"
msgstr "x"

Expand Down
2 changes: 1 addition & 1 deletion localization/strings.pot
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ msgstr ""
msgid "About"
msgstr ""

# Lowercase locale based on the filename in /public/node_modules/moment/locale
# Lowercase locale based on the filename in /public/packages/moment/locale
msgid "moment_locale"
msgstr ""

Expand Down
20 changes: 10 additions & 10 deletions views/layout/default.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@

<title>@yield('title') | {{$title}}</title>

<link href="{{ $U('/node_modules/@fontsource/open-sans/latin.css?v=', true) }}{{ $version }}"
<link href="{{ $U('/packages/@fontsource/open-sans/latin.css?v=', true) }}{{ $version }}"
rel="stylesheet">
<link href="{{ $U('/node_modules/bootstrap/dist/css/bootstrap.min.css?v=', true) }}{{ $version }}"
<link href="{{ $U('/packages/bootstrap/dist/css/bootstrap.min.css?v=', true) }}{{ $version }}"
rel="stylesheet">
<link href="{{ $U('/node_modules/@fortawesome/fontawesome-free/css/all.min.css?v=', true) }}{{ $version }}"
<link href="{{ $U('/packages/@fortawesome/fontawesome-free/css/all.min.css?v=', true) }}{{ $version }}"
rel="stylesheet">
<link href="{{ $U('/piksi.css?v=', true) }}{{ $version }}"
rel="stylesheet">
Expand Down Expand Up @@ -80,13 +80,13 @@ class="col pt-2">
</div>
</div>

<script src="{{ $U('/node_modules/jquery/dist/jquery.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/node_modules/bootstrap/dist/js/bootstrap.bundle.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/node_modules/bootbox/dist/bootbox.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/node_modules/sprintf-js/dist/sprintf.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/node_modules/gettext-translator/dist/translator.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/node_modules/moment/min/moment.min.js?v=', true) }}{{ $version }}"></script>
@if(!empty($__t('moment_locale') && $__t('moment_locale') != 'x'))<script src="{{ $U('/node_modules', true) }}/moment/locale/{{ $__t('moment_locale') }}.js?v={{ $version }}"></script>@endif
<script src="{{ $U('/packages/jquery/dist/jquery.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/packages/bootstrap/dist/js/bootstrap.bundle.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/packages/bootbox/dist/bootbox.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/packages/sprintf-js/dist/sprintf.min.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/packages/gettext-translator/dist/translator.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/packages/moment/min/moment.min.js?v=', true) }}{{ $version }}"></script>
@if(!empty($__t('moment_locale') && $__t('moment_locale') != 'x'))<script src="{{ $U('/packages', true) }}/moment/locale/{{ $__t('moment_locale') }}.js?v={{ $version }}"></script>@endif
<script src="{{ $U('/extensions.js?v=', true) }}{{ $version }}"></script>
<script src="{{ $U('/piksi.js?v=', true) }}{{ $version }}"></script>

Expand Down

0 comments on commit 2fbe500

Please sign in to comment.