├── .gitignore ├── README.md └── template ├── .gitignore ├── package.json └── src ├── assets ├── favicon.ico └── icon.png ├── index.js ├── manifest.json └── style.css /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | .DS_Store 3 | *.lock 4 | *.log -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # preact-simple-boilerplate 2 | -------------------------------------------------------------------------------- /template/.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /build 3 | /*.log -------------------------------------------------------------------------------- /template/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "private": true, 3 | "name": "{{ name }}", 4 | "version": "0.0.0", 5 | "license": "MIT", 6 | "scripts": { 7 | "build": "preact build", 8 | "serve": "sirv build --port 8080 --cors --single", 9 | "dev": "preact watch", 10 | "lint": "eslint src" 11 | }, 12 | "eslintConfig": { 13 | "extends": "preact" 14 | }, 15 | "eslintIgnore": [ 16 | "build/*" 17 | ], 18 | "devDependencies": { 19 | "eslint": "^7.17.0", 20 | "eslint-config-preact": "^1.1.3", 21 | "preact-cli": "^3.0.0", 22 | "sirv-cli": "^1.0.3" 23 | }, 24 | "dependencies": { 25 | "preact": "^10.1.0", 26 | "preact-render-to-string": "^5.1.2" 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /template/src/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/preactjs-templates/simple/528ba28496fed30c9e017ce38fa613ceadda5c57/template/src/assets/favicon.ico -------------------------------------------------------------------------------- /template/src/assets/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/preactjs-templates/simple/528ba28496fed30c9e017ce38fa613ceadda5c57/template/src/assets/icon.png -------------------------------------------------------------------------------- /template/src/index.js: -------------------------------------------------------------------------------- 1 | import './style'; 2 | 3 | export default function App() { 4 | return ( 5 |
6 |

Hello, World!

7 |
8 | ); 9 | } 10 | -------------------------------------------------------------------------------- /template/src/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "{{ name }}", 3 | "short_name": "{{ name }}", 4 | "start_url": "/", 5 | "display": "standalone", 6 | "orientation": "portrait", 7 | "background_color": "#fff", 8 | "theme_color": "#673ab8", 9 | "icons": [{ 10 | "src": "/assets/icon.png", 11 | "type": "image/png", 12 | "sizes": "512x512" 13 | }] 14 | } 15 | -------------------------------------------------------------------------------- /template/src/style.css: -------------------------------------------------------------------------------- 1 | html, body { 2 | font: 14px/1.21 'Helvetica Neue', arial, sans-serif; 3 | font-weight: 400; 4 | } 5 | 6 | h1 { 7 | text-align: center; 8 | } 9 | --------------------------------------------------------------------------------