Commit graph

47 commits

Author SHA1 Message Date
a1debba2e1 fix(cli): allow creating new migration files with only the "extension" option 2023-11-16 10:51:43 +01:00
b56794a269 feat(cli): implement the "up" command with support for "storage" and "loader" plugins 2023-11-15 16:14:10 +01:00
a058ebf888 feat(cli): handle file extensions with or without a leading period 2023-11-15 16:11:28 +01:00
23a323c675 feat(plugin-tools): add convenience functions getOrLoadPlugin and getOrLoadPlugins 2023-11-15 16:02:57 +01:00
81fde2ebd3 feat(plugin-tools): add types for "loader" plugins 2023-11-15 16:00:21 +01:00
70d2140dde refactor(cli): re-use the Config type for the new command's parameters 2023-11-15 14:45:49 +01:00
0b78d5cf32 refactor(cli): rename the emigrate package to @emigrate/cli to be more in line with other tools 2023-11-15 14:42:10 +01:00
9f5abf727d refactor: simplify plugin interfaces by getting rid of the "type" property
This is to prepare for having packages that contains multiple different plugins in the same file.
2023-11-15 14:11:06 +01:00
3e0ff07a64 chore: specify which files to include in published packages 2023-11-15 13:54:06 +01:00
85decd792a ci: do publish packages 2023-11-15 12:30:06 +01:00
github-actions[bot]
72df2385a0
chore(release): version packages (#11)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-11-15 12:25:48 +01:00
dependabot[bot]
644dfb0fe8
chore(deps): bump tsx from 4.1.0 to 4.1.2 (#10)
Bumps [tsx](https://github.com/privatenumber/tsx) from 4.1.0 to 4.1.2.
- [Release notes](https://github.com/privatenumber/tsx/releases)
- [Changelog](https://github.com/privatenumber/tsx/blob/develop/release.config.cjs)
- [Commits](https://github.com/privatenumber/tsx/compare/v4.1.0...v4.1.2)

---
updated-dependencies:
- dependency-name: tsx
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 12:22:49 +01:00
dependabot[bot]
3fef7f6c5c
chore(deps): bump prettier from 3.0.3 to 3.1.0 (#8)
Bumps [prettier](https://github.com/prettier/prettier) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.0.3...3.1.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-15 12:17:45 +01:00
384263efed ci: does this enable actions for release PRs? 2023-11-15 12:12:54 +01:00
32e15ea6f2 ci: how about now? 2023-11-15 11:44:37 +01:00
30a7a0ba90 ci: add permissions for release workflow and don't limit branches for the checks 2023-11-15 11:37:20 +01:00
16f2e9926c ci: always run CI checks for pull requests 2023-11-15 11:30:51 +01:00
073af50c44 ci: customize release flow title 2023-11-15 10:43:29 +01:00
50fce0a5ed chore: add some basic README files 2023-11-15 10:32:47 +01:00
9484c03e48 chore: first attempt att configuring an automatic release flow 2023-11-15 09:31:44 +01:00
d99777820c chore(release): version bump 2023-11-15 09:20:30 +01:00
aa878003b9 feat(emigrate): add support for reading config from emigrate.config.js (and others)
Also add a new "extension" option for generating empty migration files with the right file extension.
2023-11-14 16:19:58 +01:00
dependabot[bot]
ff822a156d
chore(deps): bump lint-staged from 15.0.2 to 15.1.0 (#6)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 15.0.2 to 15.1.0.
- [Release notes](https://github.com/okonet/lint-staged/releases)
- [Changelog](https://github.com/lint-staged/lint-staged/blob/master/CHANGELOG.md)
- [Commits](https://github.com/okonet/lint-staged/compare/v15.0.2...v15.1.0)

---
updated-dependencies:
- dependency-name: lint-staged
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 13:41:11 +01:00
dependabot[bot]
47d77b3746
chore(deps): bump @commitlint/cli from 18.4.0 to 18.4.1 (#9)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 18.4.0 to 18.4.1.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.4.1/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-14 11:49:42 +01:00
dependabot[bot]
e942460d49
chore(deps): bump pnpm/action-setup from 2.2.4 to 2.4.0 (#4)
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 2.2.4 to 2.4.0.
- [Release notes](https://github.com/pnpm/action-setup/releases)
- [Commits](https://github.com/pnpm/action-setup/compare/v2.2.4...v2.4.0)

---
updated-dependencies:
- dependency-name: pnpm/action-setup
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:25:28 +01:00
dependabot[bot]
cfabd0bc74
chore(deps): bump actions/checkout from 3 to 4 (#5)
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:20:38 +01:00
dependabot[bot]
0d1bf3156b
chore(deps): bump actions/setup-node from 3 to 4 (#3)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 15:18:09 +01:00
10bd7d4d30 chore: remove versioning-strategy from GitHub Actions Dependabot config 2023-11-10 15:15:45 +01:00
e159cd17bd test(plugin-tools): add some tests for the sanitizeMigrationName function 2023-11-10 14:49:27 +01:00
4e2a27ffeb fix(plugin-tools): trim leading underscores from filenames 2023-11-10 14:47:44 +01:00
23d390e602 chore: configure Volta correctly for a monorepo 2023-11-10 14:46:51 +01:00
75b494c2fd ci(deps): configure Dependabot for GitHub Actions dependencies 2023-11-10 13:43:22 +01:00
dependabot[bot]
530ee7d146
chore(deps): bump @commitlint/cli from 18.2.0 to 18.4.0 (#2)
Bumps [@commitlint/cli](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/cli) from 18.2.0 to 18.4.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/cli/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.4.0/@commitlint/cli)

---
updated-dependencies:
- dependency-name: "@commitlint/cli"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 12:14:08 +01:00
d7e0eed1d1 ci(deps): set @aboviq/maintainers as reviewer to Dependabot PRs 2023-11-10 11:52:38 +01:00
dependabot[bot]
87406d7d06
chore(deps): bump @commitlint/config-conventional from 18.1.0 to 18.4.0 (#1)
Bumps [@commitlint/config-conventional](https://github.com/conventional-changelog/commitlint/tree/HEAD/@commitlint/config-conventional) from 18.1.0 to 18.4.0.
- [Release notes](https://github.com/conventional-changelog/commitlint/releases)
- [Changelog](https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/CHANGELOG.md)
- [Commits](https://github.com/conventional-changelog/commitlint/commits/v18.4.0/@commitlint/config-conventional)

---
updated-dependencies:
- dependency-name: "@commitlint/config-conventional"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-11-10 11:32:51 +01:00
3ca87093e0 ci(deps): enable Dependabot 2023-11-10 11:27:15 +01:00
9880778650 chore(release): bump versions 2023-11-10 10:55:42 +01:00
9c239e0ae5 feat(plugins): automatically prefix plugins when loading if necessary
I.e. when specifying only "--plugin generate-js" Emigrate will load the @emigrate/plugin-generate-js plugin.
2023-11-10 10:45:15 +01:00
ca3ab9ec62 feat(cli): add template support for the "new" command 2023-11-10 09:59:40 +01:00
16340940b7 fix(plugin-tools): remove double and trailing underscores from filenames and lower case the result 2023-11-10 09:33:08 +01:00
0081f77e86 feat(emigrate): add some rough support for generating new migration files
And add some CLI args parsing and usage messages for upcoming commands as well
2023-11-09 22:22:43 +01:00
ce4693d957 feat(plugin-generate-js): first version 2023-11-09 22:00:43 +01:00
cdafd05c20 feat(plugin-tools): first version of the package with some nice plugin utilities 2023-11-09 09:26:48 +01:00
cccdfb817d chore: configure project wide linting in another way until XO correctly supports monorepos
See: https://github.com/xojs/xo/issues/733
2023-11-09 09:02:59 +01:00
8d397a0c09 chore: add some package init defaults 2023-11-09 09:00:56 +01:00
59780207bd feat(tsconfig): stricten up the default TypeScript config some more 2023-11-09 08:37:37 +01:00
9c5f9ebf23 chore: first commit 🎉 2023-11-08 11:41:05 +01:00