Skip to content

Commit

Permalink
chore: migrate to turbo from moonrepo (#380)
Browse files Browse the repository at this point in the history
* chore: migrate to turbo from moonrepo

* chore: adding changeset
  • Loading branch information
bclark-p44 authored May 22, 2023
1 parent 6f483f3 commit ecfa9c9
Show file tree
Hide file tree
Showing 63 changed files with 703 additions and 1,345 deletions.
2 changes: 2 additions & 0 deletions .changeset/eleven-elephants-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
shell: bash
run: yarn install --immutable

- name: Setup tooling
run: yarn setup
- name: Build
run: yarn build

- name: Run checks
run: yarn moon ci --concurrency 4
- name: Lint
run: yarn lint

- name: Report results
uses: moonrepo/run-report-action@v1
if: success() || failure()
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
- name: Format
run: yarn format

- name: Test
run: yarn test
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
shell: bash
run: yarn install --immutable

- name: Run prerelease
run: yarn prerelease

- name: Create release Pull Request or publish to NPM
uses: changesets/action@v1
with:
Expand Down
20 changes: 0 additions & 20 deletions .moon/tasks/node-library.yml

This file was deleted.

122 changes: 0 additions & 122 deletions .moon/tasks/node.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .moon/toolchain.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .moon/workspace.yml

This file was deleted.

26 changes: 0 additions & 26 deletions apps/storybook/moon.yml

This file was deleted.

3 changes: 2 additions & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "0.0.9",
"private": true,
"scripts": {
"build": "build-storybook -c .storybook -o ./build"
"build": "build-storybook -c .storybook -o ./build",
"dev": "start-storybook -p 6006 --quiet"
},
"dependencies": {
"@project44-manifest/react": "^3.0.0",
Expand Down
38 changes: 0 additions & 38 deletions apps/website/moon.yml

This file was deleted.

2 changes: 1 addition & 1 deletion apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
"scripts": {
"generate-props": "node ./scripts/propsDoc.mjs",
"build": "yarn run generate-props && docusaurus build",
"dev": "docusaurus start",
"clear": "docusaurus clear",
"deploy": "docusaurus deploy",
"docusaurus": "docusaurus",
"serve": "docusaurus serve",
"start": "docusaurus start",
"swizzle": "docusaurus swizzle"
},
"dependencies": {
Expand Down
4 changes: 0 additions & 4 deletions apps/website/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"extends": "../../tsconfig.options.json",
"compilerOptions": {
"outDir": "../../.moon/cache/types/apps/website",
"baseUrl": ".",
"resolveJsonModule": true,
"types": [
Expand All @@ -24,9 +23,6 @@
},
{
"path": "../../packages/react-icons"
},
{
"path": "../../packages/design-tokens"
}
]
}
23 changes: 3 additions & 20 deletions tools/jest-preset/src/index.ts → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
import fs from 'fs';
import path from 'path';

const setupFilesAfterEnv: string[] = [];
const setupFilePath = path.join(process.env.MOON_WORKSPACE_ROOT ?? process.cwd(), 'tests/setup.ts');

// Only include the file if it exists, otherwise Jest throws an error
if (fs.existsSync(setupFilePath)) {
setupFilesAfterEnv.push(setupFilePath);
}

const config = {
module.exports = {
collectCoverage: false,
collectCoverageFrom: ['**/{src,tests}/**/*.{js,jsx,ts,tsx}'],
collectCoverageFrom: ['packages/**/{src,tests}/**/*.{js,jsx,ts,tsx}'],
coverageDirectory: './coverage',
coveragePathIgnorePatterns: [
'node_modules/',
Expand All @@ -31,11 +20,7 @@ const config = {
},
},
moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx', 'json'],
moduleNameMapper: {
'\\.(css|sass|scss|less|gif|png|jpg|jpeg|svg|gql|graphql|yml|yaml)$':
require.resolve('./fileMock.js'),
},
setupFilesAfterEnv,
setupFilesAfterEnv: ['./tests/setup.ts'],
testEnvironment: 'jest-environment-jsdom',
testMatch: ['**/tests/**/*.test.{js,jsx,ts,tsx}'],
transform: {
Expand All @@ -53,5 +38,3 @@ const config = {
],
},
};

export default config;
Loading

2 comments on commit ecfa9c9

@vercel
Copy link

@vercel vercel bot commented on ecfa9c9 May 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on ecfa9c9 May 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.