Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

StratusCube/ReactTS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactTS Template Setup

Gitlab build status VSTS VSTS Build Badge

Install Node and NPM Using Chocolatey

Important: You must have chocolatey before continuing.

Run the following command to install NPM using chocolatey

cinst -yf nodejs npm

Install NPM Using the windows installer

If you wish to install NPM another way please see npmJS

Now that NPM is installed you can install webpack and (optionally) TypeScript.

To do so type the following into your command window.

npm install -g webpack

If you choose to install TypeScript globally use

npm install -g typescript

TypeScript is included in this template under packages.json

You still may need to link TypeScript to the project. If that is the case cd to the directory containing the solution file and run npm link typescript


Now that NPM is installed with webpack and (optionally) TypeScript We can move on.

Recommended Extensions for ReactTS Template

It is recommended that you have the following extensions installed for Visual Studio:

Open the solution file ReactTS.sln.

Setting Up Pre-Build Tasks

  1. Restore packages
    1. Right click Dependencies in the solution explorer
    2. Click restore packages 2
  2. Open the Task Runner Explorer
    • Via Menus
      1. Open the view menu
      2. Then open other windows
      3. Click Task Runner Explorer
    • Via Keyboard: ctrl + alt + bkspce

Now that you have the Task Runner Explorer open find bundleconfig.json, ensure that both JavaScript and StyleSheets have a binding of Before Build

Webpack must also run during pre-build.

Locate webpack.config.js in the Task Runner Explorer, expand it, then expand development, then right click Run - Development and bind it to Before Build

Footnotes

  1. Required extensions and updates. 2 3

  2. Dependencies may still show as not installed.

About

React TypeScript template for ASPNET 5.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages