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
10 changes: 7 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,20 @@ name: CI

on:
pull_request:
branches: [main]
branches: [main, dev]

jobs:
lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm install
- run: npm run lint

- run: npm ci

- run: npm run lint
2 changes: 2 additions & 0 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion src/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ export async function generateProject(config) {
const configFilePath = path.join(projectPath, 'opusify.config.json');
fs.writeFileSync(configFilePath, JSON.stringify(config, null, 2));

// 5. AUTOMATION PHASE: Install Dependencies
// 5. Resolve dynamic dependencies based on user choices
resolveDependencies(projectPath, config);

// 6. AUTOMATION PHASE: Install Dependencies
const installSpinner = ora({
text: 'Installing dependencies (this might take a minute)...',
spinner: 'squareCorners',
Expand Down
2 changes: 1 addition & 1 deletion templates/blog/nextjs-monolith/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const useSidebar = '{{includeSidebar}}' === 'true';
const useSidebar = ('{{includeSidebar}}' as string) === 'true';

return (
<html lang="en" data-theme="{{design}}">
Expand Down
2 changes: 1 addition & 1 deletion templates/ecommerce/nextjs-monolith/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const useSidebar = '{{includeSidebar}}' === 'true';
const useSidebar = ('{{includeSidebar}}' as string) === 'true';

return (
<html lang="en" data-theme="{{design}}">
Expand Down
2 changes: 1 addition & 1 deletion templates/saas/nextjs-monolith/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const useSidebar = '{{includeSidebar}}' === 'true';
const useSidebar = ('{{includeSidebar}}' as string) === 'true';

return (
<html lang="en" data-theme="{{design}}">
Expand Down
2 changes: 1 addition & 1 deletion templates/saas/vite-react/src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ function Sidebar() {
}

export default function Layout() {
const useSidebar = '{{includeSidebar}}' === 'true';
const useSidebar = ('{{includeSidebar}}' as string) === 'true';

if (useSidebar) {
return (
Expand Down
2 changes: 1 addition & 1 deletion templates/school/nextjs-monolith/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export default function RootLayout({
}: {
children: React.ReactNode;
}) {
const useSidebar = '{{includeSidebar}}' === 'true';
const useSidebar = ('{{includeSidebar}}' as string) === 'true';

return (
<html lang="en" data-theme="{{design}}">
Expand Down
Loading