2
0
mirror of https://github.com/iconify/iconify.git synced 2024-12-04 18:23:17 +00:00

Fix dev container environment

This commit is contained in:
Vjacheslav Trushkin 2022-07-08 13:24:51 +03:00
parent aebed6433d
commit 859a77b4bf
5 changed files with 2401 additions and 2848 deletions

View File

@ -1,7 +1,7 @@
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/typescript-node/.devcontainer/base.Dockerfile # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/typescript-node/.devcontainer/base.Dockerfile
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster # [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT="18-bullseye" ARG VARIANT="16-bullseye"
FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT} FROM mcr.microsoft.com/vscode/devcontainers/typescript-node:0-${VARIANT}
# [Optional] Uncomment this section to install additional OS packages. # [Optional] Uncomment this section to install additional OS packages.

View File

@ -1,7 +1,7 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/typescript-node // https://github.com/microsoft/vscode-dev-containers/tree/v0.233.0/containers/typescript-node
{ {
"name": "Node.js & TypeScript", "name": "Iconify Development",
"build": { "build": {
"dockerfile": "Dockerfile", "dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14. // Update 'VARIANT' to pick a Node version: 18, 16, 14.
@ -27,7 +27,7 @@
// "forwardPorts": [], // "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created. // Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "echo \"Run 'npm install' to install dependencies and build packages\"", "postCreateCommand": "sudo corepack enable && sudo npm i -g @antfu/ni && ni",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node" "remoteUser": "node"

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ debug_packages/
lerna-debug.log lerna-debug.log
.pnpm-debug.log .pnpm-debug.log
.idea/ .idea/
.pnpm-store/

View File

@ -199,6 +199,8 @@ I suggest to install [NI](https://github.com/antfu/ni), it makes it easy to work
Instead of figuring out if you should run `npm install` or `pnpm install` or `yarn install`, just run `ni` and it will execute current package manager, `nr build` to build, `nr test` to run tests test. Instead of figuring out if you should run `npm install` or `pnpm install` or `yarn install`, just run `ni` and it will execute current package manager, `nr build` to build, `nr test` to run tests test.
It is automatically installed if you are using Dev Container.
## Documentation ## Documentation
Documentation for all packages is available on [Iconify documentation website](https://docs.iconify.design/icon-components/): Documentation for all packages is available on [Iconify documentation website](https://docs.iconify.design/icon-components/):

File diff suppressed because it is too large Load Diff