Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
create development environment of zenn
- Loading branch information
0 parents
commit 16b720f
Showing
7 changed files
with
51 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
node_modules | ||
.DS_Store | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.PHONY: $(shell egrep -o ^[a-zA-Z_-]+: $(MAKEFILE_LIST) | sed 's/://') | ||
|
||
help: ## Print this help | ||
@echo "Usage: make [target] (module=[terraform module name])" | ||
@echo | ||
@echo 'Targets:' | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
|
||
init: ## exec docker-compose build & npx zenn init | ||
@docker-compose build | ||
@docker-compose run --rm npx zenn init | ||
|
||
preview: ## exec npx zenn preview | ||
@docker-compose up | ||
|
||
article: ## exec npx zenn new:article | ||
@docker-compose run --rm npx zenn new:article | ||
|
||
book: ## exec npx zenn new:book | ||
@docker-compose run --rm npx zenn new:book |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Zenn Contents | ||
|
||
* [📘 How to use](https://zenn.dev/zenn/articles/zenn-cli-guide) | ||
* [📘 Markdown guide](https://zenn.dev/zenn/articles/markdown-guide) |
Empty file.
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
version: "3.8" | ||
|
||
services: | ||
npx: | ||
build: | ||
context: ./docker | ||
dockerfile: Dockerfile | ||
container_name: zenn | ||
working_dir: /contents | ||
volumes: | ||
- ./:/contents | ||
ports: | ||
- "8000:8000" | ||
command: npx zenn preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
FROM node:15.3.0-alpine3.10 | ||
|
||
WORKDIR /contents | ||
ENV LC_ALL=ja_JP.UTF-8 | ||
|
||
RUN apk update \ | ||
&& npm init --yes \ | ||
&& npm install -g zenn-cli@latest | ||
|
||
ENTRYPOINT ["/usr/local/bin/npx"] |