Skip to content

Commit

Permalink
feat: initial checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
joostfaassen committed Aug 29, 2021
0 parents commit 33e8bef
Show file tree
Hide file tree
Showing 32 changed files with 2,439 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true

[*.php]
indent_style = space
indent_size = 4
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
tmp/
.env
*.tmp
*.bak
*.swp
*~.nib
data/
local.properties
.settings/

### NetBeans ###
nbproject/private/
build/
nbbuild/
dist/
nbdist/
nbactions.xml
nb-configuration.xml


### vim ###
[._]*.s[a-w][a-z]
[._]s[a-w][a-z]
*.un~
Session.vim
.netrwhist
*~

### Composer ###
vendor/
autotune.json
public/
40 changes: 40 additions & 0 deletions bin/blazon
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
#!/usr/bin/env php
<?php

use Blazon\Command\PublishCommand;
use Symfony\Component\Console\Application;
use Symfony\Component\Dotenv\Dotenv;
use AutoTune\Tuner;

$loader = __DIR__ . '/../vendor/autoload.php';

if (!file_exists($loader)) {
$loader = __DIR__ . '/../../../autoload.php';
}

if (!file_exists($loader)) {
die(
'You must set up the project dependencies, run the following commands:' . PHP_EOL .
'curl -s http://getcomposer.org/installer | php' . PHP_EOL .
'php composer.phar install' . PHP_EOL
);
}

$l = require $loader;

if (class_exists(Tuner::class)) {
Tuner::init($l);
}

$filename = getcwd() . '/.env';
if (file_exists($filename)) {
$dotenv = new Dotenv(true);
$dotenv->load($filename);
}


$application = new Application('Blazon', '1.0.0');
$application->setCatchExceptions(true);
$application->add(new PublishCommand($publisher));

$application->run();
38 changes: 38 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "linkorb/blazon",
"description": "Blazon: publish fast and beautiful websites, campaign sites, documentation, guides etc from data (e.g. Xillion Resources)",
"homepage": "http://www.github.com/linkorb/blazon",
"keywords": ["php", "xillion", "content", "cms", "static", "dynamic", "generator", "gatsby"],
"type": "application",
"authors": [
{
"name": "LinkORB Engineering",
"email": "[email protected]",
"role": "Development"
}
],
"require": {
"php": ">=7.2.0",
"symfony/console": "^5.2",
"symfony/yaml": "^5.0",
"twig/twig": "^1.0",
"symfony/dotenv": "^5.0",
"monolog/monolog": "^2.3",
"league/container": "^4.0",
"linkorb/xillion": "^1.8",
"league/event": "^3.0"
},
"require-dev": {
"linkorb/autotune": "^1.0"
},
"autoload": {
"psr-4": {
"Blazon\\": "src/",
"Example\\": "example/src/"
}
},
"bin": [
"bin/xillion-publisher"
],
"license": "MIT"
}
Loading

0 comments on commit 33e8bef

Please sign in to comment.