Skip to content

Commit

Permalink
Add new release v0.5
Browse files Browse the repository at this point in the history
Signed-off-by: aisuko <[email protected]>
  • Loading branch information
Aisuko committed Feb 26, 2021
1 parent 4cf8aeb commit 98ca674
Show file tree
Hide file tree
Showing 9 changed files with 4,387 additions and 28,568 deletions.
14 changes: 14 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# [Choice] Node.js version: 14, 12, 10
ARG VARIANT=14
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"
11 changes: 11 additions & 0 deletions .devcontainer/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
## How to use vscode-dev-containers as the development environment

* Install the VScode plugins Remote-Containers
* Open current folder in contianer
* The detail please check the [document](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-an-existing-folder-in-a-container)
* Waiting for load the code into the environment
* Make sure you already in the development container `Dev Container:Node.js`
* Open the new terminal and run the command which in Makefile
* According to the Remote-Containers extensio tips open the browser to access the website

![](./vscode-dev-container.png)
27 changes: 27 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "Node.js",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 10, 12, 14
"args": { "VARIANT": "14" }
},

// Set *default* container specific settings.json values on container create.
"settings": {
"terminal.integrated.shell.linux": "/bin/bash"
},

// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"dbaeumer.vscode-eslint"
],

// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],

// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",

// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node"
}
Binary file added .devcontainer/vscode-dev-container.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
setup-libs:
.PHONY: npm-install
npm-install:
npm install

.PHONY: site
site:
npm start

build:
.PHONY: npm-build
npm-build:
npm run build

.PHONY: npm-audit-fix
npm-audit-fix:
npm audit fix

.PHONY: gatsby-build
gatsby-build:
gatsby build && gatsby serve

Loading

0 comments on commit 98ca674

Please sign in to comment.