You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`docker compose run build` -- builds full static site, takes ~3 minutes. Set timeout to 240+ seconds.
15
-
- Alternative native workflow:
16
-
```bash
17
-
npm install
18
-
npm run dist
19
-
npm run 11ty
20
-
```
21
15
22
16
### Development Server
23
17
- Run local development server:
24
18
-`docker compose up serve` -- starts Eleventy dev server on port 8081, **NEVER CANCEL** - builds then watches files. Set timeout to 300+ seconds for initial build.
25
-
- Alternative native: `npm run serve` -- starts Eleventy dev server directly
26
-
- Manual serving: After building, serve with Python: `cd _site && python3 -m http.server 8082`
27
19
28
20
### Testing Commands
29
21
- BDD integration tests:
30
22
-`docker compose run test` -- runs Cucumber.js tests with Playwright in containerized environment
31
-
- Alternative native: `npm run test:bdd` or `npm test` -- runs tests directly on host
32
23
-**Note**: Playwright installation may fail in some CI environments
33
24
- Tests require a running staging server to test against
34
25
@@ -49,7 +40,6 @@ Always test these key pages that are verified in CI:
49
40
50
41
### Build Verification
51
42
- Run `docker compose run dist && docker compose run build` and verify `_site` directory is created with content
52
-
- Alternative native: `npm run dist && npm run 11ty`
53
43
- Check that `_site/index.html` exists and contains proper HTML structure
54
44
- Verify `dist/bundle.js` exists and is approximately 330KB
1.**Webpack Build** (`docker compose run dist` or `npm run dist`): Creates `dist/bundle.js` with CSS and JS assets
83
-
2.**Eleventy Build** (`docker compose run build` or `npm run 11ty`): Processes markdown, creates HTML, copies assets to `_site/`
73
+
1.**Webpack Build** (`docker compose run dist`): Creates `dist/bundle.js` with CSS and JS assets
74
+
2.**Eleventy Build** (`docker compose run build`): Processes markdown, creates HTML, copies assets to `_site/`
84
75
85
76
### Timing Expectations
86
77
- Docker compose up: ~4-5 minutes for initial build and start (set 300+ second timeout)
87
78
- Docker dist build: ~30 seconds (set 60+ second timeout)
88
79
- Docker site build: ~3 minutes (**NEVER CANCEL** - set 240+ second timeout)
89
-
- Alternative native npm install: ~1 minute (standard timeout OK)
90
-
- Alternative native webpack dist: ~7 seconds (set 30+ second timeout)
91
-
- Alternative native Eleventy build: ~2.5 minutes (**NEVER CANCEL** - set 180+ second timeout)
92
80
93
81
### Known Build Warnings
94
82
- Sass deprecation warnings about @import rules (normal, build continues)
@@ -132,6 +120,9 @@ This creates properly structured content with frontmatter in `content/YYYY/MM/`
132
120
- CSS/JS: Add to `src/` and import in `src/index.js`
133
121
- Static files: Use Eleventy passthrough copy in `.eleventy.js`
134
122
123
+
### Adding scripts or utilities
124
+
- Ensure these are run through a docker compose command
125
+
135
126
### Troubleshooting Build Issues
136
127
1. Clear containers and rebuild: `docker compose down && docker compose build --no-cache`
137
128
2. Clear build outputs: `docker compose run --rm base rm -rf _site dist`
@@ -162,4 +153,4 @@ This is a Jekyll-to-Eleventy migrated project (now fully Eleventy) with:
162
153
- Extensive robotics content and tutorials
163
154
- Apache hosting with custom htaccess rules
164
155
165
-
**CRITICAL REMINDER**: Use Docker Compose as the primary development method. Never cancel long-running builds - they can take 3-5+ minutes for initial setup.
156
+
**CRITICAL REMINDER**: Use Docker Compose as the primary development method. Never cancel long-running builds - they can take 3-5+ minutes for initial setup.
0 commit comments