From 2aeb2a4edacbeb78f44dd430268996271d2fe106 Mon Sep 17 00:00:00 2001 From: shirtiny Date: Mon, 2 Aug 2021 18:04:50 +0800 Subject: [PATCH] v1.3.4 --- README.md | 34 ++++++++++++++++++++++++++-------- package.json | 2 +- 2 files changed, 27 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d1beb41..1466996 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # ts-lib-template -> A starter template for typescript library. +> A starter template for typescript library. ```shell # init project @@ -37,21 +37,39 @@ This is a template for typescript library base on esbuild. This template include - Jest -- Sass/scss & Autoprefixer +- Sass/scss & Autoprefixer - Github action - - - ## Usage + Create your repository by clicking 'Use this template' top of the page. -## Acknowledgment +## Config + +```js +// .sh.js +module.exports = { + // your lib global name + globalName: "tsLibTemplate", + // devServer option + devServer: { + host: "localhost", + port: 2021, + proxy: { + "^/api": { + target: "http://192.168.6.111:9780", + pathRewrite: { "^/api": "" }, + }, + }, + }, +}; +``` -[raulanatol / template-ts-package](https://github.com/raulanatol/template-ts-package) +## Acknowledgment +[raulanatol / template-ts-package](https://github.com/raulanatol/template-ts-package) ## License -The MIT License (MIT) +The MIT License (MIT) diff --git a/package.json b/package.json index 5bf97f8..d5cdc29 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ts-lib-template", - "version": "1.3.3", + "version": "1.3.4", "description": "ts-lib-template desc", "types": "./dist/types/main.d.ts", "main": "./dist/main.es.js",