Skip to content

Commit

Permalink
chore(dev): Improve Development Environment (#190)
Browse files Browse the repository at this point in the history
* chore(dev): Improve Development Environment

* ci(push): Add a few more versions to testing

* chore(dev-deps): No Idea
  • Loading branch information
EntraptaJ authored Nov 25, 2020
1 parent 0a38262 commit 8b4d395
Show file tree
Hide file tree
Showing 5 changed files with 12,210 additions and 437 deletions.
9 changes: 5 additions & 4 deletions .devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@
"dockerFile": "./Dockerfile.dev",
"settings": {
// This dev container does include /bin/bash if you prefer to use it instead of ash.
"terminal.integrated.shell.linux": "/bin/sh"
"terminal.integrated.shell.linux": "/bin/bash"
},

"remoteEnv": {
"SHELL": "/bin/sh"
"SHELL": "/bin/bash"
},

"extensions": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"visualstudioexptteam.vscodeintellicode"
"visualstudioexptteam.vscodeintellicode",
"piotrpalarz.vscode-gitignore-generator"
],

"remoteUser": "node",
Expand All @@ -26,4 +27,4 @@
"source=ts-esnode-modules,target=/workspace/node_modules,type=volume"
],
"postCreateCommand": "sudo chown node node_modules && npm i"
}
}
2 changes: 1 addition & 1 deletion .github/workflows/Push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
node: ['13.9', '13.10', '13.11', '14.x']
node: ['13.9', '13.10', '13.11', '14.1', '14.4', '14.15.1', '>=14.15.0']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
Expand Down
74 changes: 54 additions & 20 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# File created using '.gitignore Generator' for Visual Studio Code: https://bit.ly/vscode-gig

# Created by https://www.gitignore.io/api/visualstudiocode,linux,node
# Edit at https://www.gitignore.io/?templates=visualstudiocode,linux,node
# Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,linux,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,node,linux,macos

### Linux ###
*~
Expand All @@ -18,6 +18,35 @@
# .nfs files are created when an open file is removed but is still being accessed
.nfs*

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

### Node ###
# Logs
logs
Expand Down Expand Up @@ -74,6 +103,12 @@ typings/
# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

Expand All @@ -86,28 +121,25 @@ typings/
# dotenv environment variables file
.env
.env.test
.env*.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# next.js build output
# Next.js build output
.next

# nuxt.js build output
# Nuxt.js build / generate output
.nuxt
dist

# rollup.js default build output
dist/

# Uncomment the public line if your project uses Gatsby
# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# https://create-react-app.dev/docs/using-the-public-folder/#docsNav
# public

# Storybook build outputs
.out
.storybook-out

# vuepress build output
.vuepress/dist

Expand All @@ -120,23 +152,25 @@ dist/
# DynamoDB Local files
.dynamodb/

# Temporary folders
tmp/
temp/
# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide

# End of https://www.gitignore.io/api/visualstudiocode,linux,node
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,node,linux,macos

# Custom rules (everything added below won't be overriden by 'Generate .gitignore File' if you use 'Update' option)

out
out
11 changes: 8 additions & 3 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
ARG VARIANT="14"
FROM node:14-slim
ARG VARIANT="15"
FROM node:${VARIANT}-slim

USER root
# [Optional] Uncomment this section to install additional OS packages.
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends git sudo ca-certificates
RUN apt-get update \
&& export DEBIAN_FRONTEND=noninteractive && apt-get -y install --no-install-recommends git sudo ca-certificates \
&& adduser node sudo \
&& echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers

USER node
Loading

0 comments on commit 8b4d395

Please sign in to comment.