MIT License

项目介绍

nobrainr/typescript-webpack-starter 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 373 个 Star、41 次 Fork。

仓库全名
nobrainr/typescript-webpack-starter
开源许可证
MIT License
Star 数
373
Fork 数
41
未关闭 Issue
7

README 摘要

Quick Start You can execute the create-ts-lib CLI using npx or by installing it globally with npm i -g create-ts-lib. Build and Serve it Browse http://localhost:3000/ to see your bootstrapped module. A bundle is created under /dist folder. Create a minified bundle with npm run build. Features You don’t need to install or configure tools like Webpack, Typescript, Karma or Jasmine. They are preconfigured so that you…

完整内容见 GitHub 原始 README 或本页 。

常见问题

typescript-webpack-starter 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 373 个 Star。

typescript-webpack-starter 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 typescript-webpack-starter 的源码?

可以直接克隆仓库:git clone https://github.com/nobrainr/typescript-webpack-starter.git,默认分支为 master;安装与运行步骤见仓库 README。

typescript-webpack-starter 最近还在维护吗?

仓库最近一次更新为 2023年1月4日,当前有 7 个未关闭 Issue;Star 数为 373,可作为社区活跃度的参考。

关于

⚡ create-ts-lib: A Starter Kit and a CLI to create your TypeScript / ES6 module bundled by Webpack without thinking about build or unit tests configurations. 🏠

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
462
价值分
236
活跃状态
活跃

语言占比

HTML
JavaScript
Shell
TypeScript

Release

README

create-ts-lib Backers on Open Collective Sponsors on Open Collective CircleCI Npm Package

Quick Start

You can execute the create-ts-lib CLI using npx or by installing it globally with npm i -g create-ts-lib.

# Use NPX or npm install -g create-ts-lib to install it as a global package
npx create-ts-lib@latest my-typescript-lib
cd my-typescript-lib && npm start

Build and Serve it

  • Browse http://localhost:3000/ to see your bootstrapped module.
  • A bundle is created under /dist folder.
  • Create a minified bundle with npm run build.

Features

You don’t need to install or configure tools like Webpack, Typescript, Karma or Jasmine.
They are preconfigured so that you can focus on the code, but as a starter kit you still can modify all the configuration files.

Create a Typescript project

# Use NPX or npm install -g create-ts-lib to install it as a global package
npx create-ts-lib@latest my-typescript-lib
cd my-typescript-lib && npm start

Calling create-ts-lib with my-typescript-lib as an argument creates a directory my-typescript-lib inside the current directory.
Inside that directory, the initial file structure of the project is generated with all the devDependencies installed.

my-typescript-lib
├── node_modules
├── src
│   └── index.html
│   └── index.ts
│   └── MyLibrary.ts
│   └── MyLibrary.spec.ts
├── tests
│    └── unit
│        └── spec-bundle.js
├── README.md
├── package.json
├── .gitignore
├── karma.conf.js
├── tsconfig.json
├── tslint.json
└── webpack.config.js

No configuration or complicated folder structures, just the files you need to start your app / package / module.

npm start or npm run server:prod

Runs the app in development / production mode using Webpack dev server. Open http://localhost:3000 🎉 to view it in the browser.

npm test

Runs the unit tests using Karma as test runner and Jasmine as testing framework.

npm run build or npm run build:prod

Creates a bundle into the dist folder:

dist
├── MyLibrary.d.ts # - Example of a 'd.ts' declaration file
├── app.bundle.js # - Main bundle of the application. name from webpack.config
├── app.bundle.js.map # - Sourcemap
├── index.d.ts
└── index.html # - html page referencing app.bundle.js

Development

We’d love to have your helping hand on create-ts-lib! See CONTRIBUTING.md for more information on what we’re looking for and how to get started.

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

评论

暂无评论