Skip to content

Commit

Permalink
Use local ui lib in nextjs demo
Browse files Browse the repository at this point in the history
  • Loading branch information
brijeshb42 committed Jan 4, 2024
1 parent 15a1db4 commit cb243ce
Show file tree
Hide file tree
Showing 12 changed files with 16 additions and 7 deletions.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
/packages/mui-icons-material/src/*.js
/packages/mui-icons-material/templateSvgIcon.js
/packages/mui-utils/macros/__fixtures__/
/packages/zero-runtime/utils/
/packages/zero-runtime/processors/
/packages/zero-runtime/exports/
/packages/zero-runtime/theme/
# Ignore fixtures
/packages/typescript-to-proptypes/test/*/*
/test/bundling/fixtures/**/*.fixture.js
Expand Down
3 changes: 2 additions & 1 deletion apps/zero-runtime-next-app/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": ["plugin:react/jsx-runtime"],
"rules": {
"import/prefer-default-export": "off"
"import/prefer-default-export": "off",
"import/extensions": "off"
}
}
1 change: 0 additions & 1 deletion apps/zero-runtime-next-app/next.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
/* eslint-env node */
const { withZeroPlugin } = require('@mui/zero-next-plugin');
const { experimental_extendTheme: extendTheme } = require('@mui/material/styles');
Expand Down
1 change: 1 addition & 0 deletions apps/zero-runtime-next-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@mui/base": "workspace:^",
"@mui/material": "workspace:^",
"@mui/system": "workspace:^",
"local-ui-lib": "workspace:^",
"react": "^18",
"react-dom": "^18",
"next": "14.0.1"
Expand Down
2 changes: 1 addition & 1 deletion apps/zero-runtime-next-app/src/app/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import Image from 'next/image';
import styles from './page.module.css';
import { styled } from '@mui/zero-runtime';
import styles from './page.module.css';

const Main = styled.main({
display: 'flex',
Expand Down
2 changes: 2 additions & 0 deletions apps/zero-runtime-next-app/src/app/slider/page.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client';
import * as React from 'react';
import { styled } from '@mui/zero-runtime';
import { Button } from 'local-ui-lib';
import Slider from '@/components/Slider/ZeroSlider';

const HalfWidth = styled.div(({ theme }) => ({
Expand Down Expand Up @@ -74,6 +75,7 @@ export default function SliderPage() {
</select>
</label>
</div>
<Button>Hello</Button>
</div>
<HalfWidth>
<Slider
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable */
import * as React from 'react';
import clsx from 'clsx';
import { unstable_composeClasses as composeClasses } from '@mui/utils';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"deduplicate": "pnpm dedupe",
"benchmark:browser": "pnpm --filter benchmark browser",
"build": "lerna run --scope \"@mui/*\" build",
"build:zero": "lerna run --scope \"@mui/zero-*\" build",
"clean:zero": "lerna run --scope \"@mui/zero-*\" clean",
"build:codesandbox": "NODE_OPTIONS=\"–max_old_space_size=4096\" lerna run --concurrency 8 --scope \"@mui/*\" build",
"release:version": "lerna version --no-changelog --no-push --no-git-tag-version --no-private --force-publish=@mui/core-downloads-tracker",
"release:build": "lerna run --concurrency 8 --scope \"@mui/*\" build --skip-nx-cache",
Expand Down
1 change: 1 addition & 0 deletions packages/zero-runtime/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"ignorePatterns": ["**/exports/*.js", "**/theme/*.*"],
"rules": {
"import/prefer-default-export": "off"
}
Expand Down
1 change: 1 addition & 0 deletions packages/zero-runtime/exports/generateAtomics.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-ignore
Object.defineProperty(exports, '__esModule', {
value: true,
});
Expand Down
2 changes: 0 additions & 2 deletions packages/zero-unplugin/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {
UnpluginFactoryOutput,
WebpackPluginInstance,
createUnplugin,
VitePlugin,
UnpluginOptions,
} from 'unplugin';
import { transformAsync } from '@babel/core';
Expand Down Expand Up @@ -340,4 +339,3 @@ export const webpack = plugin.webpack as unknown as UnpluginFactoryOutput<
PluginOptions,
WebpackPluginInstance
>;
export const vite = plugin.vite as unknown as UnpluginFactoryOutput<PluginOptions, VitePlugin>;
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cb243ce

Please sign in to comment.