Git Product home page Git Product logo

js-typescript-react-jspm's Introduction

typescript-react-jspm

Boilerplate for personal use, someone might find it useful with Typescript + React + JSPM (plus some gulp helpers as work arounds for buggy conversion between Typescript > Javascript > JSPM, mostly due to the css plugin and module: system from Typescript)

What

  • Typescript 2.6+
  • Boostrap 4
  • React 16+ + Router
  • Redux + Actions + Persist + Thunk
  • Jest
  • Lodash
  • Bluebird
  • JSPM 0.17+
  • Open Sans
  • Other minor helper modules (see jspm.dependencies in package.json)
  • Gulp for the release / fix task

How

  • git clone https://github.com/pocesar/js-typescript-react-jspm.git yourproject
  • cd yourproject
  • Edit package.json and put your project name on it, plus your extra typescript @types devDependencies
  • npm install
  • Hack around, you should edit your _index.html, not your index.html then:
    • npm run vendor:build to build your vendor separated from your main project (should be done once usually) in dist/vendor.js
    • npm run ts:build one-time SystemJS to dist/app.js
    • npm run ts:dev one-time modular SystemJS to lib
    • npm run ts:watch for TS watching during dev to lib
    • npm run build will make a release out of your sources (actually execute the more "advanced" Gulp task that calls npm run build:release)
    • npm run test:build will build your TS test sources
    • npm test jest test it
    • npm run serve simple serve your index.html, navigate to http://127.0.0.1:5000. To use your own port, use npm run serve -- --port 3000
    • npm run sass:build for SASS build (one time)
    • npm run sass:watch for SASS watching
  • ...
  • Profit!

Caveats

Every module you install using JSPM you need to install using NPM and vice-versa (for tests to work)

LICENSE

MIT

js-typescript-react-jspm's People

Contributors

dependabot[bot] avatar pocesar avatar

Stargazers

 avatar

Watchers

 avatar  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.