-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: build react/vue/elements icons (#4)
* feat: build react icons * feat: build icons for vue * feat: build icons for elements * fix: add necessary config to be able to build correct imports with eik plugin * See a preview of all icons using pnpm dev command Align with other warp-ds repos on how we can check the output in the form of a running 'docs page. * update README with new scripts --------- Co-authored-by: BalbinaK <balbuhhha@gmail.com>
- Loading branch information
1 parent
3114d68
commit 362deca
Showing
12 changed files
with
431 additions
and
49 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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
/node_modules | ||
/dist | ||
|
||
.FIGMA_TOKEN | ||
.FIGMA_TOKEN | ||
|
||
vue/ | ||
react/ | ||
elements/ |
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
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,16 @@ | ||
import * as eik from '@eik/esbuild-plugin'; | ||
import esbuild from 'esbuild'; | ||
|
||
await eik.load(); | ||
|
||
await esbuild.build({ | ||
plugins: [eik.plugin()], | ||
entryPoints: ['elements/index.js'], | ||
bundle: true, | ||
outfile: 'dist/elements/icons.js', | ||
format: 'esm', | ||
sourcemap: true, | ||
target: 'es2017', | ||
minify: true, | ||
external: ['lit'], | ||
}); |
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
Oops, something went wrong.