@amittksharma/react-ts-sourcemaps
To embedd the sourcemaps of a react application and git information in an application
Last updated a year ago by amittksharma .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @amittksharma/react-ts-sourcemaps 
SYNC missed versions from official npm registry.

react-ts-sourcemaps

Introduction

react-ts-sourcemaps package is a multi-purpose package performing the following tasks:

  • Bootstrapping and building an react app.
  • Attaching the source maps to the react app.
  • Attaching some of the meta information from GIT repository to the "window" variable.

Installation

npm i @amittksharma/react-ts-sourcemaps

Usage

"scripts" : {
  "start": "react-ts-sourcemaps-git --actionType start --craVersion cra",
  "build": "react-ts-sourcemaps-git --actionType build --craVersion cra"
}

API

Name Type Required Description Default
actionType string yes Action that needs to be initiated. actionType takes either 'start' or 'build'. Default value is 'start' start
craVersion string optional It is the create react app version name used in the application. craVersion takes either 'cra' or 'cra2'. Default value is 'cra'. (cra: Create React App, cra2: Create React App2) cra

GIT Information

This package gives developer liberty to check some of the meta information about the deployed package from "window" variable of the html page. The meta information that is attached is as follows:

  • Branch Name
  • Commit Hash
  • Node Environment Variable
  • Version

Current Tags

  • 1.0.6                                ...           latest (a year ago)

7 Versions

  • 1.0.6                                ...           a year ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           a year ago
  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 16
Last Day 0
Last Week 1
Last Month 1
Dependencies (6)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |