Skip to content

Commit

Permalink
@dr-js/dev@0.4.3
Browse files Browse the repository at this point in the history
notable change:
- deprecate: `fileProcessorWebpack`
- temp-fix: ci: wait for npm/cli#2411
- temp-fix: ci: cache: wait for: actions/runner-images#2153
- fix: use `@dr-js/core@0.4.3-dev.1` with fix for nodejs@15.5 caused responder send noop
- fix: output: log git diff in git status check
- fix: test: treat `before|after` the same as `it`
- add: `copyAfterEdit` to `node/file`
- add: bin: `is-hash-changed` to `cache-step`
- add: ci: `.github/ci-patch.js` for doing ci patch in one place
- node: use `getToggle` for `Preset.Toggle`
- bin: suppot `checksum-file-only` for `cache-step`
- bin: sort babel resolve path & test
- bin: sort `cache-step` options
- ci & script sort
- package update
  • Loading branch information
dr-js committed Jan 5, 2021
1 parent c6c692f commit fce4267
Show file tree
Hide file tree
Showing 6 changed files with 78 additions and 58 deletions.
4 changes: 3 additions & 1 deletion .github/ci-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ const main = async () => {
await quickRun([ ...`${COMMAND_SUDO_NPM} config set cache`.split(' '), resolve(homedir(), '.npm/'), '--global' ])

// Patch install @dr-js/dev globally
await quickRun(`${COMMAND_SUDO_NPM} install --global @dr-js/dev@^0.4.2`)
await quickRun(`${COMMAND_SUDO_NPM} install --global @dr-js/dev@^0.4`)

IS_WIN32 && await quickRun(`${COMMAND_SUDO_NPM} install --global npm@6`) // win32 npx do not override system npm // TODO: TEMP FIX: use npm@6 and wait for: https://github.com/npm/cli/issues/2411
}

main().then(
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Patch & log CI info
run: |
npx @dr-js/core@^0.4.3 -eI .github/ci-patch.js
npx @dr-js/core@^0.4 -eI .github/ci-patch.js
dr-dev -c .github/cache/config.js --cache-step setup
- name: Cache JS
Expand Down
120 changes: 69 additions & 51 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"private": true,
"name": "@dr-js/dev",
"version": "0.4.3-dev.9",
"version": "0.4.3",
"description": "A collection of strange functions, for development",
"author": "dr-js",
"license": "MIT",
Expand Down Expand Up @@ -54,8 +54,8 @@
"@dr-js/node": "^0.4.3 || ^0.4.3-dev.0"
},
"devDependencies": {
"@dr-js/dev": "0.4.3-dev.8",
"@dr-js/dev-web": "0.4.3-dev.8"
"@dr-js/dev": "0.4.3-dev.9",
"@dr-js/dev-web": "0.4.3-dev.9"
},
"sideEffects": false
}
2 changes: 1 addition & 1 deletion resource/__config__/base/INIT#.github#ci-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const main = async () => {
await quickRun([ ...`${COMMAND_SUDO_NPM} config set cache`.split(' '), resolve(homedir(), '.npm/'), '--global' ])

// Patch install @dr-js/dev globally
await quickRun(`${COMMAND_SUDO_NPM} install --global @dr-js/dev@^0.4.2`)
await quickRun(`${COMMAND_SUDO_NPM} install --global @dr-js/dev@^0.4`)
}

main().then(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- name: Patch & log CI info
run: |
npx @dr-js/core@^0.4.3 -eI .github/ci-patch.js
npx @dr-js/core@^0.4 -eI .github/ci-patch.js
dr-dev -c .github/cache/config.js --cache-step setup
- name: Cache JS
Expand Down

0 comments on commit fce4267

Please sign in to comment.