-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from codecrafters-io/update-js
Rename package from @codecrafters/build-your-own-redis to @codecrafters/redis.
- Loading branch information
Showing
7 changed files
with
46 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{ | ||
"name": "@codecrafters/build-your-own-redis", | ||
"version": "1.0.0", | ||
"description": "Build your own Redis challenge, from CodeCrafters", | ||
"main": "main.js", | ||
"scripts": { | ||
"dev": "node app/main.js" | ||
}, | ||
"keywords": [ | ||
"build-your-own-x" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": {} | ||
} | ||
"name": "@codecrafters/redis", | ||
"version": "1.0.0", | ||
"dependencies": {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# syntax=docker/dockerfile:1.7-labs | ||
FROM node:21.7-alpine3.19 | ||
|
||
# Ensures the container is re-built if dependency files change | ||
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="package.json,package-lock.json" | ||
|
||
WORKDIR /app | ||
|
||
COPY package.json ./ | ||
COPY package-lock.json ./ | ||
# .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses | ||
COPY --exclude=.git --exclude=README.md . /app | ||
|
||
# If dependencies in the package lock do not match those in package.json, instead of updating the package lock, npm ci will exit with an error. | ||
# Install deps | ||
RUN npm ci | ||
|
||
RUN mkdir -p /app-cached | ||
# If the node_modules directory exists, move it to /app-cached | ||
RUN if [ -d "/app/node_modules" ]; then mv /app/node_modules /app-cached; fi | ||
RUN mkdir -p /app-cached | ||
RUN if [ -d "/app/node_modules" ]; then mv /app/node_modules /app-cached; fi |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{ | ||
"name": "@codecrafters/build-your-own-redis", | ||
"version": "1.0.0", | ||
"description": "Build your own Redis challenge, from CodeCrafters", | ||
"main": "main.js", | ||
"scripts": { | ||
"dev": "node app/main.js" | ||
}, | ||
"keywords": [ | ||
"build-your-own-x" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": {} | ||
} | ||
"name": "@codecrafters/redis", | ||
"version": "1.0.0", | ||
"dependencies": {} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,5 @@ | ||
{ | ||
"name": "@codecrafters/build-your-own-redis", | ||
"version": "1.0.0", | ||
"description": "Build your own Redis challenge, from CodeCrafters", | ||
"main": "main.js", | ||
"scripts": { | ||
"dev": "node app/main.js" | ||
}, | ||
"keywords": [ | ||
"build-your-own-x" | ||
], | ||
"author": "", | ||
"license": "MIT", | ||
"dependencies": {} | ||
} | ||
"name": "@codecrafters/redis", | ||
"version": "1.0.0", | ||
"dependencies": {} | ||
} |