Skip to content

Commit

Permalink
Merge pull request #258 from codecrafters-io/update-js
Browse files Browse the repository at this point in the history
Rename package from @codecrafters/build-your-own-redis to @codecrafters/redis.
  • Loading branch information
rohitpaulk authored Sep 11, 2024
2 parents e7f4375 + 8a148d5 commit e6b6b94
Show file tree
Hide file tree
Showing 7 changed files with 46 additions and 77 deletions.
19 changes: 9 additions & 10 deletions compiled_starters/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions compiled_starters/javascript/package.json
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": {}
}
12 changes: 7 additions & 5 deletions dockerfiles/nodejs-21.Dockerfile
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
19 changes: 9 additions & 10 deletions solutions/javascript/01-jm1/code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions solutions/javascript/01-jm1/code/package.json
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": {}
}
19 changes: 9 additions & 10 deletions starter_templates/javascript/code/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 4 additions & 14 deletions starter_templates/javascript/code/package.json
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": {}
}

0 comments on commit e6b6b94

Please sign in to comment.