Inital Commit UwU

This commit is contained in:
Nikurasu 2022-05-15 10:08:25 +02:00
commit 4ead9ab57d
12 changed files with 116 additions and 0 deletions

14
.gitignore vendored Normal file
View file

@ -0,0 +1,14 @@
/cache/
/node_modules/
/vendor/
/.idea/
/.vscode/
npm-debug.log
composer.lock
package-lock.json
# Jigsaw Ignores
/build_staging/
/build_production/
/source/assets/build/
/build_local/

17
bootstrap.php Normal file
View file

@ -0,0 +1,17 @@
<?php
use TightenCo\Jigsaw\Jigsaw;
/** @var $container \Illuminate\Container\Container */
/** @var $events \TightenCo\Jigsaw\Events\EventBus */
/**
* You can run custom code at different stages of the build process by
* listening to the 'beforeBuild', 'afterCollections', and 'afterBuild' events.
*
* For example:
*
* $events->beforeBuild(function (Jigsaw $jigsaw) {
* // Your code here
* });
*/

5
composer.json Normal file
View file

@ -0,0 +1,5 @@
{
"require": {
"tightenco/jigsaw": "^1.3"
}
}

9
config.php Normal file
View file

@ -0,0 +1,9 @@
<?php
return [
'production' => false,
'baseUrl' => '',
'title' => 'Jigsaw',
'description' => 'Website description.',
'collections' => [],
];

5
config.production.php Normal file
View file

@ -0,0 +1,5 @@
<?php
return [
'production' => true,
];

16
package.json Normal file
View file

@ -0,0 +1,16 @@
{
"private": true,
"scripts": {
"dev": "mix",
"watch": "mix watch",
"staging": "NODE_ENV=staging mix",
"prod": "mix --production"
},
"devDependencies": {
"laravel-mix": "^6.0.39",
"laravel-mix-jigsaw": "^1.5.0",
"postcss": "^8.2.4",
"postcss-import": "^14.0.0",
"tailwindcss": "^2.0.2"
}
}

View file

@ -0,0 +1,3 @@
@import 'tailwindcss/base';
@import 'tailwindcss/components';
@import 'tailwindcss/utilities';

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="{{ $page->language ?? 'en' }}">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="canonical" href="{{ $page->getUrl() }}">
<meta name="description" content="{{ $page->description }}">
<title>{{ $page->title }}</title>
<link rel="stylesheet" href="{{ mix('css/main.css', 'assets/build') }}">
</head>
<body>
@yield('body')
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

7
source/index.blade.php Normal file
View file

@ -0,0 +1,7 @@
@extends('_layouts.main')
@section('body')
<div>
<h1>Hello world!</h1>
</div>
@endsection

14
tailwind.config.js Normal file
View file

@ -0,0 +1,14 @@
module.exports = {
purge: [
'source/**/*.blade.php',
'source/**/*.md',
'source/**/*.html',
],
theme: {
extend: {},
},
variants: {
extend: {},
},
plugins: [],
};

12
webpack.mix.js Normal file
View file

@ -0,0 +1,12 @@
const mix = require('laravel-mix');
require('laravel-mix-jigsaw');
mix.disableSuccessNotifications();
mix.setPublicPath('source/assets/build');
mix.jigsaw()
.css('source/_assets/css/main.css', 'css')
.options({
processCssUrls: false,
})
.version();