Giter Site home page Giter Site logo

tony / react-typescript-vanilla-starter Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 1.43 MB

React + Typescript (including typed webpack v4 config) + Babel

License: MIT License

TypeScript 79.08% HTML 6.88% JavaScript 14.04%
webpack4 webpack4starter webpack4-starter-kit webpack4-boilerplate typescript-boilerplate react-boilerplate react-starter-kit node-10 node-12 react

react-typescript-vanilla-starter's Introduction

See also: https://github.com/tony/vue-typescript-vanilla-starter

Split off of https://github.com/tony/cv v2 in the initial stages

MIT licensed. Feel free to copy, fork, etc.

Summary

Dev server, typed webpack config, typescript, jsx, babel.

No SASS/SCSS/LESS. No static files. Wiring those in are highly dependent on integration.

Usage

npm install  # install packages

npm run start  # launch + hot reloading + watch file changes http://localhost:3099

npm run build  # build to dist/

Environmental variables

Webpack's environmental variables can be passed (--env):

npm run start -- --env.devServerPort 3082, build + watch at http://localhost:3082

npm run start -- --env.production

npm run start -- --open Launch browser + build + watch files, http://localhost:3099

Contribution guidelines

Corrections: ✔️

Package updates: ✔️ (please QA to verify build output / watch / reloading works)

CI System: ✔️ (get travis setup)

New feature / Loader: 🚫 (please create a fork!)

Weakness of most starters (e.g. create-react-app):

  • Opaque: No way to see the innards of what's being built

    Even npm run eject shows tons of macro code that resembles nothing like what a webpack config would look like on a project.

  • Labyrinthian: Tons of stuff to remove, overlapping dependencies. Many things of which aren't being used.

    package.json riddled with stuff you don't even know they're for.

    You'll then go out and find starters in github repos to find they add tons of specialized stuff that wouldn't fit your unique integration. You don't want jest, or wouldn't integrate it they way they do.

    Same thing. package.json is like Windows' services.msc - everything sounds important, but you're probably not using half of them.

    You're really not much better off than you were with an ejected create-react-app. It's faster to just start anew and add what you want.

    But a scratch project with webpack and react is actually hard:

    Webpack, ts-loader, babel, webpack-dev-server, so on. There's so many projects to synthesize and all their usages every 3 months. You have to drop by each project, see the minimal example, and hope they fit and you can get a basic build

That's all this is.

react-typescript-vanilla-starter's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar tony avatar

Stargazers

 avatar

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.