Skip to content

Commit

Permalink
feat: switch rollup to jiek
Browse files Browse the repository at this point in the history
  • Loading branch information
nonzzz committed Jan 17, 2025
1 parent d979e48 commit ed7a0af
Show file tree
Hide file tree
Showing 11 changed files with 2,449 additions and 219 deletions.
12 changes: 8 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
currentDir = $(CURDIR)
JK = ./node_modules/.bin/jiek

JK_FLAGS += build
JK_FLAGS += --noMin

install:
@echo "Setup pnpm package manager..."
Expand All @@ -11,26 +15,26 @@ build-babel-plugin:
@echo "Building babel-plugin package..."
$(eval currentDir = $(CURDIR)/packages/babel-plugin)
-rm -rf $(currentDir)/dist
pnpm -C $(currentDir) run build
$(JK) $(JK_FLAGS) --filter babel-plugin

build-core: build-shared
@echo "Building core package..."
$(eval currentDir = $(CURDIR)/packages/core)
-rm -rf $(currentDir)/dist
pnpm -C $(currentDir) run build
$(JK) $(JK_FLAGS) --filter core


build-vite: build-babel-plugin
@echo "Building vite package..."
$(eval currentDir = $(CURDIR)/packages/vite)
-rm -rf $(currentDir)/dist
pnpm -C $(currentDir) run build
$(JK) $(JK_FLAGS) --external vite --filter vite

build-shared:
@echo "Building shared package..."
$(eval currentDir = $(CURDIR)/packages/shared)
-rm -rf $(currentDir)/dist
pnpm -C $(currentDir) run build
$(JK) $(JK_FLAGS) --filter shared

publish-all: build-all
@echo "Publishing packages..."
Expand Down
13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,24 @@
"license": "MIT",
"packageManager": "[email protected]",
"devDependencies": {
"@rollup/plugin-esm-shim": "^0.1.7",
"@eslint-sukka/react": "^6.12.0",
"@pnpm/filter-workspace-packages": "latest",
"@stylex-extend/babel-plugin": "workspace:*",
"@stylex-extend/core": "file:./packages/core",
"@stylex-extend/shared": "workspace:*",
"@rollup/plugin-node-resolve": "^15.3.0",
"@stylex-extend/vite": "workspace:*",
"@stylexjs/babel-plugin": "0.9.3",
"@stylexjs/stylex": "0.9.3",
"@swc/core": "^1.5.7",
"@types/node": "^20.11.30",
"dprint": "^0.45.1",
"eslint": "^9.16.0",
"eslint-config-kagura": "^3.0.1",
"rollup": "^4.18.0",
"rollup-plugin-dts": "^6.1.1",
"rollup-plugin-swc3": "^0.11.2",
"jiek": "^2.3.3",
"rollup-plugin-esbuild": "^6.1.1",
"typescript": "^5.4.3",
"vite": "^5.2.6",
"vitepress-plugin-group-icons": "^1.1.0",
"vitest": "^1.4.0",
"@eslint-sukka/react": "^6.12.0"
"vitest": "^1.4.0"
},
"pnpm": {
"overrides": {
Expand Down
9 changes: 2 additions & 7 deletions packages/babel-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,8 @@
"license": "MIT",
"repository": "https://github.com/nonzzz/stylex-extend.git",
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json",
"./*": "./*"
".": "./src/index.ts",
"./package.json": "./package.json"
},
"devDependencies": {
"@types/babel__core": "^7.20.5",
Expand Down
37 changes: 0 additions & 37 deletions packages/babel-plugin/rollup.config.ts

This file was deleted.

4 changes: 4 additions & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
"scripts": {
"build": "rollup --config rollup.config.ts --configPlugin swc3"
},
"exports": {
".": "./src/index.ts",
"./package.json": "./package.json"
},
"dependencies": {
"@stylex-extend/shared": "workspace:*"
}
Expand Down
33 changes: 0 additions & 33 deletions packages/core/rollup.config.ts

This file was deleted.

9 changes: 2 additions & 7 deletions packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,8 @@
"README.md"
],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
"./package.json": "./package.json",
"./*": "./*"
".": "./src/index.ts",
"./package.json": "./package.json"
},
"scripts": {
"dev": "rollup --config rollup.config.ts --configPlugin swc3 --watch",
Expand Down
35 changes: 0 additions & 35 deletions packages/shared/rollup.config.ts

This file was deleted.

8 changes: 2 additions & 6 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
"README.md"
],
"exports": {
".": {
"import": "./dist/index.mjs",
"require": "./dist/index.js",
"types": "./dist/index.d.ts"
},
".": "./src/index.ts",
"./package.json": "./package.json",
"./*": "./*"
"./client": "./client.d.ts"
},
"scripts": {
"dev": "rollup --config rollup.config.ts --configPlugin swc3 --watch",
Expand Down
36 changes: 0 additions & 36 deletions packages/vite/rollup.config.ts

This file was deleted.

Loading

0 comments on commit ed7a0af

Please sign in to comment.