Installations
npm install laravel-mix-react-typescript-extension
Developer
raicem
Developer Guide
Module System
CommonJS
Min. Node Version
Typescript Support
No
Node Version
10.19.0
NPM Version
6.14.4
Statistics
33 Stars
8 Commits
5 Forks
3 Watching
1 Branches
1 Contributors
Updated on 12 Aug 2024
Bundle Size
1.00 kB
Minified
525.00 B
Minified + Gzipped
Languages
JavaScript (100%)
Total Downloads
Cumulative downloads
Total Downloads
51,351
Last day
-44.2%
29
Compared to previous day
Last week
-3.1%
123
Compared to previous week
Last month
-21%
477
Compared to previous month
Last year
-22.1%
8,002
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Peer Dependencies
1
Laravel Mix React and TypeScript Extension
Laravel Mix already supports React and TypeScript. But combining those two are rather undocumented. I have made my custom extension to easily start React/TypeScript applications.
Please note that this extension compiles everything using the babel-loader
and not the ts-loader
. This is possible due to @babel/preset-typescript
. Please read the following blog post if you want to know more about this: https://iamturns.com/typescript-babel/
By using babel-loader
, webpack configuration becomes much simpler and compilation performance is higher. However during compilation babel-loader
will simply remove everything TypeScript without checking anyting.
To see TypeScript errors you should manually check using the tsc
command. tsc
command becomes available because this extension installs typescript
using npm. You should also have your tsconfig.json
file in the project root. You can use the example.tsconfig.json
file provided in this repository.
Installation
npm install laravel-mix-react-typescript-extension
Usage
1let mix = require("laravel-mix"); 2 3require("laravel-mix-react-typescript-extension"); 4 5mix 6 .reactTypeScript("resources/js/app.ts", "public/js") 7 .sass("resources/sass/app.scss", "public/css");
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 1/7 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
license file not detected
Details
- Warn: project does not have a license file
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 2 are checked with a SAST tool
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
2.7
/10
Last Scanned on 2024-11-18
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More