-
Notifications
You must be signed in to change notification settings - Fork 1
Convert the project to use Node.js type stripping #4
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
**/.env* | ||
**/.git | ||
**/.idea | ||
**/.config | ||
**/.npm | ||
**/.github | ||
**/.DS_Store | ||
**/.gitignore | ||
**/.scannerwork | ||
**/.editorconfig | ||
**/certs | ||
**/nodemon.json | ||
**/node_modules | ||
**/npm-debug.log | ||
**/public | ||
**/.dtx |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | ||
name: tests | ||
|
||
on: [pull_request, push] | ||
|
||
env: | ||
FORCE_COLOR: 1 | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
node: ['lts/*'] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Use Node.js ${{ matrix.node }} | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ matrix.node }} | ||
- run: npm i | ||
- run: npm test --color=always | ||
env: | ||
SOCKET_API_KEY: ${{ secrets.SOCKET_API_KEY }} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
node_modules | ||
sandbox.js | ||
.nyc_output | ||
package-lock.json | ||
public | ||
coverage | ||
.tap | ||
.nova | ||
.dtx |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,7 @@ COPY *.json ./ | |
RUN npm install --ignore-scripts | ||
|
||
# Copy all source code | ||
COPY src ./src | ||
|
||
# Build the application | ||
RUN npm run build | ||
COPY . . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is so that as the project grows you don't have to constantly update a file list. You are free to change this if you prefer. |
||
|
||
# Environment variables for configuration | ||
ENV MCP_PORT="3000" | ||
|
@@ -21,4 +18,4 @@ ENV MCP_PORT="3000" | |
EXPOSE ${MCP_PORT} | ||
|
||
# Command to run the server | ||
CMD [ "node", "build/index.js" , "--http"] | ||
CMD [ "node", "--experimental-strip-types", "index.ts" , "--http"] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't need to build in production either! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I switched to
-
instead of:
to disambiguate npm scripts that are run with globs and those just grouped together that don't run together.