Installations
npm install generator-tsx
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
10.16.3
NPM Version
6.10.3
Score
51.3
Supply Chain
72.8
Quality
66.9
Maintenance
25
Vulnerability
95.9
License
Releases
Contributors
Unable to fetch Contributors
Languages
TypeScript (97.93%)
HTML (1.17%)
CSS (0.81%)
JavaScript (0.09%)
Developer
Download Statistics
Total Downloads
6,834
Last Day
2
Last Week
47
Last Month
57
Last Year
695
GitHub Statistics
30 Stars
213 Commits
14 Forks
23 Watching
19 Branches
232 Contributors
Package Meta Information
Latest Version
2.4.0
Package Id
generator-tsx@2.4.0
Unpacked Size
234.80 kB
Size
72.08 kB
File Count
210
NPM Version
6.10.3
Node Version
10.16.3
Total Downloads
Cumulative downloads
Total Downloads
6,834
Last day
100%
2
Compared to previous day
Last week
1,466.7%
47
Compared to previous week
Last month
1.8%
57
Compared to previous month
Last year
-22.9%
695
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
10
Dev Dependencies
31
TSX Yeoman Generator
Goals
See Design Goals.
Features
- TypeScript
- React
- CSS in JS via Linaria
Configuration
Add the following GitHub secrets to your repo:
CODECOV_TOKEN
NPM_TOKEN
Installation
First, install Yeoman and generator-tsx using npm (we assume you have pre-installed Node.js).
1npm install -g yo generator-tsx
Next, create a new folder for your project:
1mkdir project-x 2cd project-x
Finally, run the tsx generator to create your initial project files:
1yo tsx [<appname>] [<version>] [options]
Project files are generated in the project-x
directory.
Run yo tsx --help
for more information about arguments and options.
Sub-generators
All generators create project files including tests.
- tsx:actions
- tsx:api
- tsx:component
- tsx:helper
- tsx:model
- tsx:reducer
- tsx:theme
- tsx:util
- tsx:actions
- tsx:actions
- tsx:actions
actions
1yo tsx:actions foo
Creates Redux Actions in
src/actions/foo/*
.
This action also modifies src/actions/index.ts
.
api
1yo tsx:api foo
Creates an API client in src/api/foo/*
.
component
1yo tsx:component Foo [--connect]
Creates a React Component
as a simple function in src/components/Foo/*
.
helper
1yo tsx:helper foo
Creates a helper function named foo
and places it in src/helpers/foo.ts
(supports slashes in the name for folder depth).
model
1yo tsx:model Foo
Creates a model, defined as a
TypeScript Interface,
in src/models/Foo.ts
.
reducer
1yo tsx:reducer foo
Creates a Redux Reducer in
src/reducers/foo/*
.
theme
1yo tsx:theme foo
Creates a theme in src/themes/foo
that is modeled after your existing
src/models/Theme.ts
interface.
util
1yo tsx:util foo
Creates a utility function named foo
and places it in src/utils/foo.ts
(supports slashes in the name for folder depth).
Roadmap
For details on our planned features and future direction, please refer to our roadmap.
Getting To Know Yeoman
- Yeoman has a heart of gold.
- Yeoman is a person with feelings and opinions, but is very easy to work with.
- Yeoman can be too opinionated at times but is easily convinced not to be.
- Feel free to learn more about Yeoman.
Contributing
Contributions are welcomed! Read the Contributing Guide for more information.
Licensing
This project is licensed under the Apache V2 License. See LICENSE for more information.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
security policy file detected
Details
- Info: security policy file detected: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found linked content: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found disclosure, vulnerability, and/or timelines in security policy: github.com/adobe/.github/.github/SECURITY.md:1
- Info: Found text in security policy: github.com/adobe/.github/.github/SECURITY.md:1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/26 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/greenkeeper.yml:1
- Warn: no topLevel permission defined: .github/workflows/master.yml:1
- Warn: no topLevel permission defined: .github/workflows/pr.yml:1
- Info: no jobLevel write permissions found
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/greenkeeper.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/greenkeeper.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/greenkeeper.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/greenkeeper.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/master.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/master.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:53: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/master.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/master.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/master.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/pr.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/adobe/generator-tsx/pr.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/greenkeeper.yml:29
- Warn: npmCommand not pinned by hash: .github/workflows/master.yml:29
- Warn: npmCommand not pinned by hash: .github/workflows/master.yml:56
- Warn: npmCommand not pinned by hash: .github/workflows/pr.yml:26
- Info: 0 out of 8 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 4 npmCommand dependencies pinned
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
Project has not signed or included provenance with any releases.
Details
- Warn: release artifact v2.4.0 not signed: https://api.github.com/repos/adobe/generator-tsx/releases/19984025
- Warn: release artifact v2.3.0 not signed: https://api.github.com/repos/adobe/generator-tsx/releases/19957159
- Warn: release artifact v2.2.0 not signed: https://api.github.com/repos/adobe/generator-tsx/releases/19604804
- Warn: release artifact v2.1.0 not signed: https://api.github.com/repos/adobe/generator-tsx/releases/19602136
- Warn: release artifact v2.0.0 not signed: https://api.github.com/repos/adobe/generator-tsx/releases/19480102
- Warn: release artifact v2.4.0 does not have provenance: https://api.github.com/repos/adobe/generator-tsx/releases/19984025
- Warn: release artifact v2.3.0 does not have provenance: https://api.github.com/repos/adobe/generator-tsx/releases/19957159
- Warn: release artifact v2.2.0 does not have provenance: https://api.github.com/repos/adobe/generator-tsx/releases/19604804
- Warn: release artifact v2.1.0 does not have provenance: https://api.github.com/repos/adobe/generator-tsx/releases/19602136
- Warn: release artifact v2.0.0 does not have provenance: https://api.github.com/repos/adobe/generator-tsx/releases/19480102
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 7 are checked with a SAST tool
Reason
79 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-6chw-6frg-f759
- Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw
- Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw
- Warn: Project is vulnerable to: GHSA-fwr7-v2mv-hh25
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c
- Warn: Project is vulnerable to: GHSA-w573-4hg7-7wgq
- Warn: Project is vulnerable to: GHSA-ff7x-qrg7-qggm
- Warn: Project is vulnerable to: GHSA-phwq-j96m-2c2q
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-8r6j-v8pm-fqw3
- Warn: Project is vulnerable to: MAL-2023-462
- Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9
- Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f
- Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p
- Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv
- Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8
- Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65
- Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh
- Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44
- Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988
- Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-pc5p-h8pf-mvwp
- Warn: Project is vulnerable to: GHSA-qqgx-2p2h-9c37
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-896r-f27r-55mw
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-6c8f-qphg-qjgp
- Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw
- Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9
- Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-4xcv-9jjx-gfj3
- Warn: Project is vulnerable to: GHSA-7wpw-2hjm-89gp
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3
- Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m
- Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h
- Warn: Project is vulnerable to: GHSA-w7rc-rwvf-8q5r
- Warn: Project is vulnerable to: GHSA-r683-j2x4-v87g
- Warn: Project is vulnerable to: GHSA-5fw9-fq32-wv5p
- Warn: Project is vulnerable to: GHSA-px4h-xg32-q955
- Warn: Project is vulnerable to: GHSA-93f3-23rq-pjfp
- Warn: Project is vulnerable to: GHSA-jmqm-f2gx-4fjv
- Warn: Project is vulnerable to: GHSA-pw54-mh39-w3hc
- Warn: Project is vulnerable to: GHSA-xgh6-85xh-479p
- Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9
- Warn: Project is vulnerable to: GHSA-9wv6-86v2-598j
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6
- Warn: Project is vulnerable to: GHSA-r2j6-p67h-q639
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx
- Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch
- Warn: Project is vulnerable to: GHSA-4rq4-32rv-6wp6
- Warn: Project is vulnerable to: GHSA-64g7-mvw6-v9qj
- Warn: Project is vulnerable to: GHSA-vx3p-948g-6vhq
- Warn: Project is vulnerable to: GHSA-3jfq-g458-7qm9
- Warn: Project is vulnerable to: GHSA-r628-mhmh-qjhw
- Warn: Project is vulnerable to: GHSA-9r2w-394v-53qc
- Warn: Project is vulnerable to: GHSA-5955-9wpr-37jh
- Warn: Project is vulnerable to: GHSA-qq89-hq3f-393p
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
- Warn: Project is vulnerable to: GHSA-jgrx-mgxx-jf9v
- Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3
- Warn: Project is vulnerable to: GHSA-7p7h-4mm5-852v
- Warn: Project is vulnerable to: GHSA-38fc-wpqx-33j7
- Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7
- Warn: Project is vulnerable to: GHSA-6fc8-4gx4-v693
- Warn: Project is vulnerable to: GHSA-3h5v-q93c-6h6q
- Warn: Project is vulnerable to: GHSA-c4w7-xm78-47vh
- Warn: Project is vulnerable to: GHSA-p9pc-299p-vxgp
Score
2.9
/10
Last Scanned on 2025-01-13
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 MoreOther packages similar to generator-tsx
generator-react-tsx-component
Yeoman generator for React TSX components
generator-wow-react
yeoman generator nextjs project & react tsx components, inspired by https://github.com/TonyDotDev/generator-react-tsx-component
tsx-pack
Dead Simple Static Site Generator with JSX and TypeScript
femtosite
Extremely tiny static site generator based on TSX templates