Merge pull request #18 from davidlcorbitt/main

Update example repo to use v0.41.0 of @redwoodjs/core
This commit is contained in:
Rob Cameron
2022-01-19 13:02:34 -08:00
committed by GitHub
10 changed files with 3064 additions and 2704 deletions

View File

@@ -14,6 +14,5 @@ git clone https://github.com/redwoodjs/redwood-tutorial
cd redwood-tutorial cd redwood-tutorial
yarn install yarn install
yarn rw prisma migrate dev yarn rw prisma migrate dev
yarn rw prisma db seed
yarn rw dev yarn rw dev
``` ```

View File

@@ -3,7 +3,7 @@
"version": "0.0.0", "version": "0.0.0",
"private": true, "private": true,
"dependencies": { "dependencies": {
"@redwoodjs/api": "^0.38.0", "@redwoodjs/api": "^0.41.0",
"@redwoodjs/graphql-server": "^0.38.0" "@redwoodjs/graphql-server": "^0.41.0"
} }
} }

View File

@@ -1,3 +0,0 @@
module.exports = {
presets: ['@redwoodjs/core/config/babel-preset'],
}

View File

@@ -7,13 +7,13 @@
] ]
}, },
"devDependencies": { "devDependencies": {
"@redwoodjs/core": "^0.38.0" "@redwoodjs/core": "^0.41.0"
}, },
"eslintConfig": { "eslintConfig": {
"extends": "@redwoodjs/eslint-config" "extends": "@redwoodjs/eslint-config"
}, },
"engines": { "engines": {
"node": ">=14.x <=16.x", "node": ">=14.17 <=16.x",
"yarn": ">=1.15" "yarn": ">=1.15"
}, },
"prisma": { "prisma": {

View File

@@ -1 +0,0 @@
module.exports = { extends: "../babel.config.js" }

View File

@@ -1,6 +1,5 @@
module.exports = { module.exports = {
mode: 'jit', content: ['src/**/*.{js,jsx,ts,tsx}'],
purge: ['src/**/*.{js,jsx,ts,tsx}'],
darkMode: false, // or 'media' or 'class' darkMode: false, // or 'media' or 'class'
theme: { theme: {
extend: { extend: {

View File

@@ -13,19 +13,23 @@
] ]
}, },
"dependencies": { "dependencies": {
"@redwoodjs/auth": "^0.38.0", "@redwoodjs/auth": "^0.41.0",
"@redwoodjs/forms": "^0.38.0", "@redwoodjs/forms": "^0.41.0",
"@redwoodjs/router": "^0.38.0", "@redwoodjs/router": "^0.41.0",
"@redwoodjs/web": "^0.38.0", "@redwoodjs/web": "^0.41.0",
"netlify-identity-widget": "^1.9.2", "netlify-identity-widget": "^1.9.2",
"prop-types": "^15.7.2", "prop-types": "^15.7.2",
"react": "^17.0.2", "react": "^17.0.2",
"react-dom": "^17.0.2" "react-dom": "^17.0.2"
}, },
"devDependencies": { "devDependencies": {
"autoprefixer": "^10.3.1", "@tailwindcss/aspect-ratio": "^0.4.0",
"postcss": "^8.3.6", "@tailwindcss/forms": "^0.4.0",
"postcss-loader": "^6.1.1", "@tailwindcss/line-clamp": "^0.3.1",
"tailwindcss": "^2.2.7" "@tailwindcss/typography": "^0.5.0",
"autoprefixer": "^10.4.2",
"postcss": "^8.4.5",
"postcss-loader": "^6.2.1",
"tailwindcss": "^3.0.15"
} }
} }

View File

@@ -1,9 +1,11 @@
// Define your own mock data here: // Define your own mock data here:
export const standard = (/* vars, { ctx, req } */) => ({ export const standard = () => {
post: { return {
id: 1, post: {
title: 'First Post', id: 1,
body: `Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.`, title: 'First Post',
createdAt: '2020-01-01T12:34:56Z', body: `Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.`,
}, createdAt: '2020-01-01T12:34:56Z',
}) },
};
};

View File

@@ -1,17 +1,19 @@
// Define your own mock data here: // Define your own mock data here:
export const standard = (/* vars, { ctx, req } */) => ({ export const standard = () => {
posts: [ return {
{ posts: [
id: 1, {
title: 'First Post', id: 1,
body: `Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.`, title: 'First Post',
createdAt: '2020-01-01T12:34:56Z', body: `Neutra tacos hot chicken prism raw denim, put a bird on it enamel pin post-ironic vape cred DIY. Street art next level umami squid. Hammock hexagon glossier 8-bit banjo. Neutra la croix mixtape echo park four loko semiotics kitsch forage chambray. Semiotics salvia selfies jianbing hella shaman. Letterpress helvetica vaporware cronut, shaman butcher YOLO poke fixie hoodie gentrify woke heirloom.`,
}, createdAt: '2020-01-01T12:34:56Z',
{ },
id: 2, {
title: 'Second Post', id: 2,
body: `Master cleanse gentrify irony put a bird on it hexagon enamel pin. Pop-up man braid artisan pug tilde synth lo-fi. Ethical tofu portland keytar waistcoat. Pabst authentic hammock chillwave twee trust fund. Lyft humblebrag ramps irony unicorn.`, title: 'Second Post',
createdAt: '2020-01-01T12:34:56Z', body: `Master cleanse gentrify irony put a bird on it hexagon enamel pin. Pop-up man braid artisan pug tilde synth lo-fi. Ethical tofu portland keytar waistcoat. Pabst authentic hammock chillwave twee trust fund. Lyft humblebrag ramps irony unicorn.`,
}, createdAt: '2020-01-01T12:34:56Z',
], },
}) ],
};
};

5678
yarn.lock

File diff suppressed because it is too large Load Diff