generated from actions/javascript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from yarn to npm and refactor the action code (#81)
* Switch from yarn to npm and refactor the action code * wip: 🔕 temporary commit
- Loading branch information
1 parent
3254eb0
commit 7b35abe
Showing
21 changed files
with
1,946 additions
and
3,280 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,17 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json", | ||
"name": "default", | ||
"image": "node:20-bookworm", | ||
"features": { | ||
"ghcr.io/devcontainers/features/github-cli:1": {}, | ||
"ghcr.io/devcontainers/features/sshd:1": {} | ||
}, | ||
"customizations": { | ||
"vscode": { | ||
"extensions": [ | ||
"streetsidesoftware.code-spell-checker" | ||
] | ||
} | ||
}, | ||
"postCreateCommand": "npm install" | ||
} |
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
This file was deleted.
Oops, something went wrong.
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
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,13 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-release-config.json | ||
# docs: https://docs.github.com/en/repositories/releasing-projects-on-github/automatically-generated-release-notes | ||
|
||
changelog: | ||
categories: | ||
- title: 🛠 Fixes | ||
labels: [type:fix, type:bug] | ||
- title: 🚀 Features | ||
labels: [type:feature, type:feature_request] | ||
- title: 📦 Dependency updates | ||
labels: [dependencies] | ||
- title: Other Changes | ||
labels: ['*'] |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,25 +1,28 @@ | ||
#!/usr/bin/make | ||
# Makefile readme (ru): <https://blog.hook.sh/nix/makefile-full-doc/> | ||
# Makefile readme (en): <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents> | ||
# Makefile readme: <https://www.gnu.org/software/make/manual/html_node/index.html#SEC_Contents> | ||
|
||
SHELL = /bin/bash | ||
DC_RUN_ARGS = --rm --user "$(shell id -u):$(shell id -g)" | ||
.DEFAULT_GOAL := build | ||
.MAIN := build | ||
|
||
.PHONY : help install shell lint test build | ||
.DEFAULT_GOAL : help | ||
|
||
help: ## Show this help | ||
@printf "\033[33m%s:\033[0m\n" 'Available commands' | ||
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf " \033[32m%-18s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST) | ||
NODE_IMAGE = node:20-alpine | ||
RUN_ARGS = --rm -v "$(shell pwd):/src:rw" \ | ||
-t --workdir "/src" \ | ||
-u "$(shell id -u):$(shell id -g)" \ | ||
-e "NPM_CONFIG_UPDATE_NOTIFIER=false" \ | ||
-e PATH="$$PATH:/src/node_modules/.bin" $(NODE_IMAGE) | ||
|
||
.PHONY: install | ||
install: ## Install all dependencies | ||
docker-compose run $(DC_RUN_ARGS) node yarn install --no-progress --non-interactive | ||
docker run $(RUN_ARGS) npm install | ||
|
||
.PHONY: shell | ||
shell: ## Start shell into a container with node | ||
docker-compose run $(DC_RUN_ARGS) node sh | ||
docker run -e "PS1=\[\033[1;34m\]\w\[\033[0;35m\] \[\033[1;36m\]# \[\033[0m\]" -i $(RUN_ARGS) sh | ||
|
||
lint: ## Execute provided linters | ||
docker-compose run $(DC_RUN_ARGS) node yarn lint | ||
.PHONY: lint | ||
lint: ## Run lint | ||
docker run $(RUN_ARGS) npm run lint | ||
|
||
build: ## Build frontend | ||
docker-compose run $(DC_RUN_ARGS) node yarn build | ||
.PHONY: build | ||
build: install ## Build the extension and pack it into a zip file | ||
docker run $(RUN_ARGS) npm run build |
Oops, something went wrong.