Skip to content

Commit ea37025

Browse files
authored
fix: Some final polish before beta release. (#2)
* Polish readmes. * Fixes. * Enable tracing. * Move vcs config. * Add fetch depth. * Add build. * Add build deps to all tasks. * Fix typecheck.
1 parent 408dcb6 commit ea37025

16 files changed

Lines changed: 478 additions & 470 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
fail-fast: true
1515
steps:
1616
- uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
1719
- uses: actions/setup-node@v3
1820
with:
1921
cache: yarn
@@ -22,4 +24,5 @@ jobs:
2224
with:
2325
node: ${{ matrix.node-version }}
2426
- run: yarn install --immutable
27+
- run: yarn build
2528
- run: yarn moon ci

.moon/oss/project-packages.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ tasks:
5050
- '@in(3)'
5151
- '--check'
5252
- '.'
53+
deps:
54+
- '^:build'
5355
inputs:
5456
- '@globs(sources)'
5557
- '@globs(tests)'
@@ -72,6 +74,8 @@ tasks:
7274
- '--ignore-path'
7375
- '@in(4)'
7476
- '.'
77+
deps:
78+
- '^:build'
7579
inputs:
7680
- '@globs(sources)'
7781
- '@globs(tests)'
@@ -83,6 +87,8 @@ tasks:
8387
# https://moonrepo.dev/docs/guides/examples/jest
8488
test:
8589
command: 'jest'
90+
deps:
91+
- '^:build'
8692
args:
8793
- '--coverage'
8894
- '--passWithNoTests'
@@ -97,11 +103,11 @@ tasks:
97103
args:
98104
- '--build'
99105
- '--pretty'
106+
deps:
107+
- '^:build'
100108
inputs:
101109
- '@globs(sources)'
102110
- '@globs(tests)'
103111
- 'tsconfig.json'
104112
- 'tsconfig.*.json'
105113
- '/tsconfig.options.json'
106-
outputs:
107-
- 'dts'

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
[![Build Status](https://github.com/moonrepo/dev/workflows/Pipeline/badge.svg)](https://github.com/moonrepo/dev/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/%40moonrepo%dev.svg)](https://www.npmjs.com/package/@moonrepo/dev)
5-
[![npm deps](https://david-dm.org/moonrepo/dev.svg?path=packages/dev)](https://www.npmjs.com/package/@moon/dev)
65

76
This repository is a collection of moon owned and maintained configurations and presets for common
87
developer tools -- primarily tools used by moonrepo and its authors.
98

109
It aims to provide a strict, modern, developer accessible, convention over configuration approach to
11-
JavaScript, TypeScript, and React projects!
10+
JavaScript, TypeScript, and React projects! All of these configs have been designed for local and
11+
developer tooling based development!
1212

1313
## Packages
1414

@@ -31,9 +31,9 @@ and more. This should rarely be used directly!
3131

3232
## Contributing
3333

34-
So... all these configs are personal preference and won't change drastically. You're welcome to use
35-
them as-is, but changes are unlikely to land. Feel free to create an issue otherwise so that we can
36-
discuss the intended change.
34+
All these configs are personal preference and won't change drastically. You're welcome to use them
35+
as-is, but major changes are unlikely to land. Feel free to create an issue otherwise so that we can
36+
discuss any intended change.
3737

3838
### Why tabs over spaces?
3939

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"private": true,
33
"name": "moon-dev",
44
"scripts": {
5-
"moon": "$(yarn bin moon)",
5+
"build": "packemon build",
6+
"moon": "$(yarn bin moon) --color",
67
"prerelease": "node scripts/releaseCheck.mjs && yarn run pack && yarn run check",
78
"release": "yarn prerelease && lerna version --conventional-commits --changelog-preset conventional-changelog-beemo --create-release github --push && lerna publish from-git",
89
"setup": "yarn moon run :build",
@@ -13,12 +14,12 @@
1314
],
1415
"devDependencies": {
1516
"@babel/core": "^7.18.10",
16-
"@moonrepo/cli": "^0.10.0",
17+
"@moonrepo/cli": "^0.11.1",
1718
"conventional-changelog-beemo": "^3.0.1",
1819
"eslint": "^8.20.0",
1920
"jest": "^28.1.3",
2021
"jest-circus": "^28.1.3",
21-
"lerna": "^5.2.0",
22+
"lerna": "^5.4.2",
2223
"packemon": "^2.3.3",
2324
"prettier": "^2.7.1",
2425
"typescript": "^4.7.4"

packages/babel-preset/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Build Status](https://github.com/moonrepo/dev/workflows/Pipeline/badge.svg)](https://github.com/moonrepo/dev/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/babel-preset-moon.svg)](https://www.npmjs.com/package/babel-preset-moon)
5-
[![npm deps](https://david-dm.org/moonrepo/dev.svg?path=packages/babel-preset)](https://www.npmjs.com/package/babel-preset-moon)
65

76
A modern Babel preset with built-in TypeScript support. Is designed for unit testing, linting, and
87
local development only -- it _should not_ be used for web applications or package building (use

packages/babel-preset/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "babel-preset-moon",
33
"version": "0.0.0",
4-
"description": "Babel preset for tooling development.",
4+
"description": "A modern Babel preset for tooling development.",
55
"keywords": [
66
"babel-preset",
77
"moon",

packages/dev/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
[![Build Status](https://github.com/moonrepo/dev/workflows/Pipeline/badge.svg)](https://github.com/moonrepo/dev/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/%40moonrepo%dev.svg)](https://www.npmjs.com/package/@moonrepo/dev)
5-
[![npm deps](https://david-dm.org/moonrepo/dev.svg?path=packages/dev)](https://www.npmjs.com/package/@moonrepo/dev)
65

76
Reusable constants and helpers for moon configurations. This shouldn't be used directly.

packages/eslint-config/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
[![Build Status](https://github.com/moonrepo/dev/workflows/Pipeline/badge.svg)](https://github.com/moonrepo/dev/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/eslint-config-moon.svg)](https://www.npmjs.com/package/eslint-config-moon)
5-
[![npm deps](https://david-dm.org/moonrepo/dev.svg?path=packages/eslint-config)](https://www.npmjs.com/package/eslint-config-moon)
65

7-
A modern TypeScript-only ESLint config with optional presets. Expands upon the amazing
8-
[Airbnb config](https://www.npmjs.com/package/eslint-config-airbnb-base) to provide the latest
9-
ECMAScript features, enforce popular patterns, and align with the wider community.
6+
A modern and strict ESLint configuration with optional presets and first-class TypeScript support.
7+
Expands upon the amazing [Airbnb config](https://www.npmjs.com/package/eslint-config-airbnb-base) to
8+
provide the latest ECMAScript features, enforce popular patterns, and align with the wider
9+
community.
1010

1111
```bash
1212
yarn install --dev eslint eslint-config-moon
@@ -39,7 +39,7 @@ The following additional configs can also be extended, but are not enabled by de
3939
[react-perf](https://www.npmjs.com/package/eslint-plugin-react-perf), and
4040
[jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y) plugins.
4141
- Only applies to `*.tsx` files and also extends the `browser` preset.
42-
- Enables automatic JSX runtime if root `react` version is 17+.
42+
- Enables automatic JSX runtime if `react` version is 17+.
4343

4444
## Features
4545

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "eslint-config-moon",
33
"version": "0.0.0",
4-
"description": "Reusable ESLint config for moon configured projects.",
4+
"description": "A modern and strict ESLint configuration.",
55
"keywords": [
66
"eslint-config",
77
"airbnb",

packages/jest-preset/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
[![Build Status](https://github.com/moonrepo/dev/workflows/Pipeline/badge.svg)](https://github.com/moonrepo/dev/actions?query=branch%3Amaster)
44
[![npm version](https://badge.fury.io/js/jest-preset-moon.svg)](https://www.npmjs.com/package/jest-preset-moon)
5-
[![npm deps](https://david-dm.org/moonrepo/dev.svg?path=packages/babel-preset)](https://www.npmjs.com/package/jest-preset-moon)
65

76
A modern Jest preset that provides code coverage and performance out of the box.
87

0 commit comments

Comments
 (0)