Compare commits
No commits in common. "6ba1a8e9755ae03287457d5fe9bb3565f7421c4b" and "9c50fe4984c346cec825c2875e1ba81ec385f5b1" have entirely different histories.
6ba1a8e975
...
9c50fe4984
7 changed files with 8 additions and 101 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
@ -1,9 +1,9 @@
|
||||||
|
.direnv/
|
||||||
|
|
||||||
# nixago: ignore-linked-files
|
# nixago: ignore-linked-files
|
||||||
|
/DCO.md
|
||||||
|
/rustfmt.toml
|
||||||
/treefmt.toml
|
/treefmt.toml
|
||||||
/.prettierrc.json
|
/.prettierrc.json
|
||||||
/lefthook.yml
|
/lefthook.yml
|
||||||
/.conform.yaml
|
/.conform.yaml
|
||||||
|
|
||||||
# mfgames-project-setup: ignore-files
|
|
||||||
/.direnv/
|
|
|
@ -1,4 +0,0 @@
|
||||||
|
|
||||||
# mfgames-project-setup: ignore-files
|
|
||||||
/LICENSE.md
|
|
||||||
/DCO.md
|
|
34
DCO.md
34
DCO.md
|
@ -1,34 +0,0 @@
|
||||||
Developer Certificate of Origin
|
|
||||||
Version 1.1
|
|
||||||
|
|
||||||
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
|
|
||||||
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies of this
|
|
||||||
license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
|
|
||||||
Developer's Certificate of Origin 1.1
|
|
||||||
|
|
||||||
By making a contribution to this project, I certify that:
|
|
||||||
|
|
||||||
(a) The contribution was created in whole or in part by me and I
|
|
||||||
have the right to submit it under the open source license
|
|
||||||
indicated in the file; or
|
|
||||||
|
|
||||||
(b) The contribution is based upon previous work that, to the best
|
|
||||||
of my knowledge, is covered under an appropriate open source
|
|
||||||
license and I have the right under that license to submit that
|
|
||||||
work with modifications, whether created in whole or in part
|
|
||||||
by me, under the same open source license (unless I am
|
|
||||||
permitted to submit under a different license), as indicated
|
|
||||||
in the file; or
|
|
||||||
|
|
||||||
(c) The contribution was provided directly to me by some other
|
|
||||||
person who certified (a), (b) or (c) and I have not modified
|
|
||||||
it.
|
|
||||||
|
|
||||||
(d) I understand and agree that this project and the contribution
|
|
||||||
are public and that a record of the contribution (including all
|
|
||||||
personal information I submit with it, including my sign-off) is
|
|
||||||
maintained indefinitely and may be redistributed consistent with
|
|
||||||
this project or the open source license(s) involved.
|
|
5
TASKS.md
5
TASKS.md
|
@ -1,3 +1,6 @@
|
||||||
# Tasks
|
# Tasks
|
||||||
|
|
||||||
Nothing, obviously there is nothing wrong with this library.
|
- [ ] Need to exclude the generated files from Prettier
|
||||||
|
- [ ] Include the C# editor config setup
|
||||||
|
- [ ] Add .direnv into `.gitignore`
|
||||||
|
- [ ] Add `*.mjs` to Prettier
|
||||||
|
|
12
flake.nix
12
flake.nix
|
@ -15,7 +15,6 @@
|
||||||
let
|
let
|
||||||
# Helpers for producing system-specific outputs
|
# Helpers for producing system-specific outputs
|
||||||
supportedSystems = [ "x86_64-linux" ];
|
supportedSystems = [ "x86_64-linux" ];
|
||||||
|
|
||||||
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
forEachSupportedSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f {
|
||||||
inherit system;
|
inherit system;
|
||||||
pkgs = import nixpkgs { inherit system; };
|
pkgs = import nixpkgs { inherit system; };
|
||||||
|
@ -70,16 +69,6 @@
|
||||||
prettier = prettierDefaults // prettier;
|
prettier = prettierDefaults // prettier;
|
||||||
rust = rustDefaults // rust;
|
rust = rustDefaults // rust;
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = import ./src/ignores/default.nix {
|
|
||||||
inherit system pkgs nixago nixago-exts;
|
|
||||||
|
|
||||||
contributorCovenant = contributorCovenantDefaults // contributorCovenant;
|
|
||||||
creativeCommonsAttributionNonCommercialShareAlike = licenseDefaults // creativeCommonsAttributionNonCommercialShareAlike;
|
|
||||||
creativeCommonsAttributionShareAlike = licenseDefaults // creativeCommonsAttributionShareAlike;
|
|
||||||
developerCertificateOfOrigin = developerCertificateOfOriginDefaults // developerCertificateOfOrigin;
|
|
||||||
mit = licenseDefaults // mit;
|
|
||||||
};
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
packages = [
|
packages = [
|
||||||
|
@ -95,7 +84,6 @@
|
||||||
|
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
${configs.shellHook}
|
${configs.shellHook}
|
||||||
${ignores}
|
|
||||||
${pkgs.lefthook}/bin/lefthook install
|
${pkgs.lefthook}/bin/lefthook install
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,7 +18,6 @@ let
|
||||||
"*.jsx"
|
"*.jsx"
|
||||||
"*.md"
|
"*.md"
|
||||||
"*.mdx"
|
"*.mdx"
|
||||||
"*.mjs"
|
|
||||||
"*.scss"
|
"*.scss"
|
||||||
"*.ts"
|
"*.ts"
|
||||||
"*.yaml"
|
"*.yaml"
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
inputs @ { ... }:
|
|
||||||
let
|
|
||||||
lib = inputs.pkgs.lib;
|
|
||||||
ignore-sentinel = "mfgames-project-setup: ignore-files";
|
|
||||||
ignore-list = [
|
|
||||||
"_mfgames_project_setup_ignore \".gitignore\" \".direnv/\""
|
|
||||||
]
|
|
||||||
++ lib.optionals inputs.contributorCovenant.enable [
|
|
||||||
"_mfgames_project_setup_ignore \".prettierignore\" \"DCO.md\""
|
|
||||||
]
|
|
||||||
++ lib.optionals inputs.creativeCommonsAttributionShareAlike.enable [
|
|
||||||
"_mfgames_project_setup_ignore \".prettierignore\" \"LICENSE.md\""
|
|
||||||
]
|
|
||||||
++ lib.optionals inputs.creativeCommonsAttributionNonCommercialShareAlike.enable [
|
|
||||||
"_mfgames_project_setup_ignore \".prettierignore\" \"LICENSE.md\""
|
|
||||||
]
|
|
||||||
++ lib.optionals inputs.developerCertificateOfOrigin.enable [
|
|
||||||
"_mfgames_project_setup_ignore \".prettierignore\" \"LICENSE.md\""
|
|
||||||
]
|
|
||||||
++ lib.optionals inputs.mit.enable [
|
|
||||||
"_mfgames_project_setup_ignore \".prettierignore\" \"LICENSE.md\""
|
|
||||||
];
|
|
||||||
in
|
|
||||||
''
|
|
||||||
_mfgames_project_setup_ignore() (
|
|
||||||
if ! test -f $1
|
|
||||||
then
|
|
||||||
touch $1
|
|
||||||
fi
|
|
||||||
if ! grep -qF "${ignore-sentinel}" $1
|
|
||||||
then
|
|
||||||
echo -e "\n# ${ignore-sentinel}" >> $1
|
|
||||||
fi
|
|
||||||
if ! grep -qF "/$2" $1
|
|
||||||
then
|
|
||||||
newgitignore="$(awk "1;/${ignore-sentinel}/{ print \"/$2\"; }" $1)"
|
|
||||||
echo -e -n "$newgitignore" > $1
|
|
||||||
git add $1
|
|
||||||
echo "mfgames-project-setup: '/$2' added to $1"
|
|
||||||
fi
|
|
||||||
)
|
|
||||||
${lib.concatStringsSep "\n" ignore-list}
|
|
||||||
''
|
|
||||||
|
|
||||||
## Add this output to the ignore file
|
|
Loading…
Reference in a new issue