Code Monkey home page Code Monkey logo

koddr / reactless-ts Goto Github PK

View Code? Open in Web Editor NEW
7.0 3.0 1.0 655 KB

✨ A handy production-ready template for rapidly frontend development that you've often dreamed of. Small, but with full backward compatibility to all of React.js ecosystem, but without its overhead!

Home Page: https://shostak.dev/

License: MIT License

HTML 8.12% JavaScript 15.00% TypeScript 75.58% CSS 1.30%
react typescript reactjs react-template preact preact-template tailwindcss frontend preactjs

reactless-ts's Introduction

✨ Reactless.ts

A handy production-ready template for rapidly frontend development that you've often dreamed of.

Included awesome Preact framework with TypeScript, Tailwind CSS & Headless UI visual frameworks, and configured next generation frontend tooling called Vite.

🔥 Yep, with full backward compatibility to all of React.js ecosystem, but without its overhead! 🔥

⚡️ Quick Start

Make sure that the Node.js is installed. Version 12.x and higher is required.

For easily template installation process (without git clone and other things), please install degit tool:

npm install -g degit

Next, let's download Reactless.ts template:

degit koddr/reactless-ts my-app

And, finally, go to your app folder, install dependencies and run dev server:

cd ./my-app && npm install && npm run dev

Screenshot

🏗 Build for production

For create a production build, just run npm run build command:

vite v2.X.X building for production...

✓ X modules transformed.

dist/index.html               0.64kb
dist/assets/favicon.XXX.svg   1.49kb
dist/assets/index.XXX.js      3.77kb / brotli: 1.55kb
dist/assets/index.XXX.css     13.85kb / brotli: 3.02kb
dist/assets/vendor.XXX.js     37.88kb / brotli: 12.34kb

🔄 Easy update for all dependencies

For update (and upgrade) all dependencies, just run npm run update command. This will do three things at once: check outdated packages, upgrade them, and then install new versions of those packages:

# 1. npm outdated

Package       Current  Wanted  Latest  Location                   Depended by
@types/node    15.0.3  15.6.0  15.6.0  node_modules/@types/node   project
@types/react   17.0.5  17.0.6  17.0.6  node_modules/@types/react  project
postcss        8.2.15   8.3.0   8.3.0  node_modules/postcss       project
vite            2.3.2   2.3.3   2.3.3  node_modules/vite          project

# 2. npx npm-check-updates -u

Need to install the following packages:
  npm-check-updates

Ok to proceed? (y) ___ # <-- type 'Y' to continue process

Upgrading /user/folder/project/package.json

[====================] 19/19 100%

 @types/node   ^15.0.3  →  ^15.6.0
 @types/react  ^17.0.5  →  ^17.0.6
 postcss       ^8.2.15  →   ^8.3.0
 vite           ^2.3.2  →   ^2.3.3

# 3. npm install

added X package, removed X package, changed X packages, and audited XXX packages in 6s

🤔 Why such a strange name?

This template was created in pursuit of reducing size of the bundle, but with a great desire to make backward compatibility with React. Therefore, the name denotes the direction of the author's movement to reduce the presence of React.js in the template. Less React, less bundle size! That's it.

⚠️ License

MIT © Vic Shóstak & True web artisans.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.