Skip to content

Commit 2c48030

Browse files
committed
build: add support for EcmaScript, CommonJs and UMD #125
Replace gulp by microbuild for building
1 parent b3b64ff commit 2c48030

File tree

4 files changed

+2625
-1433
lines changed

4 files changed

+2625
-1433
lines changed

.npmignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!dist/**/*
3+
!README.md
4+
!LICENSE

gulpfile.js

-34
This file was deleted.

package.json

+8-7
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,14 @@
22
"name": "typescript-json-serializer",
33
"version": "3.1.0",
44
"description": "Typescript library to serialize classes into json and deserialize json into classes.",
5-
"main": "index.js",
6-
"types": "index.d.ts",
5+
"source": "src/index.ts",
6+
"main": "dist/index.js",
7+
"exports": "./dist/index.modern.js",
8+
"module": "dist/index.module.js",
9+
"unpkg": "dist/index.umd.js",
10+
"types": "dist/index.d.ts",
711
"scripts": {
8-
"build": "gulp build",
12+
"build": "microbundle",
913
"cover": "jest --coverage",
1014
"format": "pretty-quick",
1115
"format:staged": "pretty-quick --staged",
@@ -40,13 +44,10 @@
4044
"@commitlint/config-conventional": "^11.0.0",
4145
"@types/jest": "^26.0.20",
4246
"@types/node": "^14.14.22",
43-
"del": "^6.0.0",
44-
"gulp": "^4.0.2",
45-
"gulp-copy": "^4.0.1",
46-
"gulp-typescript": "^5.0.1",
4747
"husky": "^4.3.8",
4848
"jest": "^26.6.3",
4949
"jest-junit": "^12.0.0",
50+
"microbundle": "^0.13.0",
5051
"prettier": "^2.2.1",
5152
"pretty-quick": "^3.1.0",
5253
"ts-jest": "^26.4.4",

0 commit comments

Comments
 (0)