Skip to content

Commit

Permalink
Merge pull request #44 from wcho21/dev
Browse files Browse the repository at this point in the history
release build output
  • Loading branch information
wcho21 authored Dec 22, 2023
2 parents 185238e + 0203e14 commit 2ed696e
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
dist/
node_modules/
bundle/
1 change: 1 addition & 0 deletions dist/index.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"scripts": {
"build": "tsc",
"bundle": "webpack",
"build": "tsc && webpack && rm -rf tsc-out",
"test": "jest",
"test:watch": "jest --watchAll"
},
"browserslist": [
"> 1%",
"not dead"
],
"devDependencies": {
"@types/jest": "^29.5.10",
"jest": "^29.7.0",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"compilerOptions": {
"target": "es2016",
"target": "es2015",
"module": "commonjs",
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"strict": true,
"skipLibCheck": true,
"outDir": "dist"
"outDir": "tsc-out"
},
"include": [
"src/**/*"
Expand Down
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
const { resolve } = require("path");

module.exports = {
entry: "./dist/index.js",
entry: "./tsc-out/index.js",
output: {
filename: "index.js",
path: resolve("./bundle"),
filename: "index.min.js",
path: resolve("./dist"),
library: {
name: "kal",
type: "window",
},
},
target: ["web", "es2015", "browserslist"],
mode: "production",
};

0 comments on commit 2ed696e

Please sign in to comment.