Skip to content
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

release v31 #737

Merged
merged 43 commits into from
Feb 23, 2021
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
9a03b99
feat: use esbuild and playwright-test
hugomrdias Feb 4, 2021
fd5695c
fix: remove ? from utils
hugomrdias Feb 4, 2021
62cb87d
fix: remove another ?
hugomrdias Feb 4, 2021
3467aed
fix: update action
hugomrdias Feb 5, 2021
6917d5c
fix: future node builtin check
hugomrdias Feb 5, 2021
453c80f
fix: update action
hugomrdias Feb 5, 2021
3237ad6
fix: action types
hugomrdias Feb 7, 2021
19b7301
fix: electron lock, esbuild-register, node cov with c8, check cmd
hugomrdias Feb 11, 2021
add8ef4
fix: umd and global
hugomrdias Feb 11, 2021
21d5639
fix: fix hooks
hugomrdias Feb 11, 2021
98bf44d
fix: fix hooks
hugomrdias Feb 11, 2021
26c2647
fix: foward options for mocha
hugomrdias Feb 12, 2021
5260ccb
fix: update deps
hugomrdias Feb 12, 2021
e8b4e9f
fix: remove c8 tmp from nyc_output
hugomrdias Feb 12, 2021
944addd
chore: update action
hugomrdias Feb 12, 2021
c91c715
fix: types
hugomrdias Feb 13, 2021
1001e00
fix: check more types
hugomrdias Feb 13, 2021
1e93fe1
docs: improve description for types preset
hugomrdias Feb 13, 2021
853ea86
fix: types and release cmd
hugomrdias Feb 15, 2021
4ef344f
fix: dep check cmd
hugomrdias Feb 15, 2021
e83ac97
fix: bundle size options
hugomrdias Feb 15, 2021
ee4bca3
fix: remove userConfig usage
hugomrdias Feb 15, 2021
b7b7ee4
fix: move fixtures and export types
hugomrdias Feb 15, 2021
ce2bc87
fix: move cmds to src and remove commit-lint
hugomrdias Feb 15, 2021
8f7f4ae
fix: umd bundle
hugomrdias Feb 18, 2021
3e09f88
feat: hooks
hugomrdias Feb 18, 2021
c842d82
fix: types
hugomrdias Feb 18, 2021
5bc8f64
fix: dependency check
hugomrdias Feb 18, 2021
181abe5
fix: dep-check ignore
hugomrdias Feb 18, 2021
169edb1
fix: concat dep-check ignore defaults to input
hugomrdias Feb 18, 2021
6dedc09
fix: add migration and fix dep-check
hugomrdias Feb 19, 2021
9000aba
fix: scripts
hugomrdias Feb 19, 2021
9bbb44e
fix: dep-check prod input
hugomrdias Feb 19, 2021
ce16e7c
fix: add src to dep-check prod input
hugomrdias Feb 19, 2021
838c165
fix: documentation
hugomrdias Feb 23, 2021
18533d1
chore: update contributors
hugomrdias Feb 23, 2021
9d407c1
chore: release version v31.0.0-next.0
hugomrdias Feb 23, 2021
5e31aa3
chore: update contributors
hugomrdias Feb 23, 2021
d7fd908
chore: release version v31.0.0-next.1
hugomrdias Feb 23, 2021
a1f265e
fix: release
hugomrdias Feb 23, 2021
1dc4c4b
chore: update contributors
hugomrdias Feb 23, 2021
2d27afe
chore: release version v31.0.0-next.2
hugomrdias Feb 23, 2021
456a975
fix: readme
hugomrdias Feb 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ jobs:
- uses: actions/checkout@v2
- run: npm install
- run: npm run lint
- run: ./cli.js ts -p check
- name: dependencies
run: ./cli.js dep-check -- -i aegir
test-node:
Expand All @@ -24,7 +25,7 @@ jobs:
with:
node-version: ${{ matrix.node }}
- run: yarn
- run: npx nyc --reporter=lcov npm run test:node -- --bail
- run: npm run test:node -- --bail --cov
- uses: codecov/codecov-action@v1
test-chrome:
needs: check
Expand All @@ -39,4 +40,4 @@ jobs:
steps:
- uses: actions/checkout@v2
- run: yarn
- run: npm run test:browser -- -- --browsers FirefoxHeadless
- run: npm run test:browser -- -- --browser firefox
62,517 changes: 24,916 additions & 37,601 deletions actions/bundle-size/dist/index.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions actions/bundle-size/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"build": "ncc build index.js"
},
"dependencies": {
"@actions/artifact": "^0.4.1",
"@actions/artifact": "^0.5.0",
"@actions/core": "^1.2.6",
"@actions/exec": "^1.0.3",
"@actions/github": "^4.0.0",
"execa": "^4.1.0",
"globby": "^11.0.0",
"execa": "^5.0.0",
"globby": "^11.0.2",
"read-pkg-up": "^7.0.1"
},
"devDependencies": {
"@vercel/ncc": "^0.25.1"
"@vercel/ncc": "^0.27.0"
}
}
7 changes: 5 additions & 2 deletions actions/bundle-size/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ const { pkg } = require('../../src/utils')

const aegirExec = pkg.name === 'aegir' ? './cli.js' : 'aegir'

/** @typedef {import("@actions/github").context } Context */
/**
* @typedef {import("@actions/github").context } Context
* @typedef {ReturnType<import("@actions/github")["getOctokit"]>} Github
*/

/**
* Bundle Size Check
Expand All @@ -32,7 +35,7 @@ const sizeCheck = async (octokit, context, baseDir) => {
try {
check = await checkCreate(octokit, context, checkName)

const out = await execa(aegirExec, ['build', '-b'], {
const out = await execa(aegirExec, ['build', '-b', '--no-types'], {
cwd: baseDir,
localDir: '.',
preferLocal: true,
Expand Down
23 changes: 8 additions & 15 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,11 @@ process.on('unhandledRejection', (err) => {
})

const updateNotifier = require('update-notifier')
const chalk = require('chalk')
const kleur = require('kleur')
const pkg = require('./package.json')

updateNotifier({
pkg: pkg,
isGlobal: false
pkg: pkg
}).notify()

const cli = require('yargs')
Expand All @@ -24,13 +23,13 @@ cli
.usage('Usage: $0 <command> [options]')
.example('$0 build', 'Runs the build command to bundle JS code for the browser.')
.example('npx $0 build', 'Can be used with `npx` to use a local version')
.example('$0 test -t webworker -- --browsers Firefox', 'If the command supports `--` can be used to forward options to the underlying tool.')
.example('npm test -- -- --browsers Firefox', 'If `npm test` translates to `aegir test -t browser` and you want to forward options you need to use `-- --` instead.')
.example('$0 test -t webworker -- --browser firefox', 'If the command supports `--` can be used to forward options to the underlying tool.')
.example('npm test -- -- --browser firefox', 'If `npm test` translates to `aegir test -t browser` and you want to forward options you need to use `-- --` instead.')
.epilog('Use `$0 <command> --help` to learn more about each command.')
.middleware((yargs) => {
yargs.config = userConfig
yargs.fileConfig = userConfig
})
.commandDir('cmds')
.commandDir('src/cmds')
.help()
.alias('help', 'h')
.alias('version', 'v')
Expand All @@ -40,18 +39,12 @@ cli
alias: 'd',
default: userConfig.debug
})
// TODO remove after webpack 5 upgrade
.options('node', {
type: 'boolean',
describe: 'Flag to control if bundler should inject node globals or built-ins.',
default: userConfig.node
})
.options('ts-repo', {
type: 'boolean',
describe: 'Enable support for Typescript repos.',
default: userConfig.tsRepo
})
.group(['help', 'version', 'debug', 'node', 'ts-repo'], 'Global Options:')
.group(['help', 'version', 'debug', 'ts-repo'], 'Global Options:')
.demandCommand(1, 'You need at least one command.')
.wrap(cli.terminalWidth())
.parserConfiguration({ 'populate--': true })
Expand All @@ -62,7 +55,7 @@ cli
const args = cli.fail((msg, err, yargs) => {
if (msg) {
yargs.showHelp()
console.error(chalk.red(msg))
console.error(kleur.red(msg))
}

if (err) {
Expand Down
42 changes: 0 additions & 42 deletions cmds/publish-rc.js

This file was deleted.

27 changes: 0 additions & 27 deletions cmds/update-last-successful-build.js

This file was deleted.

32 changes: 0 additions & 32 deletions cmds/update-rc.js

This file was deleted.

26 changes: 0 additions & 26 deletions cmds/update-release-branch-lockfiles.js

This file was deleted.

43 changes: 0 additions & 43 deletions cmds/z-commitlint.js

This file was deleted.

3 changes: 0 additions & 3 deletions fixtures.js

This file was deleted.

Loading