Skip to content

Commit 659279e

Browse files
authored
Development setup via Nix (#1)
* update .gitginore based on gitigore.io * setup depenedencies for repo via Nix * Add Makefile * Add codeowners file --------- Co-authored-by: Darwin D Wu <[email protected]>
1 parent 4a50acf commit 659279e

File tree

5 files changed

+95
-4
lines changed

5 files changed

+95
-4
lines changed

.envrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use nix

.gitignore

+70-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,73 @@
1-
.DS_Store
1+
# Created by https://www.toptal.com/developers/gitignore/api/gradle,java,kotlin
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=gradle,java,kotlin
3+
4+
### Java ###
5+
# Compiled class file
6+
*.class
7+
8+
# Log file
9+
*.log
10+
11+
# BlueJ files
12+
*.ctxt
13+
14+
# Mobile Tools for Java (J2ME)
15+
.mtj.tmp/
16+
17+
# Package Files #
18+
*.jar
19+
*.war
20+
*.nar
21+
*.ear
22+
*.zip
23+
*.tar.gz
24+
*.rar
25+
26+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
27+
hs_err_pid*
28+
replay_pid*
29+
30+
### Kotlin ###
31+
# Compiled class file
32+
33+
# Log file
34+
35+
# BlueJ files
36+
37+
# Mobile Tools for Java (J2ME)
238

3-
# Ignore Gradle project-specific cache directory
39+
# Package Files #
40+
41+
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
42+
43+
### Gradle ###
444
.gradle
45+
**/build/
46+
!src/**/build/
47+
48+
# Ignore Gradle GUI config
49+
gradle-app.setting
50+
51+
# Avoid ignoring Gradle wrapper jar file (.jar files are usually ignored)
52+
!gradle-wrapper.jar
53+
54+
# Avoid ignore Gradle wrappper properties
55+
!gradle-wrapper.properties
556

6-
# Ignore Gradle build output directory
7-
build
57+
# Cache of project
58+
.gradletasknamecache
59+
60+
# Eclipse Gradle plugin generated files
61+
# Eclipse Core
62+
.project
63+
# JDT-specific (Eclipse Java Development Tools)
64+
.classpath
65+
66+
### Gradle Patch ###
67+
# Java heap dump
68+
*.hprof
69+
70+
# End of https://www.toptal.com/developers/gitignore/api/gradle,java,kotlin
71+
72+
/.direnv
73+
.DS_Store

CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @djfarrelly @darwin67 @jpwilliams @tonyhb

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.PHONY: dev
2+
dev:
3+
gradle run inngest-test-server:run

shell.nix

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
let pkgs = import <nixos-23.11> { };
2+
3+
in pkgs.mkShell {
4+
nativeBuildInputs = [
5+
# Kotlin
6+
pkgs.kotlin
7+
pkgs.gradle
8+
9+
# Oldest java version support
10+
pkgs.jdk8
11+
12+
# Tooling
13+
pkgs.detekt
14+
pkgs.ktfmt
15+
pkgs.ktlint
16+
17+
# LSPs
18+
pkgs.kotlin-language-server
19+
];
20+
}

0 commit comments

Comments
 (0)