Skip to content

Commit 37b790f

Browse files
committed
Init project
1 parent f833728 commit 37b790f

File tree

4 files changed

+156
-0
lines changed

4 files changed

+156
-0
lines changed

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ignore these directories
2+
/.git
3+
/recipes
4+
5+
# ignore log files
6+
/.log
7+
8+
# ignore generated files
9+
*.elc
10+
11+
# eask packages
12+
.eask/
13+
dist/
14+
15+
# packaging
16+
*-autoloads.el
17+
*-pkg.el

Eask

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
(package "google-gemini"
2+
"0.1.0"
3+
"Elisp library for the Google Gemini API")
4+
5+
(website-url "https://github.com/emacs-openai/google-gemini")
6+
(keywords "comm" "google" "gemini")
7+
8+
(package-file "google-gemini.el")
9+
10+
(script "test" "echo \"Error: no test specified\" && exit 1")
11+
12+
(source "gnu")
13+
14+
(depends-on "emacs" "26.1")

Makefile

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
##
2+
# Eask generated template Makefile
3+
#
4+
# File located in https://github.com/emacs-eask/template-elisp/blob/master/Makefile
5+
##
6+
7+
EMACS ?= emacs
8+
EASK ?= eask
9+
10+
.PHONY: clean package install compile test checkdoc lint
11+
12+
# CI entry point
13+
#
14+
# You can add or remove any commands here
15+
#
16+
# (Option 1): Basic for beginner, only tests for package's installation
17+
ci: clean package install compile
18+
# (Option 2): Advanced for a high-quality package
19+
#ci: clean package install compile checkdoc lint test
20+
21+
# Build an package artefact, default to `dist` folder
22+
#
23+
# This is used to test if your package can be built correctly before the
24+
# package installation.
25+
package:
26+
@echo "Packaging..."
27+
$(EASK) package
28+
29+
# Install package
30+
#
31+
# If your package is a single file package, you generally wouldn't need to
32+
install:
33+
@echo "Installing..."
34+
$(EASK) install
35+
36+
# Byte-compile package
37+
#
38+
# Compile all your package .el files to .elc
39+
compile:
40+
@echo "Compiling..."
41+
$(EASK) compile
42+
43+
# Run regression tests
44+
#
45+
# The default test is `ert`; but Eask also support other regression test!
46+
# See https://emacs-eask.github.io/Getting-Started/Commands-and-options/#-linter
47+
test:
48+
@echo "Testing..."
49+
$(EASK) install-deps --dev
50+
$(EASK) test ert ./test/*.el
51+
52+
# Run checkdoc
53+
#
54+
# See https://www.emacswiki.org/emacs/CheckDoc
55+
checkdoc:
56+
@echo "Checking documentation..."
57+
$(EASK) lint checkdoc --strict
58+
59+
# Lint package metadata
60+
#
61+
# See https://github.com/purcell/package-lint
62+
lint:
63+
@echo "Linting..."
64+
$(EASK) lint package
65+
66+
# Generate autoloads file
67+
#
68+
# NOTE: This is generally unnecessary
69+
autoloads:
70+
@echo "Generating autoloads..."
71+
$(EASK) autoloads
72+
73+
# Generate -pkg file
74+
#
75+
# NOTE: This is generally unnecessary
76+
pkg-file:
77+
@echo "Generating -pkg file..."
78+
$(EASK) pkg-file
79+
80+
# Clean up
81+
#
82+
# This will clean all the entire workspace including the following folders
83+
# and files
84+
#
85+
# - .eask folder (sandbox)
86+
# - all .elc files
87+
clean:
88+
$(EASK) clean all

google-gemini.el

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
;;; google-gemini.el --- Elisp library for the Google Gemini API -*- lexical-binding: t; -*-
2+
3+
;; Copyright (C) 2024 JenChieh
4+
5+
;; Author: JenChieh <jcs090218@gmail.com>
6+
;; Maintainer: JenChieh <jcs090218@gmail.com>
7+
;; URL: https://github.com/emacs-openai/google-gemini
8+
;; Version: 0.1.0
9+
;; Package-Requires: ((emacs "26.1"))
10+
;; Keywords: comm google gemini
11+
12+
;; This file is not part of GNU Emacs.
13+
14+
;; This program is free software: you can redistribute it and/or modify
15+
;; it under the terms of the GNU General Public License as published by
16+
;; the Free Software Foundation, either version 3 of the License, or
17+
;; (at your option) any later version.
18+
19+
;; This program is distributed in the hope that it will be useful,
20+
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
21+
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22+
;; GNU General Public License for more details.
23+
24+
;; You should have received a copy of the GNU General Public License
25+
;; along with this program. If not, see <https://www.gnu.org/licenses/>.
26+
27+
;;; Commentary:
28+
;;
29+
;; Elisp library for the Google Gemini API
30+
;;
31+
32+
;;; Code:
33+
34+
;; Happy coding! ;)
35+
36+
(provide 'google-gemini)
37+
;;; google-gemini.el ends here

0 commit comments

Comments
 (0)