Skip to content

Commit c05a41c

Browse files
authored
Merge pull request #1 from tenex-engineering/develop
v0.2.0
2 parents 1d71b22 + 794c43e commit c05a41c

Some content is hidden

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

45 files changed

+5097
-229
lines changed

.dockerignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@
3232
**/dist
3333
LICENSE
3434
README.md
35+
36+
**/core.*

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
.devcontainer/
22
.vscode/
3+
34
dist/
45
node_modules/
6+
**/.generated
7+
8+
compose.override.yaml
9+
10+
core.*

.graphqlrc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
schema: './documents/schema.graphql'
2+
documents: './src/**/*.graphql'

.ignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
!.devcontainer
2+
!.vscode
3+
!compose.override.yaml

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# graphql-x
22

3+
## 0.2.0
4+
5+
### Minor Changes
6+
7+
- 1f8c51c: Expand directives: @create, @update
8+
39
## 0.1.5
410

511
### Patch Changes

Dockerfile

Lines changed: 15 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,33 @@
11
# syntax=docker/dockerfile:1
22

3-
# Comments are provided throughout this file to help you get started.
4-
# If you need more help, visit the Dockerfile reference guide at
5-
# https://docs.docker.com/go/dockerfile-reference/
6-
7-
# Want to help us make this template better? Share your feedback here: https://forms.gle/ybq9Krt8jtBL3iCk7
8-
93
ARG NODE_VERSION=22
104
ARG PNPM_VERSION=9
115

12-
FROM node:${NODE_VERSION}-alpine
6+
FROM node:${NODE_VERSION}-slim AS node-base
137

14-
# Use production node environment by default.
15-
ENV NODE_ENV production
8+
####
9+
FROM node-base AS deps
1610

17-
# Install pnpm.
1811
RUN --mount=type=cache,target=/root/.npm \
1912
npm install -g pnpm@${PNPM_VERSION}
2013

21-
WORKDIR /usr/src/app
14+
WORKDIR /app/
2215

23-
# Download dependencies as a separate step to take advantage of Docker's caching.
24-
# Leverage a cache mount to /root/.local/share/pnpm/store to speed up subsequent builds.
25-
# Leverage a bind mounts to package.json and pnpm-lock.yaml to avoid having to copy them into
26-
# into this layer.
2716
RUN --mount=type=bind,source=package.json,target=package.json \
2817
--mount=type=bind,source=pnpm-lock.yaml,target=pnpm-lock.yaml \
2918
--mount=type=cache,target=/root/.local/share/pnpm/store \
30-
pnpm install --prod --frozen-lockfile
19+
pnpm install --frozen-lockfile
3120

32-
# Run the application as a non-root user.
33-
USER node
21+
####
22+
FROM node-base
3423

35-
# Copy the rest of the source files into the image.
36-
COPY . .
24+
WORKDIR /app/
3725

38-
# Expose the port that the application listens on.
39-
EXPOSE 3000
26+
RUN chown node:node ./
27+
28+
COPY --chown=node:node ./ ./
29+
COPY --chown=node:node --from=deps /app/node_modules/ ./node_modules/
30+
31+
USER node
4032

41-
# Run the application.
42-
CMD npm exec
33+
CMD ["npm", "run", "dev"]

README.Docker.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

bin/graphql-x

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env node
2+
import { cli } from '../dist/cli.js'
3+
4+
await cli()

compose.yaml

Lines changed: 17 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,19 @@
1-
# Comments are provided throughout this file to help you get started.
2-
# If you need more help, visit the Docker Compose reference guide at
3-
# https://docs.docker.com/go/compose-spec-reference/
4-
5-
# Here the instructions define your application as a service called "server".
6-
# This service is built from the Dockerfile in the current directory.
7-
# You can add other services your application may depend on here, such as a
8-
# database or a cache. For examples, see the Awesome Compose repository:
9-
# https://github.com/docker/awesome-compose
101
services:
11-
server:
2+
app:
123
build:
13-
context: .
14-
environment:
15-
NODE_ENV: production
16-
ports:
17-
- 3000:3000
18-
# The commented out section below is an example of how to define a PostgreSQL
19-
# database that your application can use. `depends_on` tells Docker Compose to
20-
# start the database before your application. The `db-data` volume persists the
21-
# database data between container restarts. The `db-password` secret is used
22-
# to set the database password. You must create `db/password.txt` and add
23-
# a password of your choosing to it before running `docker-compose up`.
24-
# depends_on:
25-
# db:
26-
# condition: service_healthy
27-
# db:
28-
# image: postgres
29-
# restart: always
30-
# user: postgres
31-
# secrets:
32-
# - db-password
33-
# volumes:
34-
# - db-data:/var/lib/postgresql/data
35-
# environment:
36-
# - POSTGRES_DB=example
37-
# - POSTGRES_PASSWORD_FILE=/run/secrets/db-password
38-
# expose:
39-
# - 5432
40-
# healthcheck:
41-
# test: [ "CMD", "pg_isready" ]
42-
# interval: 10s
43-
# timeout: 5s
44-
# retries: 5
45-
# volumes:
46-
# db-data:
47-
# secrets:
48-
# db-password:
49-
# file: db/password.txt
50-
4+
context: ./
5+
stop_signal: SIGKILL
6+
tty: true
7+
develop:
8+
watch:
9+
- action: sync
10+
path: ./
11+
target: /app/
12+
ignore:
13+
- dist/
14+
- node_modules/
15+
- action: sync+restart
16+
path: package.json
17+
target: /app/package.json
18+
- action: rebuild
19+
path: pnpm-lock.yaml

cspell.config.cjs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
'use strict'
2+
3+
/** @type { import("@cspell/cspell-types").CSpellUserSettings } */
4+
// eslint-disable-next-line no-undef
5+
module.exports = {
6+
version: '0.2',
7+
language: 'en',
8+
dictionaryDefinitions: [
9+
{
10+
name: 'words',
11+
path: './words.txt',
12+
addWords: true,
13+
},
14+
],
15+
dictionaries: ['words'],
16+
ignorePaths: ['pnpm-lock.yaml'],
17+
}

0 commit comments

Comments
 (0)