Skip to content

Commit 2fa8789

Browse files
authored
Merge pull request #145 from TrialAndErrorOrg/feat/next-blog
2 parents 4c4ae9b + da0df94 commit 2fa8789

File tree

512 files changed

+18235
-115919
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

512 files changed

+18235
-115919
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

.eslintrc.json

Lines changed: 22 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"root": true,
33
"ignorePatterns": ["**/*"],
4-
"plugins": ["@nrwl/nx", "prettier", "prefer-arrow"],
4+
"plugins": ["@nx", "prettier", "prefer-arrow"],
55
"rules": {},
66
"overrides": [
77
{
88
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
99
"rules": {
10-
"@nrwl/nx/enforce-module-boundaries": [
10+
"@nx/enforce-module-boundaries": [
1111
"error",
1212
{
1313
"enforceBuildableLibDependency": true,
@@ -24,7 +24,7 @@
2424
},
2525
{
2626
"files": ["*.ts", "*.tsx"],
27-
"extends": ["plugin:@nrwl/nx/typescript", "airbnb", "airbnb-typescript", "next", "prettier"],
27+
"extends": ["plugin:@nx/typescript", "airbnb", "airbnb-typescript", "next", "prettier"],
2828
"rules": {
2929
"prefer-arrow/prefer-arrow-functions": [
3030
"error",
@@ -34,8 +34,19 @@
3434
"classPropertiesAllowed": false
3535
}
3636
],
37-
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }],
38-
"func-style": ["error", "expression", { "allowArrowFunctions": true }],
37+
"prefer-arrow-callback": [
38+
"error",
39+
{
40+
"allowNamedFunctions": true
41+
}
42+
],
43+
"func-style": [
44+
"error",
45+
"expression",
46+
{
47+
"allowArrowFunctions": true
48+
}
49+
],
3950
"react/prop-types": "off",
4051
"import/prefer-default-export": "off",
4152
"import/no-extraneous-dependencies": "off",
@@ -61,7 +72,12 @@
6172
},
6273
{
6374
"files": ["*.js", "*.jsx"],
64-
"extends": ["plugin:@nrwl/nx/javascript"],
75+
"extends": ["plugin:@nx/javascript"],
76+
"rules": {}
77+
},
78+
{
79+
"files": "*.json",
80+
"parser": "jsonc-eslint-parser",
6581
"rules": {}
6682
}
6783
]

.storybook/main.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

.storybook/tsconfig.json

Lines changed: 0 additions & 14 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"typescript.tsdk": "node_modules/typescript/lib",
3-
43
"tailwindCSS.experimental.configFile": "apps/trialanderror.org/tailwind.config.cjs",
54
"exportall.config.folderListener": ["/libs/types/src/lib/github", "/libs/types/src/lib"],
65
"appService.defaultWebAppToDeploy": "/subscriptions/3d4dfc68-39d1-4d8e-81d5-b59ee8d8cd36/microsoft.web/sites/subscriptions/3d4dfc68-39d1-4d8e-81d5-b59ee8d8cd36/resourceGroups/centeroftrialanderror.com/providers/Microsoft.Web/sites/cote-strapi",
76
"appService.deploySubpath": "apps/strapi",
8-
"exportall.config.relExclusion": ["/libs/types/src/lib/validators.ts"]
7+
"exportall.config.relExclusion": ["/libs/types/src/lib/validators.ts"],
8+
"eslint.validate": ["json"]
99
}

apps/blog-e2e/cypress.config.ts

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
import { defineConfig } from 'cypress'
2-
import { nxE2EPreset } from '@nrwl/cypress/plugins/cypress-preset'
2+
import { nxE2EPreset } from '@nx/cypress/plugins/cypress-preset'
33

44
export default defineConfig({
5-
e2e: nxE2EPreset(__dirname),
5+
e2e: {
6+
...nxE2EPreset(__dirname),
7+
/**
8+
* TODO(@nx/cypress): In Cypress v12,the testIsolation option is turned on by default.
9+
* This can cause tests to start breaking where not indended.
10+
* You should consider enabling this once you verify tests do not depend on each other
11+
* More Info: https://docs.cypress.io/guides/references/migration-guide#Test-Isolation
12+
**/
13+
testIsolation: false,
14+
},
615
})

apps/blog-e2e/project.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"projectType": "application",
66
"targets": {
77
"e2e": {
8-
"executor": "@nrwl/cypress:cypress",
8+
"executor": "@nx/cypress:cypress",
99
"options": {
1010
"cypressConfig": "apps/blog-e2e/cypress.config.ts",
1111
"devServerTarget": "blog:dev",
1212
"testingType": "e2e"
1313
}
1414
},
1515
"lint": {
16-
"executor": "@nrwl/linter:eslint",
16+
"executor": "@nx/linter:eslint",
1717
"outputs": ["{options.outputFile}"],
1818
"options": {
1919
"lintFilePatterns": ["apps/blog-e2e/**/*.{js,ts}"]

apps/blog/project.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
2-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
32
"name": "blog",
3+
"$schema": "../../node_modules/nx/schemas/project-schema.json",
44
"projectType": "application",
55
"sourceRoot": "apps/blog/src",
66
"targets": {
77
"build": {
8-
"outputs": ["dist/apps/blog"],
8+
"outputs": [
9+
"dist/apps/blog"
10+
],
911
"executor": "@nxtensions/astro:build",
1012
"options": {
1113
"config": "astro.config.ts"
@@ -18,8 +20,7 @@
1820
"preview": {
1921
"dependsOn": [
2022
{
21-
"target": "build",
22-
"projects": "self"
23+
"target": "build"
2324
}
2425
],
2526
"executor": "@nxtensions/astro:preview",

apps/email/.eslintrc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": [
3-
"plugin:@nrwl/nx/react-typescript",
3+
"plugin:@nx/react-typescript",
44
"next",
55
"next/core-web-vitals",
66
"../../.eslintrc.json"

apps/email/jest.config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ export default {
33
displayName: 'trialanderror.org',
44
preset: '../../jest.preset.js',
55
transform: {
6-
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nrwl/react/plugins/jest',
7-
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nrwl/next/babel'] }],
6+
'^(?!.*\\.(js|jsx|ts|tsx|css|json)$)': '@nx/react/plugins/jest',
7+
'^.+\\.[tj]sx?$': ['babel-jest', { presets: ['@nx/next/babel'] }],
88
},
99
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx'],
1010
coverageDirectory: '../../coverage/apps/trialanderror.org',
11-
}
11+
};

0 commit comments

Comments
 (0)