├── .eslintrc.js ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .npmignore ├── .npmrc ├── .prettierrc.json ├── .vscode └── settings.json ├── LICENSE.md ├── README.md ├── package.json ├── pnpm-lock.yaml ├── src ├── VirtualModuleStore.ts ├── loaders │ ├── outputCssLoader.ts │ └── transformLoader.ts ├── plugins │ ├── errorPlugin.ts │ └── webpack-virtual-modules │ │ ├── index.ts │ │ └── virtual-stats.ts ├── utils.ts └── webpackConfig.ts ├── tests └── example │ ├── apps │ └── nextjs │ │ ├── .vscode │ │ └── settings.json │ │ ├── app │ │ ├── layout.tsx │ │ ├── page.tsx │ │ └── posts │ │ │ └── page.tsx │ │ ├── components │ │ ├── clientComponents │ │ │ ├── CssModuleLink │ │ │ │ ├── index.tsx │ │ │ │ └── styles.module.css │ │ │ └── LinariaLink.tsx │ │ └── serverComponents │ │ │ ├── PostFeed.tsx │ │ │ └── ServerContainer.tsx │ │ ├── e2e │ │ └── index.test.ts │ │ ├── next-env.d.ts │ │ ├── next.config.js │ │ ├── nodemon.json │ │ ├── package.json │ │ ├── pages │ │ ├── _app.tsx │ │ └── pages │ │ │ └── index.tsx │ │ ├── playwright.config.ts │ │ ├── styles │ │ ├── global.css │ │ └── styles.linaria.global.tsx │ │ └── tsconfig.json │ ├── package.json │ ├── packages │ └── ui-kit │ │ ├── index.tsx │ │ └── package.json │ ├── pnpm-lock.yaml │ └── pnpm-workspace.yaml └── tsconfig.json /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | .next/ 3 | lib/ 4 | 5 | .DS_Store -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | .vscode/ 2 | patches/ 3 | src/ 4 | tests/ -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/.npmrc -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/package.json -------------------------------------------------------------------------------- /pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/pnpm-lock.yaml -------------------------------------------------------------------------------- /src/VirtualModuleStore.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/VirtualModuleStore.ts -------------------------------------------------------------------------------- /src/loaders/outputCssLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/loaders/outputCssLoader.ts -------------------------------------------------------------------------------- /src/loaders/transformLoader.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/loaders/transformLoader.ts -------------------------------------------------------------------------------- /src/plugins/errorPlugin.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/plugins/errorPlugin.ts -------------------------------------------------------------------------------- /src/plugins/webpack-virtual-modules/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/plugins/webpack-virtual-modules/index.ts -------------------------------------------------------------------------------- /src/plugins/webpack-virtual-modules/virtual-stats.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/plugins/webpack-virtual-modules/virtual-stats.ts -------------------------------------------------------------------------------- /src/utils.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/utils.ts -------------------------------------------------------------------------------- /src/webpackConfig.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/src/webpackConfig.ts -------------------------------------------------------------------------------- /tests/example/apps/nextjs/.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/.vscode/settings.json -------------------------------------------------------------------------------- /tests/example/apps/nextjs/app/layout.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/app/layout.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/app/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/app/page.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/app/posts/page.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/app/posts/page.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/components/clientComponents/CssModuleLink/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/components/clientComponents/CssModuleLink/index.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/components/clientComponents/CssModuleLink/styles.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/components/clientComponents/CssModuleLink/styles.module.css -------------------------------------------------------------------------------- /tests/example/apps/nextjs/components/clientComponents/LinariaLink.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/components/clientComponents/LinariaLink.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/components/serverComponents/PostFeed.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/components/serverComponents/PostFeed.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/components/serverComponents/ServerContainer.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/components/serverComponents/ServerContainer.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/e2e/index.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/e2e/index.test.ts -------------------------------------------------------------------------------- /tests/example/apps/nextjs/next-env.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/next-env.d.ts -------------------------------------------------------------------------------- /tests/example/apps/nextjs/next.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/next.config.js -------------------------------------------------------------------------------- /tests/example/apps/nextjs/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/nodemon.json -------------------------------------------------------------------------------- /tests/example/apps/nextjs/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/package.json -------------------------------------------------------------------------------- /tests/example/apps/nextjs/pages/_app.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/pages/_app.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/pages/pages/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/pages/pages/index.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/playwright.config.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/playwright.config.ts -------------------------------------------------------------------------------- /tests/example/apps/nextjs/styles/global.css: -------------------------------------------------------------------------------- 1 | html { 2 | background-color: lightblue; 3 | content: 'Default global CSS'; 4 | } 5 | -------------------------------------------------------------------------------- /tests/example/apps/nextjs/styles/styles.linaria.global.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/styles/styles.linaria.global.tsx -------------------------------------------------------------------------------- /tests/example/apps/nextjs/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/apps/nextjs/tsconfig.json -------------------------------------------------------------------------------- /tests/example/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/package.json -------------------------------------------------------------------------------- /tests/example/packages/ui-kit/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/packages/ui-kit/index.tsx -------------------------------------------------------------------------------- /tests/example/packages/ui-kit/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/packages/ui-kit/package.json -------------------------------------------------------------------------------- /tests/example/pnpm-lock.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/pnpm-lock.yaml -------------------------------------------------------------------------------- /tests/example/pnpm-workspace.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tests/example/pnpm-workspace.yaml -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DarkMage108/next-with-linaria/HEAD/tsconfig.json --------------------------------------------------------------------------------