Skip to content

Commit 40e33d8

Browse files
✨Feat : Initial Commit
0 parents  commit 40e33d8

File tree

14,819 files changed

+1089856
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

14,819 files changed

+1089856
-0
lines changed

.alexignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
CODE_OF_CONDUCT.md
2+
examples/
3+
**/*/LICENSE.md

.alexrc

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"allow": [
3+
"attacks",
4+
"color",
5+
"dead",
6+
"execute",
7+
"executed",
8+
"executes",
9+
"execution",
10+
"executions",
11+
"failed",
12+
"failure",
13+
"failures",
14+
"fire",
15+
"fires",
16+
"hook",
17+
"hooks",
18+
"host-hostess",
19+
"invalid",
20+
"remains",
21+
"special",
22+
"white"
23+
]
24+
}

.cargo/.vercel.approvers

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@vercel/web-tooling

.cargo/config.toml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
[env]
2+
CARGO_WORKSPACE_DIR = { value = "", relative = true }
3+
4+
[build]
5+
6+
rustdocflags = []
7+
8+
[target.x86_64-pc-windows-msvc]
9+
linker = "rust-lld"
10+
11+
[target.aarch64-unknown-linux-gnu]
12+
linker = "aarch64-linux-gnu-gcc"
13+
14+
[target.aarch64-unknown-linux-musl]
15+
linker = "aarch64-linux-musl-gcc"
16+
rustflags = [
17+
"--cfg",
18+
"tokio_unstable",
19+
"-Zshare-generics=y",
20+
"-Csymbol-mangling-version=v0",
21+
"-Ctarget-feature=-crt-static",
22+
"-Clink-arg=-lgcc",
23+
]
24+
25+
[target.armv7-unknown-linux-gnueabihf]
26+
linker = "arm-linux-gnueabihf-gcc"
27+
28+
[target.'cfg(all())']
29+
rustflags = [
30+
"--cfg",
31+
"tokio_unstable",
32+
"-Zshare-generics=y",
33+
"-Csymbol-mangling-version=v0",
34+
"-Aclippy::too_many_arguments",
35+
]

.config/.vercel.approvers

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nextest.toml @vercel/web-tooling

.config/nextest.toml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[[profile.default.overrides]]
2+
filter = "package(next-dev-tests)"
3+
# Default is 100ms. Extending this addresses false positives in the
4+
# next-dev integration tests.
5+
leak-timeout = "500ms"
6+
retries = 2
7+
slow-timeout = "60s"
8+
threads-required = 4
9+
failure-output = "immediate-final"

.devcontainer/Dockerfile

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# [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
2+
ARG VARIANT=16-bullseye
3+
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
4+
5+
# [Optional] Uncomment this section to install additional OS packages.
6+
# These are required to run playwright properly
7+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
8+
&& apt-get -y install --no-install-recommends \
9+
gconf-service libxext6 libxfixes3 libxi6 libxrandr2 \
10+
libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 \
11+
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
12+
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \
13+
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
14+
libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 \
15+
libatk1.0-0 libc6 libdrm-dev libgbm-dev ca-certificates fonts-liberation lsb-release xdg-utils wget \
16+
# Chromium for running Turbopack benchmarks
17+
chromium \
18+
# Used for plotters graph visualizations in turbopack benchmarks
19+
libfontconfig1-dev
20+
21+
# [Optional] Uncomment if you want to install an additional version of node using nvm
22+
# ARG EXTRA_NODE_VERSION=10
23+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
24+
25+
# [Optional] Uncomment if you want to install more global node modules
26+
# RUN su node -c "npm install -g <your-package-list-here>"
27+
28+
# Enable pnpm
29+
RUN corepack enable pnpm

.devcontainer/base.Dockerfile

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
2+
ARG VARIANT=16-bullseye
3+
FROM node:${VARIANT}
4+
5+
# [Option] Install zsh
6+
ARG INSTALL_ZSH="true"
7+
# [Option] Upgrade OS packages to their latest versions
8+
ARG UPGRADE_PACKAGES="true"
9+
10+
# Install needed packages, yarn, nvm and setup non-root user. Use a separate RUN statement to add your own dependencies.
11+
ARG USERNAME=node
12+
ARG USER_UID=1000
13+
ARG USER_GID=$USER_UID
14+
ARG NPM_GLOBAL=/usr/local/share/npm-global
15+
ENV NVM_DIR=/usr/local/share/nvm
16+
ENV NVM_SYMLINK_CURRENT=true \
17+
PATH=${NPM_GLOBAL}/bin:${NVM_DIR}/current/bin:${PATH}
18+
COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
19+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
20+
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
21+
&& apt-get purge -y imagemagick imagemagick-6-common \
22+
# Install common packages, non-root user, update yarn and install nvm
23+
&& bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
24+
# Install yarn, nvm
25+
&& rm -rf /opt/yarn-* /usr/local/bin/yarn /usr/local/bin/yarnpkg \
26+
&& bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
27+
# Configure global npm install location, use group to adapt to UID/GID changes
28+
&& if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \
29+
&& usermod -a -G npm ${USERNAME} \
30+
&& umask 0002 \
31+
&& mkdir -p ${NPM_GLOBAL} \
32+
&& touch /usr/local/etc/npmrc \
33+
&& chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc \
34+
&& chmod g+s ${NPM_GLOBAL} \
35+
&& npm config -g set prefix ${NPM_GLOBAL} \
36+
&& sudo -u ${USERNAME} npm config -g set prefix ${NPM_GLOBAL} \
37+
# Install eslint
38+
&& su ${USERNAME} -c "umask 0002 && npm install -g eslint" \
39+
&& npm cache clean --force > /dev/null 2>&1 \
40+
# Install python-is-python3 on bullseye to prevent node-gyp regressions
41+
&& . /etc/os-release \
42+
&& if [ "${VERSION_CODENAME}" = "bullseye" ]; then apt-get -y install --no-install-recommends python-is-python3; fi \
43+
# Clean up
44+
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/library-scripts
45+
46+
# [Optional] Uncomment this section to install additional OS packages.
47+
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
48+
# && apt-get -y install --no-install-recommends <your-package-list-here>
49+
50+
# [Optional] Uncomment if you want to install an additional version of node using nvm
51+
# ARG EXTRA_NODE_VERSION=10
52+
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"
53+
54+
# [Optional] Uncomment if you want to install more global node modules
55+
# RUN su node -c "npm install -g <your-package-list-here>""

.devcontainer/devcontainer.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/javascript-node
3+
{
4+
"name": "Next.js Dev Container",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8+
// Append -bullseye or -buster to pin to an OS version.
9+
// Use -bullseye variants on local arm64/Apple Silicon.
10+
"args": {
11+
"VARIANT": "16-bullseye"
12+
}
13+
},
14+
// Configure tool-specific properties.
15+
"customizations": {
16+
// Configure properties specific to VS Code.
17+
"vscode": {
18+
// Add the IDs of extensions you want installed when the container is created.
19+
"extensions": ["dbaeumer.vscode-eslint"]
20+
}
21+
},
22+
// Use 'forwardPorts' to make a list of ports inside the container available locally.
23+
// "forwardPorts": [],
24+
// Use 'postCreateCommand' to run commands after the container is created.
25+
// "postCreateCommand": "yarn install",
26+
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
27+
"remoteUser": "node",
28+
"features": {
29+
// For some reason "git" or "rust" doesn't work
30+
"ghcr.io/devcontainers/features/git:1": "os-provided",
31+
"ghcr.io/devcontainers/features/rust:1": "latest"
32+
// Github latest can't be installed due to GPG issues: https://github.com/cli/cli/discussions/6222
33+
// "github-cli": "latest",
34+
},
35+
"remoteEnv": {
36+
"DISPLAY": ":0"
37+
}
38+
}

.eslintignore

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
node_modules
2+
**/.next/**
3+
**/_next/**
4+
**/.vscode/**
5+
**/dist/**
6+
e2e-tests/**
7+
examples/with-eslint/**
8+
examples/with-typescript-eslint-jest/**
9+
examples/with-kea/**
10+
examples/with-custom-babel-config/**
11+
examples/with-flow/**
12+
examples/with-jest/**
13+
examples/with-mobx-state-tree/**
14+
examples/with-mobx/**
15+
examples/with-tigris/db/models/todoItems.ts
16+
packages/next/src/bundles/webpack/packages/*.runtime.js
17+
packages/next/src/bundles/webpack/packages/lazy-compilation-*.js
18+
packages/next/src/compiled/**/*
19+
packages/react-refresh-utils/**/*.js
20+
packages/react-dev-overlay/lib/**
21+
**/__tmp__/**
22+
.github/actions/next-stats-action/.work
23+
.github/actions/issue-validator/index.mjs
24+
.github/actions/issue-labeler/lib/index.js
25+
.github/actions/validate-docs-links/lib/index.js
26+
packages/next-codemod/transforms/__testfixtures__/**/*
27+
packages/next-codemod/transforms/__tests__/**/*
28+
packages/next-codemod/**/*.js
29+
packages/next-codemod/**/*.d.ts
30+
packages/next-env/**/*.d.ts
31+
packages/create-next-app/templates/**
32+
test/integration/eslint/**
33+
test/integration/script-loader/**/*
34+
test/development/basic/legacy-decorators/**/*
35+
test/production/emit-decorator-metadata/**/*.js
36+
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
37+
test-timings.json
38+
packages/next-swc/crates/**
39+
bench/nested-deps/pages/**
40+
bench/nested-deps/components/**
41+
packages/next-bundle-analyzer/index.d.ts
42+
examples/with-typescript-graphql/lib/gql/
43+
test/development/basic/hmr/components/parse-error.js

0 commit comments

Comments
 (0)