Skip to content

Commit 98ca674

Browse files
committed
Add new release v0.5
Signed-off-by: aisuko <[email protected]>
1 parent 4cf8aeb commit 98ca674

File tree

9 files changed

+4387
-28568
lines changed

9 files changed

+4387
-28568
lines changed

.devcontainer/Dockerfile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# [Choice] Node.js version: 14, 12, 10
2+
ARG VARIANT=14
3+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:${VARIANT}
4+
5+
# [Optional] Uncomment this section to install additional OS packages.
6+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
# && apt-get -y install --no-install-recommends <your-package-list-here>
8+
9+
# [Optional] Uncomment if you want to install an additional version of node using nvm
10+
# ARG EXTRA_NODE_VERSION=10
11+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
12+
13+
# [Optional] Uncomment if you want to install more global node modules
14+
# RUN su node -c "npm install -g <your-package-list-here>"

.devcontainer/README.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
## How to use vscode-dev-containers as the development environment
2+
3+
* Install the VScode plugins Remote-Containers
4+
* Open current folder in contianer
5+
* The detail please check the [document](https://code.visualstudio.com/docs/remote/containers#_quick-start-open-an-existing-folder-in-a-container)
6+
* Waiting for load the code into the environment
7+
* Make sure you already in the development container `Dev Container:Node.js`
8+
* Open the new terminal and run the command which in Makefile
9+
* According to the Remote-Containers extensio tips open the browser to access the website
10+
11+
![](./vscode-dev-container.png)

.devcontainer/devcontainer.json

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"name": "Node.js",
3+
"build": {
4+
"dockerfile": "Dockerfile",
5+
// Update 'VARIANT' to pick a Node version: 10, 12, 14
6+
"args": { "VARIANT": "14" }
7+
},
8+
9+
// Set *default* container specific settings.json values on container create.
10+
"settings": {
11+
"terminal.integrated.shell.linux": "/bin/bash"
12+
},
13+
14+
// Add the IDs of extensions you want installed when the container is created.
15+
"extensions": [
16+
"dbaeumer.vscode-eslint"
17+
],
18+
19+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
20+
// "forwardPorts": [],
21+
22+
// Use 'postCreateCommand' to run commands after the container is created.
23+
// "postCreateCommand": "yarn install",
24+
25+
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
26+
"remoteUser": "node"
27+
}
312 KB
Loading

Makefile

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,20 @@
1-
setup-libs:
1+
.PHONY: npm-install
2+
npm-install:
23
npm install
34

5+
.PHONY: site
46
site:
57
npm start
68

7-
build:
9+
.PHONY: npm-build
10+
npm-build:
11+
npm run build
12+
13+
.PHONY: npm-audit-fix
14+
npm-audit-fix:
15+
npm audit fix
16+
17+
.PHONY: gatsby-build
18+
gatsby-build:
819
gatsby build && gatsby serve
20+

0 commit comments

Comments
 (0)