Skip to content

Commit

Permalink
remove extra cell
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijeetSaroha committed Dec 9, 2023
1 parent 8be588a commit f793ef3
Showing 1 changed file with 35 additions and 78 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"id": "a445f2d9-e743-4b24-9b47-2f00455898de",
"metadata": {},
"source": [
"## Unveiling the Power of Working Directories"
"## Unveiling the attribute: working-directory"
]
},
{
Expand Down Expand Up @@ -59,6 +59,7 @@
"```\n",
"\n",
"2. **Group Scope**\n",
" \n",
" Moving a level deeper, the group scope allows you to tailor the working directory for all targets within a specific group.\n",
"```yaml\n",
"version: 1.0\n",
Expand All @@ -72,6 +73,7 @@
" # This target operates within the /path/to/group/directory\n",
"```\n",
"3. **Target Scope**\n",
" \n",
" For fine-grained control over individual targets, the working directory can be specified at the target scope.\n",
"```yaml\n",
"version: 1.0\n",
Expand Down Expand Up @@ -158,83 +160,27 @@
"source": [
"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",
"\n",
"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",
"\n",
"```yaml\n",
"version: 1.0\n",
"working-directory: \"/multi_language_project\"\n",
"groups:\n",
" backend_python:\n",
" working-directory: \"backend/python\"\n",
" targets:\n",
" test:\n",
" run: |\n",
" echo \"Running Python backend tests...\"\n",
" # Add commands to run Python backend tests\n",
" lint:\n",
" run: |\n",
" echo \"Linting Python code...\"\n",
" # Add commands for linting Python code\n",
"\n",
" backend_java:\n",
" working-directory: \"backend/java\"\n",
" targets:\n",
" test:\n",
" working-directory: \"src\"\n",
" run: |\n",
" echo \"Running Java backend tests...\"\n",
" # Add commands to run Java backend tests\n",
" build:\n",
" run: |\n",
" echo \"Building Java artifacts...\"\n",
" # Add commands for building Java artifacts\n",
"\n",
" frontend_react:\n",
" working-directory: \"frontend/react\"\n",
" targets:\n",
" test:\n",
" run: |\n",
" echo \"Running React frontend tests...\"\n",
" # Add commands to run React frontend tests\n",
" build:\n",
" run: |\n",
" echo \"Building React frontend...\"\n",
" # Add commands for building React frontend\n",
"\n",
" frontend_vue:\n",
" working-directory: \"frontend/vue\"\n",
" targets:\n",
" test:\n",
" run: |\n",
" echo \"Running Vue.js frontend tests...\"\n",
" # Add commands to run Vue.js frontend tests\n",
" build:\n",
" working-directory: \"src\"\n",
" run: |\n",
" echo \"Building Vue.js frontend...\"\n",
" # Add commands for building Vue.js frontend\n",
"\n",
"```"
"Let's create a Makim configuration file *(.makim.yaml)* that showcases the flexibility of the Working Directory feature in managing tasks for different languages."
]
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 1,
"id": "726bcf5a-7cc5-4448-af62-0564e2cbe1a1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Writing .makim.yaml\n"
"Overwriting .makim.yaml\n"
]
}
],
"source": [
"%%writefile .makim.yaml\n",
"version: 1.0\n",
"working-directory: \"/multi_language_project\"\n",
"working-directory: \"/tmp/multi_language_project\"\n",
"groups:\n",
" backend_python:\n",
" working-directory: \"backend/python\"\n",
Expand Down Expand Up @@ -289,32 +235,43 @@
},
{
"cell_type": "code",
"execution_count": 4,
"id": "6896833c-7464-4d8d-b419-4f2991f00dcb",
"execution_count": 19,
"id": "af7432d1",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
"name": "stdout",
"output_type": "stream",
"text": [
"Linting Python code...\n",
"Running Java backend tests...\n",
"Running React frontend tests...\n",
"Building Vue.js frontend...\n"
]
}
],
"source": [
"1 + 1"
"!makim --makim-file ./.makim.yaml backend_python.lint\n",
"!makim --makim-file ./.makim.yaml backend_java.test\n",
"!makim --makim-file ./.makim.yaml frontend_react.test\n",
"!makim --makim-file ./.makim.yaml frontend_vue.build"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "708e264b-fcf8-4515-bef7-08410a4026c4",
"cell_type": "markdown",
"id": "184db134",
"metadata": {},
"outputs": [],
"source": []
"source": [
"## Conclusion\n",
"\n",
"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",
"\n",
"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",
"\n",
"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",
"\n",
"Start optimizing your projects with Makim today!"
]
}
],
"metadata": {
Expand All @@ -333,7 +290,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.1"
"version": "3.11.6"
}
},
"nbformat": 4,
Expand Down

0 comments on commit f793ef3

Please sign in to comment.