Skip to content

Commit f793ef3

Browse files
remove extra cell
1 parent 8be588a commit f793ef3

File tree

1 file changed

+35
-78
lines changed

1 file changed

+35
-78
lines changed

pages/blog/makim-efficient-workflows-with-makims-working-directory/blog-working-directory.ipynb

Lines changed: 35 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"id": "a445f2d9-e743-4b24-9b47-2f00455898de",
2424
"metadata": {},
2525
"source": [
26-
"## Unveiling the Power of Working Directories"
26+
"## Unveiling the attribute: working-directory"
2727
]
2828
},
2929
{
@@ -59,6 +59,7 @@
5959
"```\n",
6060
"\n",
6161
"2. **Group Scope**\n",
62+
" \n",
6263
" Moving a level deeper, the group scope allows you to tailor the working directory for all targets within a specific group.\n",
6364
"```yaml\n",
6465
"version: 1.0\n",
@@ -72,6 +73,7 @@
7273
" # This target operates within the /path/to/group/directory\n",
7374
"```\n",
7475
"3. **Target Scope**\n",
76+
" \n",
7577
" For fine-grained control over individual targets, the working directory can be specified at the target scope.\n",
7678
"```yaml\n",
7779
"version: 1.0\n",
@@ -158,83 +160,27 @@
158160
"source": [
159161
"The project consists of a backend with components implemented in both Python and Java, and a frontend with components using React and Vue.js. To efficiently manage and run tasks for each language or framework, the Working Directory feature proves invaluable.\n",
160162
"\n",
161-
"Let's create a Makim configuration file (makim.yaml) that showcases the flexibility of the Working Directory feature in managing tasks for different languages.\n",
162-
"\n",
163-
"```yaml\n",
164-
"version: 1.0\n",
165-
"working-directory: \"/multi_language_project\"\n",
166-
"groups:\n",
167-
" backend_python:\n",
168-
" working-directory: \"backend/python\"\n",
169-
" targets:\n",
170-
" test:\n",
171-
" run: |\n",
172-
" echo \"Running Python backend tests...\"\n",
173-
" # Add commands to run Python backend tests\n",
174-
" lint:\n",
175-
" run: |\n",
176-
" echo \"Linting Python code...\"\n",
177-
" # Add commands for linting Python code\n",
178-
"\n",
179-
" backend_java:\n",
180-
" working-directory: \"backend/java\"\n",
181-
" targets:\n",
182-
" test:\n",
183-
" working-directory: \"src\"\n",
184-
" run: |\n",
185-
" echo \"Running Java backend tests...\"\n",
186-
" # Add commands to run Java backend tests\n",
187-
" build:\n",
188-
" run: |\n",
189-
" echo \"Building Java artifacts...\"\n",
190-
" # Add commands for building Java artifacts\n",
191-
"\n",
192-
" frontend_react:\n",
193-
" working-directory: \"frontend/react\"\n",
194-
" targets:\n",
195-
" test:\n",
196-
" run: |\n",
197-
" echo \"Running React frontend tests...\"\n",
198-
" # Add commands to run React frontend tests\n",
199-
" build:\n",
200-
" run: |\n",
201-
" echo \"Building React frontend...\"\n",
202-
" # Add commands for building React frontend\n",
203-
"\n",
204-
" frontend_vue:\n",
205-
" working-directory: \"frontend/vue\"\n",
206-
" targets:\n",
207-
" test:\n",
208-
" run: |\n",
209-
" echo \"Running Vue.js frontend tests...\"\n",
210-
" # Add commands to run Vue.js frontend tests\n",
211-
" build:\n",
212-
" working-directory: \"src\"\n",
213-
" run: |\n",
214-
" echo \"Building Vue.js frontend...\"\n",
215-
" # Add commands for building Vue.js frontend\n",
216-
"\n",
217-
"```"
163+
"Let's create a Makim configuration file *(.makim.yaml)* that showcases the flexibility of the Working Directory feature in managing tasks for different languages."
218164
]
219165
},
220166
{
221167
"cell_type": "code",
222-
"execution_count": 3,
168+
"execution_count": 1,
223169
"id": "726bcf5a-7cc5-4448-af62-0564e2cbe1a1",
224170
"metadata": {},
225171
"outputs": [
226172
{
227173
"name": "stdout",
228174
"output_type": "stream",
229175
"text": [
230-
"Writing .makim.yaml\n"
176+
"Overwriting .makim.yaml\n"
231177
]
232178
}
233179
],
234180
"source": [
235181
"%%writefile .makim.yaml\n",
236182
"version: 1.0\n",
237-
"working-directory: \"/multi_language_project\"\n",
183+
"working-directory: \"/tmp/multi_language_project\"\n",
238184
"groups:\n",
239185
" backend_python:\n",
240186
" working-directory: \"backend/python\"\n",
@@ -289,32 +235,43 @@
289235
},
290236
{
291237
"cell_type": "code",
292-
"execution_count": 4,
293-
"id": "6896833c-7464-4d8d-b419-4f2991f00dcb",
238+
"execution_count": 19,
239+
"id": "af7432d1",
294240
"metadata": {},
295241
"outputs": [
296242
{
297-
"data": {
298-
"text/plain": [
299-
"2"
300-
]
301-
},
302-
"execution_count": 4,
303-
"metadata": {},
304-
"output_type": "execute_result"
243+
"name": "stdout",
244+
"output_type": "stream",
245+
"text": [
246+
"Linting Python code...\n",
247+
"Running Java backend tests...\n",
248+
"Running React frontend tests...\n",
249+
"Building Vue.js frontend...\n"
250+
]
305251
}
306252
],
307253
"source": [
308-
"1 + 1"
254+
"!makim --makim-file ./.makim.yaml backend_python.lint\n",
255+
"!makim --makim-file ./.makim.yaml backend_java.test\n",
256+
"!makim --makim-file ./.makim.yaml frontend_react.test\n",
257+
"!makim --makim-file ./.makim.yaml frontend_vue.build"
309258
]
310259
},
311260
{
312-
"cell_type": "code",
313-
"execution_count": null,
314-
"id": "708e264b-fcf8-4515-bef7-08410a4026c4",
261+
"cell_type": "markdown",
262+
"id": "184db134",
315263
"metadata": {},
316-
"outputs": [],
317-
"source": []
264+
"source": [
265+
"## Conclusion\n",
266+
"\n",
267+
"In conclusion, Makim's working-directory feature empowers users with a flexible and efficient approach to project management. Throughout this blog, we explored how this feature, applied at the global, group, and target scopes, provides unparalleled customization and control over the execution environment.\n",
268+
"\n",
269+
"By isolating commands, offering flexibility in configuration, and ensuring ease of use, Makim's working-directory feature becomes an invaluable asset in your toolkit. It not only streamlines the execution of commands but also enhances the overall organization and maintainability of your projects.\n",
270+
"\n",
271+
"Harness the power of working directories in Makim to elevate your project management game. As you integrate this tool into your workflow, you'll discover a newfound simplicity and clarity in your command execution. Enjoy the benefits of an organized and optimized project environment, courtesy of Makim's innovative features.\n",
272+
"\n",
273+
"Start optimizing your projects with Makim today!"
274+
]
318275
}
319276
],
320277
"metadata": {
@@ -333,7 +290,7 @@
333290
"name": "python",
334291
"nbconvert_exporter": "python",
335292
"pygments_lexer": "ipython3",
336-
"version": "3.8.1"
293+
"version": "3.11.6"
337294
}
338295
},
339296
"nbformat": 4,

0 commit comments

Comments
 (0)