Skip to content

Commit

Permalink
feat(dev): add tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
kungfux committed Jul 7, 2024
1 parent e3a78b6 commit 47f0b67
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package-lock.json
.vscode/*
!.vscode/settings.json
!.vscode/extensions.json
!.vscode/tasks.json

# Misc
_sass/dist
Expand Down
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@
"scss.validate": false,
"less.validate": false,
// Stylint extension settings
"stylelint.snippet": ["css", "scss"],
"stylelint.validate": ["css", "scss"]
"stylelint.snippet": [
"css",
"scss"
],
"stylelint.validate": [
"css",
"scss"
],
// Environment variables
"jekyll_env.development": "JEKYLL_ENV=development"
}
80 changes: 80 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Set env to development",
"hide": true,
"type": "shell",
"command": "set",
"args": [
"${config:jekyll_env.development}"
]
},
{
"label": "Build (Jekyll)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"build"
],
"problemMatcher": [],
"dependsOn": [
"Set env to development"
]
},
{
"label": "Build (NodeJS)",
"type": "shell",
"command": "npm",
"args": [
"run",
"build"
],
"problemMatcher": []
},
{
"label": "Start watch (Jekyll)",
"type": "shell",
"command": "bundle",
"args": [
"exec",
"jekyll",
"serve",
"--force_polling",
"--livereload"
],
"problemMatcher": [],
"dependsOn": [
"Set env to development"
]
},
{
"label": "Start watch (NodeJS)",
"type": "shell",
"command": "npm",
"args": [
"run",
"watch:js"
],
"problemMatcher": []
},
{
"label": "Start watch (Jekyll + NodeJS)",
"dependsOn": [
"Start watch (NodeJS)",
"Start watch (Jekyll)"
],
"group": {
"kind": "build",
"isDefault": true
},
"runOptions": {
"runOn": "folderOpen"
}
}
]
}

0 comments on commit 47f0b67

Please sign in to comment.