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_*/
|
||||
/vendor/
|
||||
|
||||
/.phpunit.cache
|
||||
/.phpunit.result.cache
|
||||
|
||||
# Nix
|
||||
/.direnv/
|
||||
|
||||
/source/build/*
|
||||
!/source/build/.keep
|
||||
|
||||
# Devenv
|
||||
.devenv*
|
||||
devenv.local.nix
|
||||
|
||||
# direnv
|
||||
.direnv
|
||||
|
||||
# pre-commit
|
||||
.pre-commit-config.yaml
|
||||
# Composer
|
||||
/vendor/
|
||||
|
|
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";
|
||||
|
||||
outputs =
|
||||
{ nixpkgs, ... }:
|
||||
outputs = inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
pkgs = import nixpkgs { inherit system; };
|
||||
pkgs = import inputs.nixpkgs { inherit system; };
|
||||
in
|
||||
{
|
||||
devShells.${system}.default =
|
||||
with pkgs;
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
php83
|
||||
nodePackages.browser-sync
|
||||
|
||||
(php83.buildEnv {
|
||||
extraConfig = ''
|
||||
error_reporting = E_ALL & ~E_DEPRECATED & ~E_USER_DEPRECATED
|
||||
'';
|
||||
})
|
||||
|
||||
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