
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
Create TypeScript projects with no build configuration. This tool is based upon Create React App
Install it globally:
yarn global add tscomp
npm install -g tscomp
First you must choose what kind of project you want to create, tscomp supports
browser: An app that should be run in a browser. tscomp will set up a development server, a production build process and unit tests.
server: An app that should be run in a Node server. tscomp will set up a development server, a watch build process, a production build process and unit tests.
lib: A library that can be consumed in other TypeScript or JavaScript projects. tscomp will set up a watch build process for development, a production build process and unit tests.
Now run
tscomp new <project-type> my-app
cd my-app
for example tscomp new browser my-app.
It will create a directory called my-app inside the dcurrent folder.
Inside that directory, it will generate the initial project structure and
install the neccecary dependecies.
The only configuration file that will be present in your project is the
tsconfig.json file that configures TypeScript. This file is neccecary
for your editor to correctly provide TypeScript servicecs such as type checking
and code completions. After project creation you may modify it as you please.
yarn start or npm startRuns the app in development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will see build errors in the console and the browser.
Async typechecks can be enabled for changes to appear quicker. The downside is that errors will no longer be displayed in the browser.
Add asyncTypechecks: true to the tscomp object in your package.json or set the environment variable
ASYNC_TYPECHECK to true.
yarn test or npm testRuns the test watcher in interactive mode. By default, runs test related to files changed since the last commit.
Read more about testing in the Create React App README
tscomp does of course support test files with .ts and .tsx file endings as well.
yarn build or npm run buildBuilds the app for production to the build folder, or if you have changed your tsconfig.json,
to the outDir specified in it.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
yarn start or npm startRuns the app in development mode.
The server will restart if you make edits. You will see build errors in the console.
yarn test or npm testRuns the test watcher in interactive mode. By default, runs test related to files changed since the last commit.
Read more about testing in the Create React App README
tscomp does of course support test files with .ts and .tsx file endings as well.
yarn watch or npm run watchBuilds the app to the build folder, or if you have changed your tsconfig.json,
to the outDir specified in it. The files will be rebuilt if you make edits.
yarn build or npm run buildBuilds the app for production to the build folder, or if you have changed your tsconfig.json,
to the outDir specified in it.
Your app is ready to be deployed!
yarn test or npm testRuns the test watcher in interactive mode. By default, runs test related to files changed since the last commit.
Read more about testing in the Create React App README
tscomp does of course support test files with .ts and .tsx file endings as well.
yarn watch or npm run watchBuilds the library to the lib folder, or if you have changed your tsconfig.json,
to the outDir specified in it. The files will be rebuilt if you make edits.
yarn build or npm run buildBuilds the library for production to the lib folder, or if you have changed your tsconfig.json,
to the outDir specified in it.
Your library is ready to be published!
If you’re a power user and you aren’t happy with the default configuration, you can “eject” from the tool and use it as a boilerplate generator.
Running npm run eject copies all the configuration files and the transitive dependencies (Webpack, Babel, TypeScript, etc) right into your project so you have full control over them. Commands like npm start and npm run build will still work, but they will point to the copied scripts so you can tweak them. At this point, you’re on your own.
Note: this is a one-way operation. Once you eject, you can’t go back!
You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
tscomp is licensed under MIT terms.
FAQs
Effortless buildtool for TypeScript projects
The npm package tscomp receives a total of 19 weekly downloads. As such, tscomp popularity was classified as not popular.
We found that tscomp demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.