Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ next.config.js


.nx-helpers/


.turbo/
# pwa
**/public/precache.*.*.js
**/public/sw.js
Expand Down
8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![All Contributors](https://img.shields.io/badge/all_contributors-1-orange.svg?style=flat-square)](#contributors)
![lastUpdated](https://img.shields.io/github/last-commit/BoBeenLee/bbl-nx/master)

blog & homepage project based on monorepo(nx)
blog & homepage project based on monorepo(Turborepo)

- bbl-nextjs
- ~~bbl-remix (working in progress)~~
Expand All @@ -25,7 +25,7 @@ blog & homepage project based on monorepo(nx)
- **Deployment**: Vercel
- **Styling**: Tailwind CSS
- **Tooling**: [Storybook](https://github.com/storybooks/storybook)
- **Build System**: [Nx.dev](https://nx.dev/)
- **Build System**: [Turborepo](https://turbo.build/repo)

## 📂 Directory Structure

Expand Down Expand Up @@ -96,11 +96,7 @@ pnpm test:affected
- https://bbl-nx.vercel.app/
- Deploy to Netlify (Working in progress)

## Dependencies of Graph

```
pnpm nx graph
```

### Generate UI-Components

Expand Down
29 changes: 13 additions & 16 deletions apps/bbl-nextjs/next.config.js
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
// eslint-disable-next-line @typescript-eslint/no-var-requires
const withNx = require('@nx/next/plugins/with-nx');
const withImages = require('next-images');
const withPWA = require('next-pwa')({
dest: 'public'
})

/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
**/
module.exports = withNx(
withPWA(
/** @type {import('next').NextConfig} */
module.exports = withPWA(
withImages({
reactStrictMode: true,
swcMinify: true,
nx: {
// Set this to true if you would like to to use SVGR
// See: https://github.com/gregberge/svgr
svgr: false,
},
publicRuntimeConfig: {
staticFolder: '/public',
},
experimental: {
appDir: true,
typedRoutes: true,
legacyBrowsers: false,
},
transpilePackages: ['@bbl-nx'],
transpilePackages: [
'@bbl-nx/apis',
'@bbl-nx/constants',
'@bbl-nx/features',
'@bbl-nx/hooks',
'@bbl-nx/images',
'@bbl-nx/libs',
'@bbl-nx/ui-components',
'@bbl-nx/utils',
'@bbl-nx/workspace-plugin'
],
async headers() {
return [
{
Expand Down Expand Up @@ -54,7 +52,6 @@ module.exports = withNx(
};
},
})
)
);

// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy
Expand Down
18 changes: 17 additions & 1 deletion apps/bbl-nextjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,21 @@
},
"browserslist": [
"defaults"
]
],
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@bbl-nx/apis": "workspace:*",
"@bbl-nx/constants": "workspace:*",
"@bbl-nx/features": "workspace:*",
"@bbl-nx/hooks": "workspace:*",
"@bbl-nx/images": "workspace:*",
"@bbl-nx/libs": "workspace:*",
"@bbl-nx/ui-components": "workspace:*",
"@bbl-nx/utils": "workspace:*"
}
}
90 changes: 0 additions & 90 deletions apps/bbl-nextjs/project.json

This file was deleted.

4 changes: 1 addition & 3 deletions apps/bbl-nextjs/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const { createGlobPatternsForDependencies } = require('@nx/react/tailwind');
const { join } = require('path');

/** @type {import('tailwindcss').Config} */
Expand All @@ -9,8 +8,7 @@ module.exports = {
__dirname,
'{app,src,pages,components}/**/*!(*.stories|*.spec).{ts,tsx,html}'
),
...createGlobPatternsForDependencies(__dirname),
'libs/**/*!(*.stories|*.spec).{tsx,jsx,js,html}',
join(__dirname, '../../libs/**/*!(*.stories|*.spec).{tsx,jsx,js,html}')
],
darkMode: 'class',
theme: {
Expand Down
8 changes: 7 additions & 1 deletion libs/apis/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "@bbl-nx/apis",
"version": "0.0.1",
"sideEffects": false
"sideEffects": false,
"scripts": {
"lint": "eslint .",
"test": "jest"
},
"main": "src/index.ts",
"types": "src/index.ts"
}
39 changes: 0 additions & 39 deletions libs/apis/project.json

This file was deleted.

8 changes: 7 additions & 1 deletion libs/constants/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "@bbl-nx/constants",
"version": "0.0.1",
"sideEffects": false
"sideEffects": false,
"scripts": {
"lint": "eslint .",
"test": "jest"
},
"main": "src/index.ts",
"types": "src/index.ts"
}
39 changes: 0 additions & 39 deletions libs/constants/project.json

This file was deleted.

8 changes: 7 additions & 1 deletion libs/features/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"name": "@bbl-nx/features",
"version": "0.0.1",
"sideEffects": false
"sideEffects": false,
"scripts": {
"lint": "eslint .",
"test": "jest"
},
"main": "src/index.ts",
"types": "src/index.ts"
}
54 changes: 0 additions & 54 deletions libs/features/project.json

This file was deleted.

Loading
Loading