aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMasaya Tojo <masaya@tojo.tokyo>2024-03-18 01:04:22 +0900
committerMasaya Tojo <masaya@tojo.tokyo>2024-03-18 01:04:22 +0900
commit9f7c2e9bf63cb69a1cb8e00545e198338ca05428 (patch)
tree8b09c743ed144164102da5d5b69c20dd90ad6880
parent73ccaa0dc1d343d9a84b4f940479a0e128a8a7b5 (diff)
Execute raco pkg new.
-rw-r--r--.github/workflows/ci.yml29
-rw-r--r--.gitignore6
-rw-r--r--info.rkt9
-rw-r--r--main.rkt50
-rw-r--r--scribblings/diary-system.scrbl10
5 files changed, 104 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
new file mode 100644
index 0000000..ffba072
--- /dev/null
+++ b/.github/workflows/ci.yml
@@ -0,0 +1,29 @@
+on: [push, pull_request]
+name: CI
+jobs:
+ build:
+ name: "Build on Racket '${{ matrix.racket-version }}' (${{ matrix.racket-variant }})"
+ runs-on: ubuntu-latest
+ continue-on-error: ${{ matrix.experimental || false }}
+ strategy:
+ fail-fast: false
+ matrix:
+ racket-version: ["stable", "current"]
+ racket-variant: ["BC", "CS"]
+ include:
+ - racket-version: current
+ experimental: true
+ steps:
+ - uses: actions/checkout@v3.1.0
+ - uses: Bogdanp/setup-racket@v1.9.1
+ with:
+ architecture: x64
+ distribution: full
+ variant: ${{ matrix.racket-variant }}
+ version: ${{ matrix.racket-version }}
+ - name: Installing diary-system and its dependencies
+ run: raco pkg install --no-docs --auto --name diary-system
+ - name: Compiling diary-system and building its docs
+ run: raco setup --check-pkg-deps --unused-pkg-deps diary-system
+ - name: Testing diary-system
+ run: raco test -x -p diary-system
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..1a59348
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+*~
+\#*
+.\#*
+.DS_Store
+compiled/
+/doc/
diff --git a/info.rkt b/info.rkt
new file mode 100644
index 0000000..2fc3ee2
--- /dev/null
+++ b/info.rkt
@@ -0,0 +1,9 @@
+#lang info
+(define collection "diary-system")
+(define deps '("base"))
+(define build-deps '("scribble-lib" "racket-doc" "rackunit-lib"))
+(define scribblings '(("scribblings/diary-system.scrbl" ())))
+(define pkg-desc "Description Here")
+(define version "0.0")
+(define pkg-authors '(masaya))
+(define license '(Apache-2.0 OR MIT))
diff --git a/main.rkt b/main.rkt
new file mode 100644
index 0000000..7e16dd4
--- /dev/null
+++ b/main.rkt
@@ -0,0 +1,50 @@
+#lang racket/base
+
+(module+ test
+ (require rackunit))
+
+;; Notice
+;; To install (from within the package directory):
+;; $ raco pkg install
+;; To install (once uploaded to pkgs.racket-lang.org):
+;; $ raco pkg install <<name>>
+;; To uninstall:
+;; $ raco pkg remove <<name>>
+;; To view documentation:
+;; $ raco docs <<name>>
+;;
+;; For your convenience, we have included LICENSE-MIT and LICENSE-APACHE files.
+;; If you would prefer to use a different license, replace those files with the
+;; desired license.
+;;
+;; Some users like to add a `private/` directory, place auxiliary files there,
+;; and require them in `main.rkt`.
+;;
+;; See the current version of the racket style guide here:
+;; http://docs.racket-lang.org/style/index.html
+
+;; Code here
+
+
+
+(module+ test
+ ;; Any code in this `test` submodule runs when this file is run using DrRacket
+ ;; or with `raco test`. The code here does not run when this file is
+ ;; required by another module.
+
+ (check-equal? (+ 2 2) 4))
+
+(module+ main
+ ;; (Optional) main submodule. Put code here if you need it to be executed when
+ ;; this file is run using DrRacket or the `racket` executable. The code here
+ ;; does not run when this file is required by another module. Documentation:
+ ;; http://docs.racket-lang.org/guide/Module_Syntax.html#%28part._main-and-test%29
+
+ (require racket/cmdline)
+ (define who (box "world"))
+ (command-line
+ #:program "my-program"
+ #:once-each
+ [("-n" "--name") name "Who to say hello to" (set-box! who name)]
+ #:args ()
+ (printf "hello ~a~n" (unbox who))))
diff --git a/scribblings/diary-system.scrbl b/scribblings/diary-system.scrbl
new file mode 100644
index 0000000..359996d
--- /dev/null
+++ b/scribblings/diary-system.scrbl
@@ -0,0 +1,10 @@
+#lang scribble/manual
+@require[@for-label[diary-system
+ racket/base]]
+
+@title{diary-system}
+@author{masaya}
+
+@defmodule[diary-system]
+
+Package Description Here