Skip to content

Commit

Permalink
chore: upgrade dep and partial migrate to moon
Browse files Browse the repository at this point in the history
  • Loading branch information
DanSnow committed Mar 20, 2024
1 parent ae5676d commit 5aa1554
Show file tree
Hide file tree
Showing 16 changed files with 2,015 additions and 1,790 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ siteTemplate.zip
functions


.nx/cache
.nx/cache
# moon
.moon/cache
.moon/docker
5 changes: 5 additions & 0 deletions .moon/tasks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fileGroups:
sources:
- src/**/*
outputs:
- dist/**/*
41 changes: 41 additions & 0 deletions .moon/toolchain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# https://moonrepo.dev/docs/config/toolchain
$schema: 'https://moonrepo.dev/schemas/toolchain.json'

# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
# extends: './shared/toolchain.yml'

# Configures Node.js within the toolchain.
node:
# The version to use. Must be a semantic version that includes major, minor, and patch.
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
# version: '20.0.0'

# The package manager to use when managing dependencies.
# Accepts "npm" (default), "pnpm", "yarn", or "bun".
packageManager: 'yarn'

# The version of the package manager (above) to use.
yarn: {}

# Add `node.version` as a constraint in the root `package.json` `engines`.
addEnginesConstraint: true

# Dedupe dependencies after the lockfile has changed.
dedupeOnLockfileChange: true

# Version format to use when syncing dependencies within the project's `package.json`.
# dependencyVersionFormat: 'workspace'

# Infer and automatically create moon tasks from `package.json` scripts, per project.
# BEWARE: Tasks and scripts are not 1:1 in functionality, so please refer to the documentation.
inferTasksFromScripts: false

# Support the "one version policy" by only declaring dependencies in the root `package.json`.
# rootPackageOnly: true

# Sync a project's relationships as `dependencies` within the project's `package.json`.
syncProjectWorkspaceDependencies: true

# Sync `node.version` to a 3rd-party version manager's config file.
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
# syncVersionManagerConfig: 'nvm'
28 changes: 28 additions & 0 deletions .moon/workspace.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# https://moonrepo.dev/docs/config/workspace
$schema: 'https://moonrepo.dev/schemas/workspace.json'

# Require a specific version of moon while running commands, otherwise fail.
# versionConstraint: '>=1.0.0'

# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
# extends: './shared/workspace.yml'

# REQUIRED: A map of all projects found within the workspace, or a list or file system globs.
# When using a map, each entry requires a unique project ID as the map key, and a file system
# path to the project folder as the map value. File paths are relative from the workspace root,
# and cannot reference projects located outside the workspace boundary.
projects:
- 'packages/*'

# Configures the version control system to utilize within the workspace. A VCS
# is required for determining touched (added, modified, etc) files, calculating file hashes,
# computing affected files, and much more.
vcs:
# The client to use when managing the repository.
# Accepts "git". Defaults to "git".
manager: 'git'

# The default branch (master/main/trunk) in the repository for comparing the
# local branch against. For git, this is is typically "master" or "main",
# and must include the remote prefix (before /).
defaultBranch: 'main'
672 changes: 336 additions & 336 deletions .yarn/releases/yarn-4.0.2.cjs → .yarn/releases/yarn-4.1.1.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ npmScopes:
storipress:
npmRegistryServer: "https://registry.yarnpkg.com"

yarnPath: .yarn/releases/yarn-4.0.2.cjs
yarnPath: .yarn/releases/yarn-4.1.1.cjs
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@storipress/karbon-mono-repo",
"private": true,
"packageManager": "yarn@4.0.2",
"packageManager": "yarn@4.1.1",
"scripts": {
"dev:prepare": "yarn workspace @storipress/karbon-playground nuxt prepare",
"build": "nx run @storipress/karbon:build && yarn dev:prepare",
Expand Down Expand Up @@ -63,6 +63,7 @@
},
"devDependencies": {
"@antfu/eslint-config-vue": "0.42.1",
"@moonrepo/cli": "^1.22.8",
"@nuxt/image": "1.0.0-rc.1",
"@nuxtjs/tailwindcss": "6.8.0",
"@rollup/plugin-virtual": "3.0.2",
Expand Down
38 changes: 38 additions & 0 deletions packages/code-highlight/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
tasks:
build:
command:
- vite
- build
platform: node
inputs:
- '@group(sources)'
outputs:
- '@group(outputs)'
lint:
command:
- eslint
- .
platform: node
release:
command:
- git
- push
- --follow-tags
deps:
- ~:publish
platform: system
generate-changelog:
command:
- changelogen
- --release
deps:
- ~:lint
platform: node
publish:
command:
- yarn
- npm
- publish
deps:
- ~:generate-changelog
platform: node
8 changes: 4 additions & 4 deletions packages/code-highlight/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"dist"
],
"scripts": {
"build": "vite build",
"prepack": "yarn build",
"lint": "eslint .",
"release": "yarn run lint && yarn run prepack && changelogen --release && yarn npm publish && git push --follow-tags"
"build": "moon run build",
"lint": "moon run lint",
"release": "moon run release",
"prepack": "yarn build"
},
"dependencies": {
"@types/prismjs": "^1.26.3"
Expand Down
8 changes: 8 additions & 0 deletions packages/create-karbon/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
tasks:
build:
command: unbuild
platform: node
inputs:
- '@group(sources)'
outputs:
- '@group(outputs)'
2 changes: 1 addition & 1 deletion packages/create-karbon/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},
"bin": "./dist/index.mjs",
"scripts": {
"build": "unbuild",
"build": "moon run build",
"prepack": "unbuild"
},
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/custom-field/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
build:
command: unbuild
platform: node
inputs:
- '@group(sources)'
outputs:
- '@group(outputs)'

2 changes: 1 addition & 1 deletion packages/custom-field/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"node": ">=16.7.0"
},
"scripts": {
"build": "unbuild",
"build": "moon run build",
"prepack": "yarn build"
},
"dependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/jose-browser/moon.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
tasks:
build:
command: unbuild
platform: node
inputs:
- '@group(sources)'
outputs:
- '@group(outputs)'

2 changes: 1 addition & 1 deletion packages/jose-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"node": ">=16.7.0"
},
"scripts": {
"build": "unbuild",
"build": "moon run build",
"prepack": "unbuild"
},
"dependencies": {
Expand Down
Loading

0 comments on commit 5aa1554

Please sign in to comment.