Skip to content

Commit

Permalink
chore: Rename project to 'neon'
Browse files Browse the repository at this point in the history
  • Loading branch information
bow committed Dec 27, 2023
1 parent ac7a79e commit f68795e
Show file tree
Hide file tree
Showing 60 changed files with 729 additions and 729 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
= Changelog

:repo_url: https://github.com/bow/lens
:repo_url: https://github.com/bow/neon

This is a changelog for the `lens` project.
This is a changelog for the `neon` project.
All notable changes to this project will be documented in this file.

The format is based on https://keepachangelog.com/en/1.0.0/[Keep a Changelog] and this
Expand Down
16 changes: 8 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (c) 2022 Wibowo Arindrarto <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
#
# This file is part of lens <https://github.com/bow/lens>.
# This file is part of neon <https://github.com/bow/neon>.

FROM golang:1.21-alpine AS builder

Expand All @@ -22,19 +22,19 @@ FROM golang:1.21-alpine
ARG REVISION
ARG BUILD_TIME

LABEL org.opencontainers.image.title="lens" \
org.opencontainers.image.url="https://ghcr.io/bow/lens" \
org.opencontainers.image.source="https://github.com/bow/lens" \
LABEL org.opencontainers.image.title="neon" \
org.opencontainers.image.url="https://ghcr.io/bow/neon" \
org.opencontainers.image.source="https://github.com/bow/neon" \
org.opencontainers.image.authors="Wibowo Arindrarto <[email protected]>" \
org.opencontainers.image.revision="${REVISION}" \
org.opencontainers.image.created="${BUILD_TIME}" \
org.opencontainers.image.licenses="BSD-3-Clause"

COPY --from=builder /src/bin/lens /bin/lens
COPY --from=builder /src/bin/neon /bin/neon

RUN mkdir -p /var/data/
ENV LENS_SERVE_ADDR=tcp://0.0.0.0:7000 \
LENS_SERVE_DB_PATH=/var/data/lens.db
ENV NEON_SERVE_ADDR=tcp://0.0.0.0:7000 \
NEON_SERVE_DB_PATH=/var/data/neon.db

WORKDIR /runtime
ENTRYPOINT ["lens"]
ENTRYPOINT ["neon"]
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Copyright (c) 2022 Wibowo Arindrarto <[email protected]>
# SPDX-License-Identifier: BSD-3-Clause
#
# This file is part of lens <https://github.com/bow/lens>.
# This file is part of neon <https://github.com/bow/neon>.

# Cross-platform adjustments.
SYS := $(shell uname 2> /dev/null)
Expand All @@ -19,7 +19,7 @@ else
$(error error: unsupported development platform)
endif

APP_NAME := lens
APP_NAME := neon
GO_VERSION := $(shell (head -n 3 go.mod | $(SED_EXE) 's/^go//g' | tail -n 1))
REPO_NAME := $(shell (head -n 1 go.mod | $(SED_EXE) 's/^module //g'))

Expand Down Expand Up @@ -147,16 +147,16 @@ internal/database/parser_mock_test.go: internal/parser.go
internal/server/store_mock_test.go: internal/store.go
mockgen -source=$< -package=server FeedStore > $@

internal/reader/client_mock_test.go: api/lens_grpc.pb.go
mockgen -source=$< -package=reader LensClient > $@
internal/reader/client_mock_test.go: api/neon_grpc.pb.go
mockgen -source=$< -package=reader NeonClient > $@


.PHONY: protos
protos: $(PROTO_FILES) ## Generate code from protobuf.
@protoc \
-I=$(PROTO_DIR) \
--go_opt=Mlens.proto="$(REPO_NAME)/api;api" \
--go-grpc_opt=Mlens.proto="$(REPO_NAME)/api;api" \
--go_opt=Mneon.proto="$(REPO_NAME)/api;api" \
--go-grpc_opt=Mneon.proto="$(REPO_NAME)/api;api" \
--go_out=$(PROTO_DIR) --go_opt=paths=source_relative \
--go-grpc_out=$(PROTO_DIR) --go-grpc_opt=paths=source_relative \
$(PROTO_FILES)
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `lens`
# `neon`

[![ci](https://github.com/bow/lens/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/lens/actions?query=branch%3Amaster)
[![cogerage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/lens/test_coverage)
[![ci](https://github.com/bow/neon/actions/workflows/ci.yml/badge.svg)](https://github.com/bow/neon/actions?query=branch%3Amaster)
[![coverage](https://api.codeclimate.com/v1/badges/7ee8245b58f68014d987/test_coverage)](https://codeclimate.com/github/bow/neon/test_coverage)

`lens` is a feed reader suite.
`neon` is a feed reader suite.
2 changes: 1 addition & 1 deletion api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
_ "embed"
)

//go:embed lens.proto
//go:embed neon.proto
var proto []byte

// Proto() returns the proto file that describes the server interface.
Expand Down
Loading

0 comments on commit f68795e

Please sign in to comment.