Commit d7513f5f authored by Alexandre Villeneuve's avatar Alexandre Villeneuve

Git initialized

parents
# editorconfig.org
root = true
[*]
indent_size = 2
indent_style = space
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.php]
indent_size = 4
[*.md]
trim_trailing_whitespace = false
/build_local/
/node_modules/
/vendor/
image: php:7.1
before_script:
- curl -sS https://getcomposer.org/installer | php
- curl -sL https://deb.nodesource.com/setup_6.x | bash -
- apt-get update -yqq
- apt-get install zlib1g-dev git nodejs -yqq
- docker-php-ext-install zip
- php composer.phar install
- npm install -g gulp && npm install
cache:
paths:
- node_modules/
- vendor/
pages:
script:
- npm run deploy
- mv build_production/ public/
artifacts:
paths:
- public
only:
- master
![Build Status](https://gitlab.com/pages/jigsaw/badges/master/build.svg)
---
Example [Jigsaw] website using GitLab Pages.
Learn more about GitLab Pages at https://pages.gitlab.io and the official
documentation https://docs.gitlab.com/ce/user/project/pages/.
---
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*
- [GitLab CI](#gitlab-ci)
- [Building locally](#building-locally)
- [GitLab User or Group Pages](#gitlab-user-or-group-pages)
- [Did you fork this project?](#did-you-fork-this-project)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## GitLab CI
This project's static Pages are built by [GitLab CI][ci], following the steps
defined in [`.gitlab-ci.yml`](.gitlab-ci.yml):
```
image: php:7.1
before_script:
- curl -sS https://getcomposer.org/installer | php
- curl -sL https://deb.nodesource.com/setup_6.x | bash -
- apt-get update -yqq
- apt-get install zlib1g-dev git nodejs -yqq
- docker-php-ext-install zip
- php composer.phar install
- npm install -g gulp && npm install
cache:
paths:
- node_modules/
- vendor/
pages:
script:
- npm run deploy
- mv build_production/ public/
artifacts:
paths:
- public
only:
- master
```
## Building locally
To work locally with this project, you'll have to follow the steps below:
1. Fork, clone or download this project
1. [Install][] Jigsaw
1. Generate the website: `gulp` or `jigsaw build`
1. Preview your project: `gulp watch` or `jigsaw serve`
1. Add content
Read more at Jigsaw's [documentation][].
## GitLab User or Group Pages
To use this project as your user/group website, you will need one additional
step: just rename your project to `namespace.gitlab.io`, where `namespace` is
your `username` or `groupname`. This can be done by navigating to your
project's **Settings**.
Read more about [user/group Pages][userpages] and [project Pages][projpages].
## Did you fork this project?
If you forked this project for your own use, please go to your project's
**Settings** and remove the forking relationship, which won't be necessary
unless you want to contribute back to the upstream project.
[ci]: https://about.gitlab.com/gitlab-ci/
[Jigsaw]: http://jigsaw.tighten.co/
[install]: http://jigsaw.tighten.co/docs/installation/
[documentation]: http://jigsaw.tighten.co/docs/installation/
[userpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#user-or-group-pages
[projpages]: https://docs.gitlab.com/ce/user/project/pages/introduction.html#project-pages
----
Forked from @haleksandre
<?php
/** @var $container \Illuminate\Container\Container */
/** @var $jigsaw \TightenCo\Jigsaw\Jigsaw */
\ No newline at end of file
{
"name": "tightenco/jigsaw-site",
"require": {
"tightenco/jigsaw": "^0.6.4"
}
}
<?php
return [
'production' => false,
'base' => '',
];
<?php
return [
'production' => true,
'base' => '/jigsaw',
];
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var argv = require('yargs').argv;
var bin = require('./tasks/bin');
elixir.config.assetsPath = 'source/_assets';
elixir.config.publicPath = 'source';
elixir(function(mix) {
var env = argv.e || argv.env || 'local';
var port = argv.p || argv.port || 3000;
mix.sass('main.scss', null, null, {
includePaths: ['./node_modules/bootstrap/scss/']
})
.exec(bin.path() + ' build ' + env, ['./source/*', './source/**/*', '!./source/_assets/**/*'])
.browserSync({
port: port,
server: { baseDir: 'build_' + env },
proxy: null,
files: [ 'build_' + env + '/**/*' ]
});
});
{
"name": "jigsaw-gitlab-pages",
"version": "1.0.0",
"description": "Jigsaw example for Gitlab Pages",
"author": {
"name": "Alexandre Villeneuve",
"email": "haleksviller@gmail.com"
},
"private": true,
"devDependencies": {
"bootstrap": "4.0.0-alpha.6",
"gulp": "^3.8.8",
"hasbin": "^1.2.3",
"laravel-elixir": "^6.0.0-15",
"laravel-elixir-browsersync-official": "^1.0.0",
"yargs": "^4.6.0"
},
"scripts": {
"deploy": "gulp --env production"
}
}
html, body {
background-color: #fff;
color: #636b6f;
font-family: 'Lato', sans-serif;
font-weight: 400;
height: 100vh;
margin: 0;
}
.full-height {
height: 100vh;
}
.flex-center {
align-items: center;
display: flex;
justify-content: center;
}
.position-ref {
position: relative;
}
.content {
text-align: center;
}
.title {
font-size: 84px;
}
.links > a {
color: #636b6f;
padding: 0 25px;
font-size: 12px;
font-weight: 600;
letter-spacing: .1rem;
text-decoration: none;
text-transform: uppercase;
}
.m-b-md {
margin-bottom: 30px;
}
// Body
$body-bg: #f5f8fa;
// Borders
$laravel-border-color: darken($body-bg, 10%);
$list-group-border: $laravel-border-color;
$navbar-default-border: $laravel-border-color;
$panel-default-border: $laravel-border-color;
$panel-inner-border: $laravel-border-color;
// Brands
$brand-primary: #3097D1;
$brand-info: #8eb4cb;
$brand-success: #2ab27b;
$brand-warning: #cbb956;
$brand-danger: #bf5329;
// Typography
$font-family-sans-serif: "Raleway", sans-serif;
$line-height-base: 1.6;
$text-color: #636b6f;
// Navbar
$navbar-default-bg: #fff;
// Buttons
$btn-default-color: $text-color;
// Inputs
$input-border: lighten($text-color, 40%);
$input-border-focus: lighten($brand-primary, 25%);
$input-color-placeholder: lighten($text-color, 30%);
// Panels
$panel-default-heading-bg: #fff;
// Fonts
@import url(https://fonts.googleapis.com/css?family=Lato:100,300,300italic,400,400italic,500,500italic,700,700italic);
// Variables
@import "variables";
// Third-partys
@import "bootstrap";
// Styles
@import "style";
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta http-equiv="x-ua-compatible" content="ie=edge">
<title>Jigsaw – Static Sites for Laravel Developers</title>
<link rel="stylesheet" href="{{ $base }}/css/main.css">
</head>
<body>
<div class="flex-center position-ref full-height">
@yield('content')
</div>
</body>
</html>
@extends('_layouts.master')
@section('content')
<div class="content">
<div class="title m-b-md">
<h1 class="title">About</h1>
</div>
<div class="links">
<a href="{{ $base }}/">Home</a>
<a href="http://jigsaw.tighten.co/">Jigsaw</a>
<a href="http://jigsaw.tighten.co/docs/installation/">Documentation</a>
<a href="https://github.com/tightenco/jigsaw">GitHub</a>
</div>
</div>
@endsection
@extends('_layouts.master')
@section('content')
<div class="content">
<div class="m-b-md">
<h1 class="title">Jigsaw</h1>
<p>Static Sites for Laravel Developers</p>
</div>
<div class="links">
<a href="{{ $base }}/about">About</a>
</div>
</div>
@endsection
var hasbin = require('hasbin');
var fs = require('fs');
module.exports = {
path: function() {
if (fs.existsSync('./vendor/bin/jigsaw')) {
return './vendor/bin/jigsaw'
}
if (hasbin.sync('jigsaw')) {
return 'jigsaw';
}
console.log('Could not find Jigsaw; please install it via Composer, either locally or globally.');
process.exit();
}
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment