Skip to content

Commit

Permalink
chore: bundler를 esbuild로 변경 (#19)
Browse files Browse the repository at this point in the history
  • Loading branch information
eungyeole authored Nov 3, 2021
1 parent e016bed commit 64869ea
Show file tree
Hide file tree
Showing 31 changed files with 506 additions and 31 deletions.
209 changes: 209 additions & 0 deletions .pnp.cjs

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

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions packages/design-token/esbuild.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const esbuild = require('esbuild');
const { nodeExternalsPlugin } = require('esbuild-node-externals');

esbuild
.build({
entryPoints: ['./src/index.ts'],
outfile: 'dist/index.js',
bundle: true,
minify: true,
platform: 'browser',
format: 'cjs',
sourcemap: true,
target: 'es6',
plugins: [nodeExternalsPlugin()],
})
.catch(() => process.exit(1));
14 changes: 9 additions & 5 deletions packages/design-token/package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,27 @@
{
"name": "@semicolondsm/design-token",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./src/index.ts",
"version": "1.0.1",
"devDependencies": {
"esbuild": "^0.13.12",
"esbuild-node-externals": "^1.3.0",
"typescript": "^4.4.2"
},
"author": "eungyeole <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public"
"access": "public",
"main": "./dist/index.js",
"typing": "./dist/index.d.ts"
},
"repository": "[email protected]:semicolondsm/SemicolonDesign_Frontend.git",
"files": [
"dist"
],
"scripts": {
"build": "npm run build:clean && npm run build:dist",
"build": "npm run build:clean && npm run build:dist & npm run build:declaration",
"build:clean": "rm -rf ./dist",
"build:dist": "tsc"
"build:dist": "node esbuild.config.js",
"build:declaration": "tsc"
}
}
2 changes: 2 additions & 0 deletions packages/design-token/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
"rootDir": "src",
"outDir": "dist",
"jsx": "preserve",
"emitDeclarationOnly": true,
"declaration": true,
},
"include": [
"src"
Expand Down
16 changes: 16 additions & 0 deletions packages/react-emotion-theme/esbuild.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const esbuild = require('esbuild');
const { nodeExternalsPlugin } = require('esbuild-node-externals');

esbuild
.build({
entryPoints: ['./src/index.ts'],
outfile: 'dist/index.js',
bundle: true,
minify: true,
platform: 'browser',
format: 'cjs',
sourcemap: true,
target: 'es6',
plugins: [nodeExternalsPlugin()],
})
.catch(() => process.exit(1));
14 changes: 9 additions & 5 deletions packages/react-emotion-theme/package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,20 @@
{
"name": "@semicolondsm/react-emotion-theme",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"main": "./src/index.ts",
"version": "1.0.2",
"author": "eungyeole <[email protected]>",
"license": "MIT",
"publishConfig": {
"access": "public"
"access": "public",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts"
},
"repository": "[email protected]:semicolondsm/SemicolonDesign_Frontend.git",
"devDependencies": {
"@emotion/react": "^11.4.0",
"@types/react": "^17.0.13",
"esbuild": "^0.13.12",
"esbuild-node-externals": "^1.3.0",
"react": "^17.0.2",
"typescript": "^4.4.2"
},
Expand All @@ -27,8 +30,9 @@
"dist"
],
"scripts": {
"build": "npm run build:clean && npm run build:dist",
"build": "npm run build:clean && npm run build:dist & npm run build:declaration",
"build:clean": "rm -rf ./dist",
"build:dist": "tsc"
"build:dist": "node esbuild.config.js",
"build:declaration": "tsc"
}
}
4 changes: 3 additions & 1 deletion packages/react-emotion-theme/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"jsx": "react"
"jsx": "preserve",
"emitDeclarationOnly": true,
"declaration": true,
},
"include": [
"src"
Expand Down
16 changes: 16 additions & 0 deletions packages/react-theming/esbuild.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
const esbuild = require('esbuild');
const { nodeExternalsPlugin } = require('esbuild-node-externals');

esbuild
.build({
entryPoints: ['./src/index.ts'],
outfile: 'dist/index.js',
bundle: true,
minify: true,
platform: 'browser',
format: 'cjs',
sourcemap: true,
target: 'es6',
plugins: [nodeExternalsPlugin()],
})
.catch(() => process.exit(1));
Loading

0 comments on commit 64869ea

Please sign in to comment.