fargate-nodejs 1.0.4 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -139,6 +139,63 @@ npm run build
139
139
  npm test
140
140
  ```
141
141
 
142
+ ## Contributing
143
+
144
+ Contributions are welcome! Here's how you can help:
145
+
146
+ New to contributing? Check out [GitHub's guide to contributing to a project](https://docs.github.com/en/get-started/exploring-projects-on-github/contributing-to-a-project).
147
+
148
+ ### Reporting Issues
149
+
150
+ - Check if the issue already exists in [GitHub Issues](https://github.com/alexsanteenodev/fargate-nodejs/issues)
151
+ - Provide a clear description and reproduction steps
152
+ - Include your CDK version, Node.js version, and relevant code snippets
153
+
154
+ ### Submitting Pull Requests
155
+
156
+ 1. Fork the repository
157
+ 2. Create a feature branch: `git checkout -b feature/my-feature`
158
+ 3. Make your changes and add tests
159
+ 4. Run tests: `npm test`
160
+ 5. Build the project: `npm run build`
161
+ 6. Commit with a clear message: `git commit -m "feat: add new feature"`
162
+ 7. Push to your fork: `git push origin feature/my-feature`
163
+ 8. Open a Pull Request with a description of your changes
164
+
165
+ ### Development Setup
166
+
167
+ ```bash
168
+ # Clone your fork
169
+ git clone https://github.com/YOUR_USERNAME/fargate-nodejs.git
170
+ cd fargate-nodejs
171
+
172
+ # Install dependencies
173
+ npm install
174
+
175
+ # Build the project
176
+ npm run build
177
+
178
+ # Run tests
179
+ npm test
180
+
181
+ # Test locally with examples
182
+ cd examples/basic
183
+ npm install
184
+ npx cdk synth
185
+ ```
186
+
187
+ ### Code Style
188
+
189
+ - Follow the existing code style
190
+ - Use TypeScript for all code
191
+ - Keep commits atomic and well-described
192
+
193
+ ### Testing
194
+
195
+ - Add unit tests for new features
196
+ - Ensure all tests pass before submitting
197
+ - Test with the example projects when possible
198
+
142
199
  ## License
143
200
 
144
201
  [MIT](https://github.com/alexsanteenodev/fargate-nodejs/blob/main/LICENSE)
@@ -0,0 +1,15 @@
1
+ ARG NODE_VERSION=18
2
+ FROM node:${NODE_VERSION}-alpine
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy the bundled application code
8
+ # The code is already bundled by esbuild, no npm install needed
9
+ COPY . .
10
+
11
+ # Expose port
12
+ EXPOSE 3000
13
+
14
+ # Start the application
15
+ CMD ["node", "index.js"]
@@ -0,0 +1,5 @@
1
+ #!/bin/sh
2
+ set -e
3
+
4
+ # Execute the main command
5
+ exec "$@"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fargate-nodejs",
3
- "version": "1.0.4",
3
+ "version": "1.0.10",
4
4
  "description": "Fargate NodeJS lib, similar to lambda nodejs library",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -27,6 +27,7 @@
27
27
  },
28
28
  "files": [
29
29
  "dist/**/*",
30
+ "lib/docker/**/*",
30
31
  "README.md",
31
32
  "LICENSE"
32
33
  ],