Skip to content

Commit b758dee

Browse files
authored
Add monorepo (#39)
* feat(monorepo): first attempt * feat: move site to monorepo packages * feat: rename site -> docs * feat: improvements * feat: monorepo release-it, remove Changesets * feat: improvements * feat: publish improvements
1 parent bf1e08b commit b758dee

File tree

163 files changed

+11116
-14018
lines changed

Some content is hidden

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

163 files changed

+11116
-14018
lines changed

.cspell.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"dictionaries": ["project-words"],
1010
"ignorePaths": [
1111
"node_modules",
12-
"./site/public/apidocs",
13-
"./src/dsp/stopwords.ts",
12+
"./src/docs/public/apidocs",
13+
"./src/ax/dsp/stopwords.ts",
1414
"./src/examples/qna-tune.ts"
1515
]
1616
}

.cspell/project-words.txt

+2
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,5 @@ weaviate
7171
Weaviate
7272
xlarge
7373
xstate
74+
astro
75+
astrojs

.eslintrc.json

+11-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,22 @@
11
{
22
"root": true,
33
"parser": "@typescript-eslint/parser",
4-
"parserOptions": { "project": "./tsconfig.json" },
4+
"parserOptions": { "project": ["./tsconfig.json", "./src/*/tsconfig.json"] },
55
"env": { "es6": true },
66
"ignorePatterns": [
77
"node_modules",
88
"build",
99
"coverage",
10-
"src/dsp/parser.ts",
10+
"src/ax/dsp/parser.ts",
1111
"site"
1212
],
13-
"plugins": ["require-extensions", "import", "eslint-comments", "functional"],
13+
"plugins": [
14+
"require-extensions",
15+
"import",
16+
"eslint-comments",
17+
"functional",
18+
"monorepo-cop"
19+
],
1420
"extends": [
1521
"plugin:require-extensions/recommended",
1622
"eslint:recommended",
@@ -81,6 +87,7 @@
8187
"sort-imports": [
8288
"error",
8389
{ "ignoreDeclarationSort": true, "ignoreCase": true }
84-
]
90+
],
91+
"monorepo-cop/no-relative-import-outside-package": "error"
8592
}
8693
}

.github/workflows/npm-publish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ jobs:
1919
node-version: '20.x'
2020
registry-url: 'https://registry.npmjs.org'
2121
- run: npm ci
22-
- run: npm publish --provenance --access public
22+
- run: npm run publish
2323
env:
2424
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/static.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
uses: actions/upload-pages-artifact@v3
4444
with:
4545
# Upload entire repository
46-
path: './site/dist'
46+
path: './src/docs/dist'
4747
- name: Deploy to GitHub Pages
4848
id: deployment
4949
uses: actions/deploy-pages@v4

.node-version

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v20

.prettierignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# package.json is formatted by package managers, so we ignore it here
22
package.json
3-
src/dsp/parser.ts
3+
src/ax/dsp/parser.ts
4+
src/docs
5+
src/*/build
46
node_modules
57

.release-it.json

+2-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@
33
"publish": false
44
},
55
"git": {
6-
"commitMessage": "chore: release v${version}"
7-
},
8-
"github": {
9-
"release": true,
10-
"web": true,
11-
"autoGenerate": true,
12-
"releaseName": "Release ${version}"
6+
"commitMessage": "chore: release v${version}",
7+
"requireCleanWorkingDir": false
138
}
149
}

0 commit comments

Comments
 (0)