Inital Commit UwU
This commit is contained in:
commit
4ead9ab57d
12 changed files with 116 additions and 0 deletions
14
.gitignore
vendored
Normal file
14
.gitignore
vendored
Normal 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
17
bootstrap.php
Normal 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
5
composer.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"require": {
|
||||
"tightenco/jigsaw": "^1.3"
|
||||
}
|
||||
}
|
9
config.php
Normal file
9
config.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'production' => false,
|
||||
'baseUrl' => '',
|
||||
'title' => 'Jigsaw',
|
||||
'description' => 'Website description.',
|
||||
'collections' => [],
|
||||
];
|
5
config.production.php
Normal file
5
config.production.php
Normal file
|
@ -0,0 +1,5 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'production' => true,
|
||||
];
|
16
package.json
Normal file
16
package.json
Normal 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"
|
||||
}
|
||||
}
|
3
source/_assets/css/main.css
Normal file
3
source/_assets/css/main.css
Normal file
|
@ -0,0 +1,3 @@
|
|||
@import 'tailwindcss/base';
|
||||
@import 'tailwindcss/components';
|
||||
@import 'tailwindcss/utilities';
|
14
source/_layouts/main.blade.php
Normal file
14
source/_layouts/main.blade.php
Normal 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>
|
BIN
source/assets/images/jigsaw.png
Normal file
BIN
source/assets/images/jigsaw.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 25 KiB |
7
source/index.blade.php
Normal file
7
source/index.blade.php
Normal file
|
@ -0,0 +1,7 @@
|
|||
@extends('_layouts.main')
|
||||
|
||||
@section('body')
|
||||
<div>
|
||||
<h1>Hello world!</h1>
|
||||
</div>
|
||||
@endsection
|
14
tailwind.config.js
Normal file
14
tailwind.config.js
Normal 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
12
webpack.mix.js
Normal 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();
|
Loading…
Reference in a new issue