mirror of
https://github.com/restoreddev/phpapprentice.git
synced 2025-08-05 22:37:45 +02:00
Moved output folder to .build
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -4,3 +4,4 @@
|
||||
/node_modules
|
||||
|
||||
/docs
|
||||
/.build
|
||||
|
@@ -6,7 +6,7 @@ return [
|
||||
'icon_dir' => __DIR__ . '/assets/icons',
|
||||
'code_dir' => __DIR__ . '/code',
|
||||
'templates_dir' => __DIR__ . '/assets/templates',
|
||||
'output_dir' => __DIR__ . '/docs',
|
||||
'output_dir' => __DIR__ . '/.build',
|
||||
'pages' => [
|
||||
Page::create('index', 'index.phtml'),
|
||||
Page::create('credits', 'credits.phtml'),
|
||||
|
@@ -2,9 +2,6 @@
|
||||
"name": "phpapprentice",
|
||||
"version": "1.0.0",
|
||||
"description": "A website for learning PHP",
|
||||
"directories": {
|
||||
"doc": "docs"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"build": "./node_modules/.bin/encore dev",
|
||||
|
@@ -18,6 +18,6 @@ class ServerCommand extends Command
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
{
|
||||
$output->writeln('Starting development server on localhost:8080');
|
||||
system('php -S localhost:8080 -t docs src/util/router.php');
|
||||
system('php -S localhost:8080 -t ' . config('output_dir') . ' src/util/router.php');
|
||||
}
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
var Encore = require('@symfony/webpack-encore');
|
||||
|
||||
Encore
|
||||
.setOutputPath('docs')
|
||||
.setOutputPath('.build')
|
||||
.setPublicPath('/')
|
||||
.addEntry('js/site', './assets/js/site.js')
|
||||
.addStyleEntry('css/site', './assets/css/site.css')
|
||||
|
Reference in New Issue
Block a user