Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 342c9ca

Browse files
GarthDBkarstens
andauthoredMar 14, 2024··
Monorepo (#231)
* feat: add prettier config and test npm script * fix: remove obsolete npm scripts for prettier * fix: run prettier on packages/contrast-color/** * fix: remove package-lock.json * replaced yarn with pnpm everywhere * make nodeJS version flexible * fix: add husky pre-commit for git hook * refactor: move lint-staged to pnpm script * fix: added husky commitlint workflow * chore: added changeset config * fix: added pre-commit husky script * fix: replace npx with pnpm in node scripts * ci: added simple github workflow to running tests * refactor: moved scripts to moon tasks to make it easy to test in CI * chore: update moon config to use Node v20.11 * test: fix test input for contrast-colors * chore: update copyright * ci: added release automation --------- Co-authored-by: Frank Karstens <karstens@adobe.com>
1 parent 80ae5af commit 342c9ca

File tree

283 files changed

+19056
-45406
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

283 files changed

+19056
-45406
lines changed
 

‎.moon/toolchain.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# https://moonrepo.dev/docs/config/toolchain
2+
$schema: 'https://moonrepo.dev/schemas/toolchain.json'
3+
4+
# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
5+
# extends: './shared/toolchain.yml'
6+
7+
# Configures Node.js within the toolchain. moon manages its own version of Node.js
8+
# instead of relying on a version found on the host machine. This ensures deterministic
9+
# and reproducible builds across any machine.
10+
node:
11+
# The version to use. Must be a semantic version that includes major, minor, and patch.
12+
# We suggest using the latest active LTS version: https://nodejs.org/en/about/releases
13+
version: '20.11'
14+
15+
# The package manager to use when managing dependencies.
16+
# Accepts "npm" (default), "pnpm", or "yarn".
17+
packageManager: 'pnpm'
18+
19+
# The version of the package manager (above) to use.
20+
pnpm:
21+
version: '8.15.4'
22+
23+
# Add `node.version` as a constraint in the root `package.json` `engines`.
24+
addEnginesConstraint: true
25+
26+
# Dedupe dependencies after the lockfile has changed.
27+
dedupeOnLockfileChange: true
28+
29+
# Version format to use when syncing dependencies within the project's `package.json`.
30+
# dependencyVersionFormat: 'workspace'
31+
32+
# Infer and automatically create moon tasks from `package.json` scripts, per project.
33+
# BEWARE: Tasks and scripts are not 1:1 in functionality, so please refer to the documentation.
34+
inferTasksFromScripts: true
35+
36+
# Sync a project's `dependsOn` as dependencies within the project's `package.json`.
37+
syncProjectWorkspaceDependencies: true
38+
39+
# Sync `node.version` to a 3rd-party version manager's config file.
40+
# Accepts "nodenv" (.node-version), "nvm" (.nvmrc), or none.
41+
# syncVersionManagerConfig: 'nvm'

‎.moon/workspace.yml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# https://moonrepo.dev/docs/config/workspace
2+
$schema: "https://moonrepo.dev/schemas/workspace.json"
3+
4+
# Require a specific version of moon while running commands, otherwise fail.
5+
# versionConstraint: '>=1.0.0'
6+
7+
# Extend and inherit an external configuration file. Must be a valid HTTPS URL or file system path.
8+
# extends: './shared/workspace.yml'
9+
10+
# REQUIRED: A map of all projects found within the workspace, or a list or file system globs.
11+
# When using a map, each entry requires a unique project ID as the map key, and a file system
12+
# path to the project folder as the map value. File paths are relative from the workspace root,
13+
# and cannot reference projects located outside the workspace boundary.
14+
projects:
15+
- "docs/*"
16+
- "packages/*"
17+
18+
# Configures the version control system to utilize within the workspace. A VCS
19+
# is required for determining touched (added, modified, etc) files, calculating file hashes,
20+
# computing affected files, and much more.
21+
vcs:
22+
# The client to use when managing the repository.
23+
# Accepts "git". Defaults to "git".
24+
manager: "git"
25+
26+
# The default branch (master/main/trunk) in the repository for comparing the
27+
# local branch against. For git, this is is typically "master" or "main",
28+
# and must include the remote prefix (before /).
29+
defaultBranch: "monorepo"

‎.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules/
2+
*.min.js
3+
*.map
4+
*.snap

‎.prettierrc

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"tabWidth": 2,
3+
"printWidth": 256,
4+
"singleQuote": true,
5+
"bracketSpacing": false,
6+
"trailingComma": "none"
7+
}
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Please sign in to comment.