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
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@

/dist
/coverage
CHANGELOG.md
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
"@commitlint/config-angular": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@jscutlery/semver": "^2.29.0",
"@nrwl/cli": "15.2.4",
"@nrwl/devkit": "15.2.4",
"@nrwl/eslint-plugin-nx": "15.2.4",
"@nrwl/jest": "15.2.4",
"@nrwl/js": "15.2.4",
"@nrwl/linter": "15.2.4",
"@nrwl/nx-plugin": "^15.2.4",
"@nrwl/workspace": "15.2.4",
"@nrwl/cli": "15.3.0",
"@nrwl/devkit": "15.3.0",
"@nrwl/eslint-plugin-nx": "15.3.0",
"@nrwl/jest": "15.3.0",
"@nrwl/js": "15.3.0",
"@nrwl/linter": "15.3.0",
"@nrwl/nx-plugin": "^15.3.0",
"@nrwl/vite": "15.3.0",
"@nrwl/workspace": "15.3.0",
"@swc-node/register": "^1.4.2",
"@swc/cli": "~0.1.55",
"@swc/core": "^1.2.173",
Expand All @@ -42,7 +43,7 @@
"jest-environment-jsdom": "28.1.1",
"jsonc-eslint-parser": "^2.1.0",
"ngx-deploy-npm": "^4.3.9",
"nx": "15.2.4",
"nx": "15.3.0",
"prettier": "^2.8.0",
"pretty-quick": "^3.1.3",
"ts-jest": "28.0.5",
Expand Down
8 changes: 1 addition & 7 deletions packages/qwik-nx/executors.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"$schema": "http://json-schema.org/schema",
"executors": {
"build": {
"implementation": "./src/executors/build/executor",
"schema": "./src/executors/build/schema.json",
"description": "build executor"
}
}
"executors": {}
}
11 changes: 0 additions & 11 deletions packages/qwik-nx/src/executors/build/executor.spec.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/qwik-nx/src/executors/build/executor.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/qwik-nx/src/executors/build/schema.d.ts

This file was deleted.

10 changes: 0 additions & 10 deletions packages/qwik-nx/src/executors/build/schema.json

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"extends": [
"<%= offsetFromRoot %>.eslintrc.json",
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:qwik/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": ["<%= appProjectRoot %>/tsconfig.*?.json"],
"ecmaVersion": 2021,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["@typescript-eslint"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { component$, useStylesScoped$ } from '@builder.io/qwik';
import { QwikLogo } from '../icons/qwik';
import styles from './header.css?inline';
import styles from './header.<%= styleExtension %>?inline';

export default component$(() => {
useStylesScoped$(styles);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ import { component$, useStyles$ } from '@builder.io/qwik';
import { QwikCityProvider, RouterOutlet, ServiceWorkerRegister } from '@builder.io/qwik-city';
import { RouterHead } from './components/router-head/router-head';

import globalStyles from './global.css?inline';
import globalStyles from './global.<%= styleExtension %>?inline';

export default component$(() => {
/**
* The root of a QwikCity site always start with the <QwikCityProvider> component,
* immediately followed by the document's <head> and <body>.
*
* Dont remove the `<head>` and `<body>` elements.
* Don't remove the `<head>` and `<body>` elements.
*/
useStyles$(globalStyles);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { component$, useClientEffect$, useStore, useStylesScoped$ } from '@builder.io/qwik';
import { DocumentHead, useLocation } from '@builder.io/qwik-city';
import styles from './flower.css?inline';
import styles from './flower.<%= styleExtension %>?inline';

export default component$(() => {
useStylesScoped$(styles);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../dist/out-tsc",
"types": ["node", "vite/client"]
},
"files": [],
"exclude": [],
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"]
}
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"extends": "<%= rootTsConfigPath %>",
"compilerOptions": {
"allowJs": true,
"target": "ES2017",
"module": "ES2020",
"lib": ["es2020", "DOM", "WebWorker", "DOM.Iterable"],
"jsx": "react-jsx",
"jsxImportSource": "@builder.io/qwik",
"strict": true,
"strict": <%= strict %>,
"resolveJsonModule": true,
"moduleResolution": "node",
"esModuleInterop": true,
Expand All @@ -15,11 +16,17 @@
"isolatedModules": true,
"outDir": "tmp",
"noEmit": true,
"types": ["node", "vite/client"],
"paths": {
"~/*": ["./src/*"]
}
"types": ["node", "vite/client"]
},
"files": ["./.eslintrc.cjs"],
"references": [
{
"path": "./tsconfig.app.json"
<% if(setupVitest) { %>
},
{
"path": "./tsconfig.spec.json"
<% } %>
}
],
"include": ["src"]
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,31 @@
import { defineConfig } from 'vite';
<% if(setupVitest) { %>
/// <reference types="vitest" />
<% } %>
import { qwikVite } from '@builder.io/qwik/optimizer';
import { qwikCity } from '@builder.io/qwik-city/vite';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';

export default defineConfig(() => {
return {
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
preview: {
headers: {
'Cache-Control': 'public, max-age=600',
},
export default defineConfig({
plugins: [qwikCity(), qwikVite(), tsconfigPaths()],
preview: {
headers: {
'Cache-Control': 'public, max-age=600',
},
},
server: {
open: true
},
<% if(setupVitest) { %> test: {
globals: true,
cache: {
dir: '<%= offsetFromRoot %>node_modules/.vitest',
},
};
environment: 'node',
include: ['src/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
coverage: {
reportsDirectory: '<%= offsetFromRoot %>coverage/<%= appProjectRoot %>'
}
}
<% } %>
});
Loading