refactor(templates): clean the basic template
- remove author info - simplify readme - clean package info
This commit is contained in:
parent
12b2066057
commit
cd4b341a5f
3 changed files with 2 additions and 41 deletions
|
@ -1,23 +1,9 @@
|
||||||
# McFly Starter Project
|
# McFly Starter Project
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
## Background
|
|
||||||
This project was generated from the basic template for **McFly** -- a no-framework framework that assists in leveraging the web platform.
|
This project was generated from the basic template for **McFly** -- a no-framework framework that assists in leveraging the web platform.
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
It contains example files to get you started using vanilla web technologies in a modern way. See the [Special Directories](#special-directories) section for more information.
|
It contains example files to get you started using vanilla web technologies in a modern way. See the [Special Directories](#special-directories) section for more information.
|
||||||
|
|
||||||
## Features
|
|
||||||
The time has come for vanilla Web tech. 🎉
|
|
||||||
|
|
||||||
✅ Create web apps with vanilla custom elements<br>
|
|
||||||
✅ Write real .HTML files<br>
|
|
||||||
✅ Have no frameworks or reactivity libraries on the browser<br>
|
|
||||||
✅ Use server-side rendering<br>
|
|
||||||
✅ Deploy anywhere<br>
|
|
||||||
|
|
||||||
## Special directories
|
## Special directories
|
||||||
**1. `./src/pages/`**
|
**1. `./src/pages/`**
|
||||||
- file-based routing for `.html` files
|
- file-based routing for `.html` files
|
||||||
|
@ -34,18 +20,6 @@ The time has come for vanilla Web tech. 🎉
|
||||||
- e.g., `./routes/api/users.ts` can be accessed via `http://<domain>/api/users`
|
- e.g., `./routes/api/users.ts` can be accessed via `http://<domain>/api/users`
|
||||||
- TypeScript or JavaScript welcome!
|
- TypeScript or JavaScript welcome!
|
||||||
|
|
||||||
## McFly config
|
|
||||||
|
|
||||||
To tell McFly you want to use components, pass the mode (only `"js"` for now) to the `components` prop mcfly.config.ts
|
|
||||||
|
|
||||||
```js
|
|
||||||
import defineConfig from "./packages/define-config";
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
components: "js",
|
|
||||||
});
|
|
||||||
|
|
||||||
```
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
The following commands are available to you on this project. Add more, or modify them as needed in your `./package.json` file.
|
The following commands are available to you on this project. Add more, or modify them as needed in your `./package.json` file.
|
||||||
|
@ -56,8 +30,3 @@ The following commands are available to you on this project. Add more, or modify
|
||||||
| npm run prepare | Prepare the workspace |
|
| npm run prepare | Prepare the workspace |
|
||||||
| npm run build | Locally generate the app's build files to `./output` |
|
| npm run build | Locally generate the app's build files to `./output` |
|
||||||
| npm run preview | Preview the built app locally |
|
| npm run preview | Preview the built app locally |
|
||||||
|
|
||||||
|
|
||||||
---
|
|
||||||
*Just keep building*<br />
|
|
||||||
*A project by [Ayo Ayco](https://ayco.io)*
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@templates/basic",
|
"name": "@templates/basic",
|
||||||
"description": "McFly starter project; see more on https://ayco.io/gh/McFly",
|
"description": "McFly starter project",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "mcfly serve",
|
"start": "mcfly serve",
|
||||||
"prepare": "mcfly prepare",
|
"prepare": "mcfly prepare",
|
||||||
|
@ -14,9 +14,5 @@
|
||||||
"@mcflyjs/config": "latest",
|
"@mcflyjs/config": "latest",
|
||||||
"@mcflyjs/core": "latest",
|
"@mcflyjs/core": "latest",
|
||||||
"nitropack": "latest"
|
"nitropack": "latest"
|
||||||
},
|
}
|
||||||
"version": "0.0.1",
|
|
||||||
"main": "index.js",
|
|
||||||
"author": "Ayo Ayco",
|
|
||||||
"license": "MIT"
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,10 +11,6 @@
|
||||||
name: "McFly",
|
name: "McFly",
|
||||||
description: "Back to the Basics. Into the Future."
|
description: "Back to the Basics. Into the Future."
|
||||||
};
|
};
|
||||||
const author = {
|
|
||||||
name: "Ayo Ayco",
|
|
||||||
url: "https://ayco.io"
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
</my-head>
|
</my-head>
|
||||||
<body>
|
<body>
|
||||||
|
|
Loading…
Reference in a new issue