chore(landing-page): move all deps to app workspace

This commit is contained in:
Ayo 2023-10-21 14:06:41 +02:00
parent ef586d21f3
commit f7a41de130
37 changed files with 145 additions and 18 deletions

15
app/.editorconfig Normal file
View file

@ -0,0 +1,15 @@
root = true
[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8
[*.js]
indent_style = space
indent_size = 2
[{package.json,*.yml,*.cjson}]
indent_style = space
indent_size = 2

3
app/.eslintignore Normal file
View file

@ -0,0 +1,3 @@
dist
.output
node-modules

5
app/.eslintrc Normal file
View file

@ -0,0 +1,5 @@
{
"extends": [
"@nuxtjs/eslint-config-typescript"
]
}

7
app/.gitignore vendored Normal file
View file

@ -0,0 +1,7 @@
node_modules
*.log*
.nitro
.cache
.output
.env
dist

2
app/.npmrc Normal file
View file

@ -0,0 +1,2 @@
shamefully-hoist=true
strict-peer-dependencies=false

42
app/README.md Normal file
View file

@ -0,0 +1,42 @@
# Nitro Minimal Starter
Look at the [Nitro documentation](https://nitro.unjs.io/) to learn more.
## Setup
Make sure to install the dependencies:
```bash
# npm
npm install
# yarn
yarn install
# pnpm
pnpm install
```
## Development Server
Start the development server on <http://localhost:3000>
```bash
npm run dev
```
## Production
Build the application for production:
```bash
npm run build
```
Locally preview production build:
```bash
npm run preview
```
Check out the [deployment documentation](https://nitro.unjs.io/deploy) for more information.

31
app/package.json Normal file
View file

@ -0,0 +1,31 @@
{
"name": "@mcflyjs/landing-page",
"description": "McFly is a full-stack no-framework framework that assists developers in leveraging the web platform.",
"private": true,
"scripts": {
"start": "nitropack dev",
"prepare": "nitropack prepare",
"dev": "nitropack dev",
"build": "nitropack build",
"preview": "node .output/server/index.mjs"
},
"dependencies": {
"esprima": "^4.0.1",
"nitropack": "latest",
"ultrahtml": "^1.5.2"
},
"version": "0.0.1",
"main": "index.js",
"devDependencies": {},
"repository": {
"type": "git",
"url": "git+https://github.com/ayoayco/McFly.git",
"directory": "app"
},
"author": "Ayo Ayco",
"license": "MIT",
"bugs": {
"url": "https://github.com/ayoayco/McFly/issues"
},
"homepage": "https://github.com/ayoayco/McFly#readme"
}

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View file

@ -0,0 +1,15 @@
<header
style="
border-radius: 5px;
background: linear-gradient(45deg, #3054bf, #416fff);
color: white;
margin-bottom: 1em;
padding: 1em;
margin: 1em auto;
"
>
<a style="color: white" href="/">
<h1>McFly</h1>
</a>
<span>Back to the Basics. Into the Future.</span>
</header>

3
app/tsconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"extends": "./.nitro/types/tsconfig.json"
}

17
package-lock.json generated
View file

@ -8,13 +8,20 @@
"packages/config", "packages/config",
"packages/create-mcfly", "packages/create-mcfly",
"templates/basic", "templates/basic",
"packages/core" "packages/core",
], "app"
]
},
"app": {
"name": "@mcflyjs/landing-page",
"version": "0.0.1",
"license": "MIT",
"dependencies": { "dependencies": {
"esprima": "^4.0.1", "esprima": "^4.0.1",
"nitropack": "latest", "nitropack": "latest",
"ultrahtml": "^1.5.2" "ultrahtml": "^1.5.2"
} },
"devDependencies": {}
}, },
"node_modules/@cloudflare/kv-asset-handler": { "node_modules/@cloudflare/kv-asset-handler": {
"version": "0.3.0", "version": "0.3.0",
@ -446,6 +453,10 @@
"resolved": "packages/core", "resolved": "packages/core",
"link": true "link": true
}, },
"node_modules/@mcflyjs/landing-page": {
"resolved": "app",
"link": true
},
"node_modules/@netlify/functions": { "node_modules/@netlify/functions": {
"version": "2.3.0", "version": "2.3.0",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.3.0.tgz", "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.3.0.tgz",

View file

@ -1,22 +1,15 @@
{ {
"private": true, "private": true,
"scripts": { "scripts": {
"start": "nitropack dev", "start": "npm start -w @mcflyjs/landing-page",
"prepare": "nitropack prepare", "build": "npm run build -w @mcflyjs/landing-page",
"dev": "nitropack dev", "build:preview": "npm run build:preview -w @mcflyjs/landing-page"
"build": "nitropack build",
"preview": "node .output/server/index.mjs",
"build:preview": "npm run build && npm run preview"
},
"dependencies": {
"esprima": "^4.0.1",
"nitropack": "latest",
"ultrahtml": "^1.5.2"
}, },
"workspaces": [ "workspaces": [
"packages/config", "packages/config",
"packages/create-mcfly", "packages/create-mcfly",
"templates/basic", "templates/basic",
"packages/core" "packages/core",
"app"
] ]
} }

View file

@ -4,7 +4,7 @@
import { ELEMENT_NODE, parse, render, renderSync, walkSync } from "ultrahtml"; import { ELEMENT_NODE, parse, render, renderSync, walkSync } from "ultrahtml";
import { parseScript } from "esprima"; import { parseScript } from "esprima";
import config from "../mcfly.config"; import config from "../app/mcfly.config";
const { components: componentType } = config(); const { components: componentType } = config();

View file

@ -1,5 +1,5 @@
import { NitroApp } from "nitropack"; import { NitroApp } from "nitropack";
import config from "../mcfly.config"; import config from "../app/mcfly.config";
export default defineNitroPlugin((event: NitroApp) => { export default defineNitroPlugin((event: NitroApp) => {
const { onBuild } = config(); const { onBuild } = config();

View file

@ -4,7 +4,7 @@
import { ELEMENT_NODE, parse, render, renderSync, walkSync } from "ultrahtml"; import { ELEMENT_NODE, parse, render, renderSync, walkSync } from "ultrahtml";
import { parseScript } from "esprima"; import { parseScript } from "esprima";
import config from "../../../mcfly.config"; import config from "../../../app/mcfly.config";
const { components: componentType } = config(); const { components: componentType } = config();