Remove the pterodactyl directory when handling assets

This supports moving away from multiple-theme support in the Panel since that is no longer going to be offered.
This commit is contained in:
Dane Everitt 2018-05-26 12:33:27 -07:00
parent f09eb8eec9
commit b35eb77a70
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
18 changed files with 9 additions and 9 deletions

View File

@ -4,7 +4,7 @@
yarn install yarn install
php artisan vue-i18n:generate php artisan vue-i18n:generate
php artisan ziggy:generate resources/assets/pterodactyl/scripts/helpers/ziggy.js php artisan ziggy:generate resources/assets/scripts/helpers/ziggy.js
npm run build npm run build
``` ```

View File

@ -18,12 +18,12 @@ const paths = {
manifest: './public/assets', manifest: './public/assets',
assets: './public/assets/{css,scripts}/*.{css,js}', assets: './public/assets/{css,scripts}/*.{css,js}',
styles: { styles: {
src: './resources/assets/pterodactyl/styles/main.css', src: './resources/assets/styles/main.css',
dest: './public/assets/css', dest: './public/assets/css',
}, },
scripts: { scripts: {
src: './resources/assets/pterodactyl/scripts/**/*.{js,vue}', src: './resources/assets/scripts/**/*.{js,vue}',
watch: ['./resources/assets/pterodactyl/scripts/**/*.{js,vue}', './resources/lang/locales.js'], watch: ['./resources/assets/scripts/**/*.{js,vue}', './resources/lang/locales.js'],
dest: './public/assets/scripts', dest: './public/assets/scripts',
}, },
}; };
@ -65,7 +65,7 @@ function scripts() {
* Provides watchers. * Provides watchers.
*/ */
function watch() { function watch() {
gulp.watch(['./resources/assets/pterodactyl/styles/**/*.css'], gulp.series(function cleanStyles() { gulp.watch(['./resources/assets/styles/**/*.css'], gulp.series(function cleanStyles() {
return del(['./public/assets/css/**/*.css']); return del(['./public/assets/css/**/*.css']);
}, styles)); }, styles));

View File

@ -7,7 +7,7 @@ import VueRouter from 'vue-router';
// Helpers // Helpers
import { Ziggy } from './helpers/ziggy'; import { Ziggy } from './helpers/ziggy';
import Locales from './../../../../resources/lang/locales'; import Locales from './../../../resources/lang/locales';
// Base Vuejs Templates // Base Vuejs Templates
import Login from './components/auth/Login'; import Login from './components/auth/Login';
@ -19,7 +19,7 @@ window.Ziggy = Ziggy;
Vue.use(Vuex); Vue.use(Vuex);
const store = new Vuex.Store({ plugins: [createFlashStore()] }); const store = new Vuex.Store({ plugins: [createFlashStore()] });
const route = require('./../../../../vendor/tightenco/ziggy/src/js/route').default; const route = require('./../../../vendor/tightenco/ziggy/src/js/route').default;
Vue.config.productionTip = false; Vue.config.productionTip = false;
Vue.mixin({ methods: { route } }); Vue.mixin({ methods: { route } });

View File

@ -1,5 +1,5 @@
module.exports = { module.exports = {
entry: './resources/assets/pterodactyl/scripts/app.js', entry: './resources/assets/scripts/app.js',
output: { output: {
filename: 'webpack.build.js', filename: 'webpack.build.js',
}, },