Skip to content

Commit

Permalink
setup netlify
Browse files Browse the repository at this point in the history
  • Loading branch information
Brijesh Bittu committed Nov 4, 2024
1 parent d899dbd commit 0089f95
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 132 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module.exports = {
*/
rules: {
'consistent-this': ['error', 'self'],
'import/prefer-default-export': 'off',
curly: ['error', 'all'],
// Just as bad as "max components per file"
'max-classes-per-file': 'off',
Expand Down
6 changes: 6 additions & 0 deletions docs/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = {
rules: {
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
},
};
6 changes: 0 additions & 6 deletions docs/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion docs/next.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { NextConfig } from 'next';
import { withPigment, extendTheme } from '@pigment-css/nextjs-plugin';
import { theme as baseTheme } from './src/theme';
import path from 'path';
import { theme as baseTheme } from './src/theme';

const DATA_DIR = path.join(process.cwd(), 'data');

Expand Down
5 changes: 3 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"private": true,
"scripts": {
"dev": "next dev",
"build": "NODE_ENV=production next build",
"build": "cross-env NODE_ENV=production next build",
"preview": "serve ./export",
"lint": "next lint"
"lint": "next lint",
"typescript": "tsc --noEmit -p ."
},
"dependencies": {
"@base_ui/react": "^1.0.0-alpha.3",
Expand Down
16 changes: 16 additions & 0 deletions docs/src/augment.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import type { SxProp } from '@pigment-css/react';
import { Theme } from './theme';

declare module '@pigment-css/react/theme' {
export interface ThemeArgs {
theme: Theme & {
vars: Theme;
};
}
}

declare module 'react' {
interface Attributes {
sx?: SxProp | undefined;
}
}
17 changes: 0 additions & 17 deletions docs/src/theme.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import {} from 'react';
import type { SxProp } from '@pigment-css/react';

export const theme = {
gray: {
surface: {
Expand Down Expand Up @@ -71,17 +68,3 @@ export const theme = {
};

export type Theme = typeof theme;

declare module '@pigment-css/react/theme' {
export interface ThemeArgs {
theme: Theme & {
vars: Theme;
};
}
}

declare module 'react' {
interface Attributes {
sx?: SxProp | undefined;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"release:publish": "pnpm publish --recursive --tag latest",
"release:publish:dry-run": "pnpm publish --recursive --tag latest --registry=\"http://localhost:4873/\"",
"release:tag": "node scripts/releaseTag.mjs",
"docs:build": "rm -rf docs && mkdir -p docs/export && touch docs/export/index.html",
"docs:build": "nx run docs:build",
"extract-error-codes": "cross-env MUI_EXTRACT_ERROR_CODES=true lerna run --concurrency 8 build:modern",
"install:codesandbox": "pnpm install --no-frozen-lockfile",
"jsonlint": "node ./scripts/jsonlint.mjs",
Expand Down
Loading

0 comments on commit 0089f95

Please sign in to comment.