-
-
Notifications
You must be signed in to change notification settings - Fork 5.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate build tasks #1843
Automate build tasks #1843
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for adding this feature (though I believe the CLI is more efficient 😄 ). I have found some details that can be improved, which I will explain below.
I understand that. But isn't it nice to just open a project and not have to think about a repeatable step to start the server? Frankly, I forgot all the commands after a while, so having such a familiar way to execute commands is quite useful. 😊 |
cf3fc02
to
47f0b67
Compare
Don't worry, OMZ plugins will help you remember the command line you have used. For example, to run a startup script, just press a key . and ↑, and the command line will appear automatically: cli.mov |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To reduce the time we spend using GitHub's rudimentary review tools, I've directly presented an improved tasks configuration. What do you think?
tasks.json
:
{
"version": "2.0.0",
"tasks": [
{
"label": "Run Jekyll Server",
"type": "shell",
"command": "./tools/run.sh",
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": [],
"detail": "Runs the Jekyll server with live reload."
},
{
"label": "Build Jekyll Site",
"type": "shell",
"command": "./tools/test.sh",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build the Jekyll site for produnction."
},
{
"label": "Build JS (watch)",
"type": "shell",
"command": "npm run watch:js",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build JS files in watch mode."
},
{
"label": "Build CSS",
"type": "shell",
"command": "npm run build:css",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build CSS files."
},
{
"label": "Build JS & CSS",
"type": "shell",
"command": "npm run build",
"group": {
"kind": "build"
},
"problemMatcher": [],
"detail": "Build JS & CSS for production."
}
]
}
@cotes2020 I wanted to be able to have a task that would start build and watch for both Jekyll and JS. That's why I avoided using |
Understood, you can add a group task to accomplish it, but it's recommended not to make it the default task because |
I'm fine. Usually, I need just the Jekyll server, so it makes sense. Do you want to apply your changes cause you completely redone the work |
Yes, you can append a task similar to the one you wrote to meet your development requirements: {
"label": "Start watch (Jekyll + NodeJS)",
"dependsOn": [
"Start watch (NodeJS)",
"Start watch (Jekyll)"
],
"group": {
"kind": "build",
// Jus dont set it as default, pls
// "isDefault": true
}
} |
6b37c5a
to
5eba105
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good to go now
commit 04b0036 Author: Steve Hoang <82992510+lotusk08@users.noreply.github.com> Date: Sun Jul 14 12:29:51 2024 +0700 Delete 2019-08-09-getting-started.md commit f5ef595 Merge: 4b0f50a 8c30f0a Author: Steve Hoang <82992510+lotusk08@users.noreply.github.com> Date: Sun Jul 14 12:26:22 2024 +0700 Merge remote-tracking branch 'upstream/master' commit 8c30f0a Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri Jul 12 02:03:52 2024 +0800 build(dev): support for running tasks in macOS commit e4db1a1 Author: Alexander Fuks <kungfux@users.noreply.github.com> Date: Thu Jul 11 00:14:47 2024 +0400 feat(dev): add vscode tasks (cotes2020#1843) commit e3a78b6 Author: Daniel Singleton <48238314+goodnightdaniel@users.noreply.github.com> Date: Fri Jul 5 13:53:02 2024 -0700 feat: add Threads social links (cotes2020#1837) commit 8673e13 Author: Daniel Singleton <48238314+goodnightdaniel@users.noreply.github.com> Date: Fri Jul 5 05:03:01 2024 -0700 feat: add Reddit social option (cotes2020#1836) commit a07a57e Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu Jul 4 02:21:22 2024 +0800 feat(ui): make `info-prompt` icon looks like the letter "i" (cotes2020#1835) commit db9e58b Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu Jul 4 01:49:30 2024 +0800 build(deps-dev): bump the dev-deps group with 3 updates (cotes2020#1824) Updates the requirements on [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core), [@babel/plugin-transform-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-properties) and [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env) to permit the latest version. Updates `@babel/core` to 7.24.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-core) Updates `@babel/plugin-transform-class-properties` to 7.24.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-plugin-transform-class-properties) Updates `@babel/preset-env` to 7.24.7 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.7/packages/babel-preset-env) --- updated-dependencies: - dependency-name: "@babel/core" dependency-type: direct:development dependency-group: dev-deps - dependency-name: "@babel/plugin-transform-class-properties" dependency-type: direct:development dependency-group: dev-deps - dependency-name: "@babel/preset-env" dependency-type: direct:development dependency-group: dev-deps ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> commit e6532ad Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu Jul 4 01:42:29 2024 +0800 refactor: fix typos in locale variable statment -> statement commit fbba0a4 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jul 2 06:00:39 2024 +0800 chore: fix typos in project files and docs commit c876731 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon Jul 1 07:02:36 2024 +0800 feat(ui): improve visibility of inline code (cotes2020#1831) commit 9ca7519 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu Jun 27 05:30:53 2024 +0800 docs: unify the style of badges commit 0709854 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun Jun 16 22:25:41 2024 +0800 fix: adapt the giscus localization parameter (cotes2020#1810) commit f1d3583 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat Jun 8 00:45:59 2024 +0800 build(devcontainer): add omz plugins & verify extension signature VSCode fixed signature validation hangs in v1.90 commit cf853f1 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Fri Jun 7 19:27:54 2024 +0800 chore: upgrade `husky` v9 settings commit 7ca9c59 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Wed Jun 5 23:51:10 2024 +0800 build(deps-dev): remove package `rollup-plugin-license` (cotes2020#1796) The `rollup-plugin-license` has been using too many deprecated dependencies, so it is necessary to remove it. As an alternative, this changes uses Rollup `output.banner` to insert copyright information. Since `terser` runs after `output`, it is not possible to insert the Front Matter defining permlink for `sw.js` through the same way (Jekyll Front Matter is YAML rather than JS, which would cause errors with terser). Therefore, _Jekyll Collection_ is now used to add permlink to `sw.js`, with the collection named `app`, and the directory placed in `_app`. This directory is not tracked by git, but it will be included when building the gem. commit 250880c Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jun 4 19:28:02 2024 +0800 docs: change ordering of badges commit 88b844c Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jun 4 19:26:17 2024 +0800 build(deps): improve dependency grouping commit 3b46629 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Tue Jun 4 01:36:27 2024 +0800 build(deps-dev): bump the npm group across 1 directory with 8 updates Updates the requirements on [@babel/core](https://github.com/babel/babel/tree/HEAD/packages/babel-core), [@babel/plugin-transform-class-properties](https://github.com/babel/babel/tree/HEAD/packages/babel-plugin-transform-class-properties), [@babel/preset-env](https://github.com/babel/babel/tree/HEAD/packages/babel-preset-env), [conventional-changelog-conventionalcommits](https://github.com/conventional-changelog/conventional-changelog/tree/HEAD/packages/conventional-changelog-conventionalcommits), [rollup](https://github.com/rollup/rollup), [rollup-plugin-license](https://github.com/mjeanroy/rollup-plugin-license), [semantic-release](https://github.com/semantic-release/semantic-release) and [stylelint](https://github.com/stylelint/stylelint) to permit the latest version. Updates `@babel/core` to 7.24.6 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-core) Updates `@babel/plugin-transform-class-properties` to 7.24.6 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-plugin-transform-class-properties) Updates `@babel/preset-env` to 7.24.6 - [Release notes](https://github.com/babel/babel/releases) - [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md) - [Commits](https://github.com/babel/babel/commits/v7.24.6/packages/babel-preset-env) Updates `conventional-changelog-conventionalcommits` from 7.0.2 to 8.0.0 - [Release notes](https://github.com/conventional-changelog/conventional-changelog/releases) - [Changelog](https://github.com/conventional-changelog/conventional-changelog/blob/master/packages/conventional-changelog-conventionalcommits/CHANGELOG.md) - [Commits](https://github.com/conventional-changelog/conventional-changelog/commits/conventional-changelog-conventionalcommits-v8.0.0/packages/conventional-changelog-conventionalcommits) Updates `rollup` to 4.18.0 - [Release notes](https://github.com/rollup/rollup/releases) - [Changelog](https://github.com/rollup/rollup/blob/master/CHANGELOG.md) - [Commits](rollup/rollup@v4.17.2...v4.18.0) Updates `rollup-plugin-license` to 3.4.0 - [Changelog](https://github.com/mjeanroy/rollup-plugin-license/blob/master/CHANGELOG.md) - [Commits](mjeanroy/rollup-plugin-license@v3.3.1...v3.4.0) Updates `semantic-release` from 23.1.1 to 24.0.0 - [Release notes](https://github.com/semantic-release/semantic-release/releases) - [Commits](semantic-release/semantic-release@v23.1.1...v24.0.0) Updates `stylelint` to 16.6.1 - [Release notes](https://github.com/stylelint/stylelint/releases) - [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md) - [Commits](stylelint/stylelint@16.5.0...16.6.1) commit 1e3d4a6 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Mon Jun 3 21:12:54 2024 +0800 feat(dev): support vscode dev-container (cotes2020#1781) commit 1c5fa08 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sat Jun 1 04:11:01 2024 +0800 refactor: restore shell script extensions Without an extension, the shell script configuration in `.gitattribute` will not work. commit 64ae7a3 Author: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Thu May 30 03:33:35 2024 +0800 docs: correct markdown syntax of tutorial (cotes2020#1787)
## [7.1.0](v7.0.1...v7.1.0) (2024-08-27) ### Features * add Bluesky social links ([#1759](#1759)) ([0102aba](0102aba)) * add Reddit social option ([#1836](#1836)) ([8673e13](8673e13)) * add Threads social links ([#1837](#1837)) ([e3a78b6](e3a78b6)) * **analytics:** add fathom analytics ([#1913](#1913)) ([befc4ce](befc4ce)) * **dev:** add vscode tasks ([#1843](#1843)) ([e4db1a1](e4db1a1)) * **dev:** support vscode dev-container ([#1781](#1781)) ([1e3d4a6](1e3d4a6)) * **ui:** improve block quote layout ([80bd792](80bd792)) * **ui:** improve visibility of inline code ([#1831](#1831)) ([c876731](c876731)) * **ui:** make `info-prompt` icon looks like the letter "i" ([#1835](#1835)) ([a07a57e](a07a57e)) * **ui:** set `<kbd>` font to 'Lato' ([64c7262](64c7262)) ### Bug Fixes * adapt the giscus localization parameter ([#1810](#1810)) ([0709854](0709854)) * avoid caching pageviews data ([#1849](#1849)) ([979f86c](979f86c)) * remove extra dual-mode images from lightbox ([#1883](#1883)) ([5c5910f](5c5910f))
## [7.1.0](cotes2020/jekyll-theme-chirpy@v7.0.1...v7.1.0) (2024-08-27) ### Features * add Bluesky social links ([#1759](cotes2020/jekyll-theme-chirpy#1759)) ([6c7d07b](cotes2020/jekyll-theme-chirpy@6c7d07b)) * add Reddit social option ([#1836](cotes2020/jekyll-theme-chirpy#1836)) ([9711f2a](cotes2020/jekyll-theme-chirpy@9711f2a)) * add Threads social links ([#1837](cotes2020/jekyll-theme-chirpy#1837)) ([5e92fea](cotes2020/jekyll-theme-chirpy@5e92fea)) * **analytics:** add fathom analytics ([#1913](cotes2020/jekyll-theme-chirpy#1913)) ([78eda9d](cotes2020/jekyll-theme-chirpy@78eda9d)) * **dev:** add vscode tasks ([#1843](cotes2020/jekyll-theme-chirpy#1843)) ([0a92a68](cotes2020/jekyll-theme-chirpy@0a92a68)) * **dev:** support vscode dev-container ([#1781](cotes2020/jekyll-theme-chirpy#1781)) ([231e700](cotes2020/jekyll-theme-chirpy@231e700)) * **ui:** improve block quote layout ([2f84ff4](cotes2020/jekyll-theme-chirpy@2f84ff4)) * **ui:** improve visibility of inline code ([#1831](cotes2020/jekyll-theme-chirpy#1831)) ([2e81f62](cotes2020/jekyll-theme-chirpy@2e81f62)) * **ui:** make `info-prompt` icon looks like the letter "i" ([#1835](cotes2020/jekyll-theme-chirpy#1835)) ([68ce89d](cotes2020/jekyll-theme-chirpy@68ce89d)) * **ui:** set `<kbd>` font to 'Lato' ([e959570](cotes2020/jekyll-theme-chirpy@e959570)) ### Bug Fixes * adapt the giscus localization parameter ([#1810](cotes2020/jekyll-theme-chirpy#1810)) ([d420c8c](cotes2020/jekyll-theme-chirpy@d420c8c)) * avoid caching pageviews data ([#1849](cotes2020/jekyll-theme-chirpy#1849)) ([a69cf87](cotes2020/jekyll-theme-chirpy@a69cf87)) * remove extra dual-mode images from lightbox ([#1883](cotes2020/jekyll-theme-chirpy#1883)) ([338f926](cotes2020/jekyll-theme-chirpy@338f926))
## [7.1.0](cotes2020/jekyll-theme-chirpy@v7.0.1...v7.1.0) (2024-08-27) ### Features * add Bluesky social links ([cotes2020#1759](cotes2020#1759)) ([0102aba](cotes2020@0102aba)) * add Reddit social option ([cotes2020#1836](cotes2020#1836)) ([8673e13](cotes2020@8673e13)) * add Threads social links ([cotes2020#1837](cotes2020#1837)) ([e3a78b6](cotes2020@e3a78b6)) * **analytics:** add fathom analytics ([cotes2020#1913](cotes2020#1913)) ([befc4ce](cotes2020@befc4ce)) * **dev:** add vscode tasks ([cotes2020#1843](cotes2020#1843)) ([e4db1a1](cotes2020@e4db1a1)) * **dev:** support vscode dev-container ([cotes2020#1781](cotes2020#1781)) ([1e3d4a6](cotes2020@1e3d4a6)) * **ui:** improve block quote layout ([80bd792](cotes2020@80bd792)) * **ui:** improve visibility of inline code ([cotes2020#1831](cotes2020#1831)) ([c876731](cotes2020@c876731)) * **ui:** make `info-prompt` icon looks like the letter "i" ([cotes2020#1835](cotes2020#1835)) ([a07a57e](cotes2020@a07a57e)) * **ui:** set `<kbd>` font to 'Lato' ([64c7262](cotes2020@64c7262)) ### Bug Fixes * adapt the giscus localization parameter ([cotes2020#1810](cotes2020#1810)) ([0709854](cotes2020@0709854)) * avoid caching pageviews data ([cotes2020#1849](cotes2020#1849)) ([979f86c](cotes2020@979f86c)) * remove extra dual-mode images from lightbox ([cotes2020#1883](cotes2020#1883)) ([5c5910f](cotes2020@5c5910f))
Type of change
Description
Add
tasks.json
to automate typical tasks and improve dev experience.Usage
Ctrl+Shift+B
to run build and watch taskAdditional info
Initial discussion has happened in 1781.
Documentation on tasks.