Add build-configs.yaml
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
d3e70b9754
commit
b33edd649f
6 changed files with 38 additions and 20 deletions
20
building-static-websites-sculpin/demo/.gitignore
vendored
20
building-static-websites-sculpin/demo/.gitignore
vendored
|
|
@ -1,18 +1,10 @@
|
||||||
/.phpunit.result.cache
|
|
||||||
/output_*/
|
/output_*/
|
||||||
/vendor/
|
|
||||||
|
|
||||||
|
/.phpunit.cache
|
||||||
|
/.phpunit.result.cache
|
||||||
|
|
||||||
|
# Nix
|
||||||
/.direnv/
|
/.direnv/
|
||||||
|
|
||||||
/source/build/*
|
# Composer
|
||||||
!/source/build/.keep
|
/vendor/
|
||||||
|
|
||||||
# Devenv
|
|
||||||
.devenv*
|
|
||||||
devenv.local.nix
|
|
||||||
|
|
||||||
# direnv
|
|
||||||
.direnv
|
|
||||||
|
|
||||||
# pre-commit
|
|
||||||
.pre-commit-config.yaml
|
|
||||||
|
|
|
||||||
7
building-static-websites-sculpin/demo/build
Executable file
7
building-static-websites-sculpin/demo/build
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
export PATH="$PATH:./vendor/bin"
|
||||||
|
|
||||||
|
sculpin generate "$@"
|
||||||
3
building-static-websites-sculpin/demo/build-configs.yaml
Normal file
3
building-static-websites-sculpin/demo/build-configs.yaml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
---
|
||||||
|
name: demo
|
||||||
|
template: php-sculpin
|
||||||
5
building-static-websites-sculpin/demo/clean
Executable file
5
building-static-websites-sculpin/demo/clean
Executable file
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
rm -rfv output_* vendor
|
||||||
|
|
@ -1,22 +1,26 @@
|
||||||
{
|
{
|
||||||
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
outputs =
|
outputs = inputs:
|
||||||
{ nixpkgs, ... }:
|
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import inputs.nixpkgs { inherit system; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
devShells.${system}.default =
|
devShells.${system}.default =
|
||||||
with pkgs;
|
with pkgs;
|
||||||
mkShell {
|
mkShell {
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
php83
|
nodePackages.browser-sync
|
||||||
|
|
||||||
|
(php83.buildEnv {
|
||||||
|
extraConfig = ''
|
||||||
|
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
|
||||||
|
'';
|
||||||
|
})
|
||||||
|
|
||||||
php83Packages.composer
|
php83Packages.composer
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
formatters.${system} = pkgs.nixfmt-rfc-style;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
7
building-static-websites-sculpin/demo/watch
Executable file
7
building-static-websites-sculpin/demo/watch
Executable file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
export PATH="$PATH:./vendor/bin"
|
||||||
|
|
||||||
|
sculpin generate --server --watch "$@"
|
||||||
Loading…
Add table
Add a link
Reference in a new issue