Skip to content

Commit

Permalink
@dr-js/dev@0.5.12
Browse files Browse the repository at this point in the history
notable change:
- deprecate: mode `cache-step` & `cache/checksum|staleCheck`
- fix: resource: allow `eslint-plugin-n@15` for node 14 support
- bin: parallel fetch for check-outdated buggy-tag mode
- bin: sort git aliases
- pptr: less log
- ci: update & merge ci config
- package update
  • Loading branch information
dr-js committed Jan 3, 2024
2 parents 25f3b94 + e5f6033 commit ca4d6b2
Show file tree
Hide file tree
Showing 23 changed files with 1,128 additions and 869 deletions.
12 changes: 10 additions & 2 deletions .github/ci-patch.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ const { runInfoPatchCombo } = require('@dr-js/dev/library/ci.js')
runKit(async (kit) => {
runInfoPatchCombo(kit)

kit.padLog('Patch npm cache path') // set cache path to `~/.npm/` for all platform (only win32 for now)
kit.RUN_SUDO_NPM([ 'config', '--global', 'set', 'cache', kit.fromHome('.npm/') ])
// kit.padLog('Patch npm cache path') // set cache path to `~/.npm/` for all platform (only win32 for now)
// kit.RUN_SUDO_NPM([ 'config', '--global', 'set', 'cache', kit.fromHome('.npm/') ])

// kit.padLog('Patch install "@dr-js/core" & "@dr-js/dev" & "@min-pack/npm" globally')
// kit.RUN_SUDO_NPM('install --no-fund --no-audit --global @dr-js/core@0.5 @dr-js/dev@0.5 @min-pack/npm@0.1')

if (parseInt(process.versions.node) <= 14) { // TODO: wait for npm@7 adoption and try npm install + cache for faster puppeteer install
kit.RUN('npm i -g @min-pack/npm@0.1')
kit.RUN('npm8 ci --omit=optional')
return
}

kit.RUN('npm ci --omit=optional')
}, { title: 'ci-patch' })
40 changes: 40 additions & 0 deletions .github/workflows/ci-test-2312.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "ci-test-2312"
on: { push: { branches: [ "**" ], tags: [ "v*" ] } } # use `v0.0.0` tag pattern # https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#onpushpull_requestbranchestags
env: { "IS_CI": true }
jobs:
"test-base": # job id
strategy:
matrix: { OS: [ "ubuntu-latest", "windows-latest", "macos-latest" ], NODE: [ "20.x" ] } # LTS version
fail-fast: false # allow all test to run to the end
runs-on: "${{ matrix.OS }}"
timeout-minutes: 15
steps:
- { uses: "actions/checkout@v4" } # https://github.com/actions/checkout
- { uses: "actions/setup-node@v4", with: { node-version: "${{ matrix.NODE }}" } } # https://github.com/actions/setup-node
- run: npm i -g @dr-js/core@0.5 @dr-js/dev@0.5 && dr-dev -eI .github/ci-patch.js # TODO: wait for npm fix # - run: npx @dr-js/dev@0.5 -eI .github/ci-patch.js
- run: npm test

"test-extra": # job id
if: "github.ref_type == 'tag'" # only run on git tag push
strategy:
matrix: { OS: [ "ubuntu-latest", "windows-latest", "macos-latest" ], NODE: [ "21.x" ], include: [ { OS: "ubuntu-latest", NODE: "14.x" } ] } # latest version + min-support version
fail-fast: false # allow all test to run to the end
runs-on: "${{ matrix.OS }}"
timeout-minutes: 15
steps:
- { uses: "actions/checkout@v4" } # https://github.com/actions/checkout
- { uses: "actions/setup-node@v4", with: { node-version: "${{ matrix.NODE }}" } } # https://github.com/actions/setup-node
- run: npm i -g @dr-js/core@0.5 @dr-js/dev@0.5 && dr-dev -eI .github/ci-patch.js # TODO: wait for npm fix # - run: npx @dr-js/dev@0.5 -eI .github/ci-patch.js
- run: npm test

"publish-tag": # job id
if: "github.ref_type == 'tag'" # only run on git tag push
needs: [ "test-base", "test-extra" ] # https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idneeds
runs-on: "ubuntu-latest"
timeout-minutes: 15
steps:
- { uses: "actions/checkout@v4" } # https://github.com/actions/checkout
- { uses: "actions/setup-node@v4", with: { node-version: "20.x" } } # LTS version # https://github.com/actions/setup-node
- run: npm i -g @dr-js/core@0.5 @dr-js/dev@0.5 && dr-dev -eI .github/ci-patch.js # TODO: wait for npm fix # - run: npx @dr-js/dev@0.5 -eI .github/ci-patch.js
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN_DR_JS }}" > .npmrc
- run: npm run script-publish
21 changes: 0 additions & 21 deletions .github/workflows/ci-test-push.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/ci-test-tag.yml

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 dr-js
Copyright (c) 2024 dr-js

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
46 changes: 23 additions & 23 deletions SPEC.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,26 +282,26 @@
#### Resource package
📄 [resource/](resource/)
| Package name | Version |
| :---- | ----: |
| @babel/cli | ^7.22.9 |
| @babel/core | ^7.22.9 |
| @babel/eslint-parser | ^7.22.9 |
| @babel/preset-env | ^7.22.9 |
| @babel/preset-react | ^7.22.5 |
| @babel/register | ^7.22.5 |
| babel-loader | ^9.1.3 |
| babel-plugin-minify-replace | ^0.5.0 |
| babel-plugin-module-resolver | ^5.0.0 |
| babel-plugin-styled-components | ^2.1.4 |
| eslint | ^8.46.0 |
| eslint-plugin-import | ^2.28.0 |
| eslint-plugin-n | ^16.0.1 |
| eslint-plugin-promise | ^6.1.1 |
| eslint-plugin-react | ^7.33.1 |
| prop-types | ^15.8.1 |
| puppeteer | ^20.9.0 |
| react | ^18.2.0 |
| styled-components | ^6.0.6 |
| terser | ^5.19.2 |
| webpack | ^5.88.2 |
| Package name | Version |
| :---- | ----: |
| @babel/cli | ^7.23.4 |
| @babel/core | ^7.23.7 |
| @babel/eslint-parser | ^7.23.3 |
| @babel/preset-env | ^7.23.7 |
| @babel/preset-react | ^7.23.3 |
| @babel/register | ^7.23.7 |
| babel-loader | ^9.1.3 |
| babel-plugin-minify-replace | ^0.5.0 |
| babel-plugin-module-resolver | ^5.0.0 |
| babel-plugin-styled-components | ^2.1.4 |
| eslint | ^8.56.0 |
| eslint-plugin-import | ^2.29.1 |
| eslint-plugin-n | ^16.6.1 || ^15.7.0 |
| eslint-plugin-promise | ^6.1.1 |
| eslint-plugin-react | ^7.33.2 |
| prop-types | ^15.8.1 |
| puppeteer | ^21.6.1 |
| react | ^18.2.0 |
| styled-components | ^6.1.6 |
| terser | ^5.26.0 |
| webpack | ^5.89.0 |
Loading

0 comments on commit ca4d6b2

Please sign in to comment.