Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove obsolete Babel config for graphql-language-service-parser #1530

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Use Node.js official image as the base image
FROM node:18

# Set the working directory inside the container
WORKDIR /app

# Copy package.json and yarn.lock to the working directory
COPY package.json yarn.lock ./

# Install application dependencies using Yarn
RUN yarn

# Copy the rest of the application code to the working directory
COPY . .

# Command to start the development server
CMD ["yarn", "dev"]

# Expose the port on which the application will run
EXPOSE 3000
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,20 @@ If you are using Google Chrome, or another browser that supports Progressive Web
2. Click your browser's settings menu
3. Click "Install Carbon..."

#### Running Carbon with Docker

If you prefer to run Carbon using Docker, follow these steps:

1. Build the Docker Image
```sh
docker build -t carbon .
```
2. Run the Docker Container
```sh
docker run -p 3000:3000 carbon
```
3. Open your web browser and go to http://localhost:3000.

## Community

Check out these projects our awesome community has created:
Expand Down
5 changes: 0 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ module.exports = withBundleAnalyzer(
skipWaiting: false,
},
webpack: (config, options) => {
config.module.rules.push({
test: /\.js$/,
include: /node_modules\/graphql-language-service-parser/,
use: [options.defaultLoaders.babel],
})
config.plugins.push(
new options.webpack.IgnorePlugin({
resourceRegExp: /\.html$/,
Expand Down