-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 095f3d1
Showing
7 changed files
with
424 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"semi": true, | ||
"singleQuote": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import * as esbuild from "esbuild"; | ||
import pkg from "./package.json" assert { type: "json" }; | ||
|
||
await Promise.all([ | ||
// bundle for esm | ||
esbuild.build({ | ||
entryPoints: ["src/index.ts"], | ||
bundle: true, | ||
minify: true, | ||
format: "esm", | ||
outfile: pkg.module, | ||
}), | ||
|
||
// bundle for commonjs | ||
esbuild.build({ | ||
entryPoints: ["src/index.ts"], | ||
bundle: true, | ||
minify: true, | ||
format: "cjs", | ||
outfile: pkg.main, | ||
}), | ||
]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "matomo-client", | ||
"version": "1.0.0", | ||
"description": "A thin wrapper around Matomo analytics", | ||
"keywords": [ | ||
"analytics" | ||
], | ||
"license": "MIT", | ||
"author": "Muhammad Bin Jamil", | ||
"files": [ | ||
"dist/matomo-client.cjs.js", | ||
"dist/matomo-client.esm.js", | ||
"dist/index.d.ts" | ||
], | ||
"main": "dist/matomo-client.cjs.js", | ||
"module": "dist/matomo-client.esm.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"build": "npm run build:types && npm run build:js", | ||
"build:js": "node build.mjs", | ||
"build:types": "tsc --emitDeclarationOnly" | ||
}, | ||
"devDependencies": { | ||
"esbuild": "^0.21.3", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5.4.5" | ||
} | ||
} |
Oops, something went wrong.