並び順

ブックマーク数

期間指定

  • から
  • まで

241 - 280 件 / 346件

新着順 人気順

Viteの検索結果241 - 280 件 / 346件

  • Vue 3 + TSX (JSX) の環境作成(Vite 使用)

    import { defineConfig } from 'vite' import vue from '@vitejs/plugin-vue' +import vueJsx from '@vitejs/plugin-vue-jsx' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue()] + plugins: [vue(), vueJsx()] })

      Vue 3 + TSX (JSX) の環境作成(Vite 使用)
    • create-react-app から Vite への移行

      概要 担当プロジェクトでは基本モブプログラミングに取り組んでいるのですが、必要技術の研究や個人でやる方が向く作業用の時間を取っており、その時間を使って React の初期構築周りの知識習得も兼ねて create-react-app で作成したプロジェクトを Vite へ移行する作業を行いました。 参考にした記事とは React のバージョンなど異なる点もありましたので参考になる人もいるかと思い行った作業についてまとめ共有したいと思います。 参考 Vite Vite 公式 CRAからViteへ移行して190倍高速なdev server起動を得る - inSmartBank Vite がどういったものかと移行作業が参考リンクも含めて一番まとまっていた 環境 React: 17.0.2 craco: 6.4.3 typescript: 4.5.5 node.js: 16.14.2 Vite への

        create-react-app から Vite への移行
      • State of Vite (ViteConf 2023)

        The State of Vite Hello everyone! Welcome back to another ViteConf. Today I am here to talk about the state of Vite: What’s been happening, how things are going, and what’s going to happen next. Let’s dive right into it. Evan You ViteConf 2023

          State of Vite (ViteConf 2023)
        • Vite

          Configuring Vite ​When running vite from the command line, Vite will automatically try to resolve a config file named vite.config.js inside project root (other JS and TS extensions are also supported). The most basic config file looks like this: Note Vite supports using ES modules syntax in the config file even if the project is not using native Node ESM, e.g. type: "module" in package.json. In th

            Vite
          • Viteを使ってVueやNuxtを動かしてみた

            ハコザキです。 今回は高速なビルドツールとして話題のViteを使ってNuxtを動かしてみたいと思います! Viteとは Vite(ヴィート)はVueJSの開発者であるEvan You氏が開発したノーバンドルなビルドツールです。 ReactやSvelteなどにもサポートしており、 より速く・より無駄のない開発環境を提供することを目的としてます。 モダンブラウザには対応してますが、 IE11などのレガシーなブラウザにも対応させるには別途 @vitejs/plugin-legacyを入れる必要があります。 2021年7月時点で公式サイトが日本語対応されたとのことで、 かなりアツいビルドツールとなっております。 Node.jsのバージョンが12以降であればViteを動かすことができるため、 今回は14.8.0で実行しております。 バージョンの切り替えはnodenvなどを用いてみてください。 Vue

              Viteを使ってVueやNuxtを動かしてみた
            • viteでhttpsなlocalhostを起動する | DevelopersIO

              吉川@広島です。 https://localhostでline-liff-v2-starterを動かしてみた | DevelopersIO 自分はLINE事業部所属なのですが、LIFFアプリ開発において、手元で動作確認するためにローカルサーバをLINE Developersに登録しようとすると http://localhost:{PORT} はinvalidなURLとして弾かれてしまいます。 そのため、httpsなローカル開発サーバが欲しくなります。 これをviteで実現する方法を紹介します。 [Vite] Enabling https on localhost - DEV Community 主にこちらの記事を参考にさせて頂きました。 環境 node 15.11.0 yarn 1.22.10 npm 7.18.1 vite 2.4.4 サンプルプロジェクトを作成 まず検証のためのサンプル

                viteでhttpsなlocalhostを起動する | DevelopersIO
              • Quasar + Vite + TypeScript で始める爆速 Vue 3 開発 - Qiita

                はじめに この記事では、次のような構成で Vue 3 開発を行うためのセットアップ手順について紹介します。 言語: TypeScript ビルドツール: Vite UI フレームワーク: Quasar Quasar とは Vue 3 に対応した Material Design の UI フレームワークです。 「パフォーマンス重視」を謳っていることが特徴のようです。 同じく Vue 用の Material Design UI フレームワークとしては Vuetify が人気ですが、Quasar もそれに負けないくらいの機能を持っておりドキュメントも充実しています (日本語のドキュメントはありません)。 また、Vuetify に比べるとかなり早く Vue 3 に対応できている1点も魅力です。 ちなみに便宜上ここでは UI フレームワークとして紹介しましたが、実際には UI コンポーネントつきの

                  Quasar + Vite + TypeScript で始める爆速 Vue 3 開発 - Qiita
                • Rolldown

                  Work in Progress Rolldown is currently in active development and not usable for production yet. We encourage you to learn about why we are building it and welcome community contributions. If you are interested in getting involved, check out the Contribution Guide and join us on Discord!

                    Rolldown
                  • Vite+React+TypeScriptで、CSSスタイルについて調べて、Emotionに流れ着いた

                    React調べること多すぎ・・・🤯 今回はReactのCSSスタイルついて調べてみました。 まとめ いきなりまとめです。 ReactのCSSスタイルについての結論 これといった正解はない。 将来どうなるかはわからない。 今のメンバのスキルセットで、使いたいものを使えばいいんじゃないだろうか? ということで、React(Vite + TypeScript)のCSSスタイルについて調べて、Emotionに流れ着いた経緯と、Emotionの導入方法についての記事です。 主要なもの 2022年2月24日時点で、ザクっと調べた主要なものです。 マイナーなものを含めるともっとありますが、今回は主要な以下の8つから選択します。 Inline Styles Css Modules Styled JSX Styled Components Emotion Linaria Tailwind CSS Wind

                      Vite+React+TypeScriptで、CSSスタイルについて調べて、Emotionに流れ着いた
                    • GitHub - fastify/fastify-vite: Fastify plugin for Vite integration.

                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                        GitHub - fastify/fastify-vite: Fastify plugin for Vite integration.
                      • Viteで開発環境構築〜Pug・Sass・JS〜

                        npm createはnpm initのエイリアスでpackage.json を作成します。 vite@latestは「最新バージョン(2023年2月7日時点で4.1)のViteをインストールする」という意味です。 コマンドを実行して、質問に答えながらプロジェクトを作成していきます。 続行の意思確認 npm create vite@latestを実行すると、「create-vite@latestをインストールしてください、このまま続けますか?」と訊かれるので、キーボードのyを入力してEnterを押してください↓

                          Viteで開発環境構築〜Pug・Sass・JS〜
                        • ViteとEleventyで静的サイト構築 | EvoLab.

                          先日発表されたThe State of JavaScript 2021では98%の満足度を獲得しエンジニアからの高い注目度がうかがえるViteですが、ビルドツールのため静的なページの生成には別途仕組みが必要になるかと思います。 公式のテンプレートにはVueやReactなどがサポートされていますが、これらは学習コストやプロジェクトの要件にもより気軽に導入できるものではないかもしれません。 そこで今回はページの生成に静的サイトジェネレーターのEleventy(以下、11ty)を利用し、Viteの高速な開発体験の恩恵を受けつつ11tyでページを生成するシンプルな静的サイトの開発環境を作ってみたいと思います。 ※11tyについての記事はこちら (バージョンが記事公開時より更新されていますので利用の際は公式ドキュメントをご確認ください) 環境Node.js: v16.12.0 ※Viteの利用には1

                            ViteとEleventyで静的サイト構築 | EvoLab.
                          • Farm Documentation | Farm

                            Super FastWritten in Rust, start a React / Vue project in milliseconds and perform an HMR update within 10ms for most situations. Rich FeaturesFarm support compiling Html, Css, Css Modules, Js/Jsx/Ts/Tsx, Json, Static Assets out of box, support sass, less, postcss, vue, react, solid by official plugins, support lazy compiling, partial bundling and more

                              Farm Documentation | Farm
                            • Release v0.29.0 · vitest-dev/vitest

                              This release makes some significant changes to how tests are running. If you were using --no-threads before, you might consider enabling --single-thread instead (because your tests are now running in child_process instead of a worker thread) or try our new performance optimization feature (discussed later). If you were relying on API that was not available inside a worker (like process.chdir(), yo

                                Release v0.29.0 · vitest-dev/vitest
                              • vite_railsをRailsに導入してReact/Vite環境を構築

                                はじめに Rails7になってからjsbundling-rails が使われるようになり、esbuild/rollup/wepackなどJavaScriptをバンドルしてRailsアプリで配信する方法の選択肢は増えました。 これらを使うのも良いですが、より強力なフロントエンドツールであるViteを使うことで効率的なフロントエンド開発を行うことができます。 さらにvite_railsというgemを導入することで以前のwebpackerのようなTag HelperによるJSファイルの読み込みや、Rakeタスクassets:precompile でのViteアプリのビルドを行ってくれるようになります。 今回はvite_railsを使って、Vite + React(TypeScript)環境の構築を目指します。 Railsアプリを作成 まずは rails new でRailsアプリを作成します。

                                  vite_railsをRailsに導入してReact/Vite環境を構築
                                • State of Vite (ViteConf 2023)

                                  The State of Vite Hello everyone! Welcome back to another ViteConf. Today I am here to talk about the state of Vite: What’s been happening, how things are going, and what’s going to happen next. Let’s dive right into it. Evan You ViteConf 2023

                                    State of Vite (ViteConf 2023)
                                  • Vite + React環境をDockerで構築する

                                    はじめに この記事はvite + react環境を構築するための手順を残したものです 完成版のDockerfileやdocker-compose.ymlに至るまでが地味にめんどくさいので一から作る際の参考になれば幸いです DockerおよびDockerComposeが動く環境があることが前提です Dockefileの作成〜docker-compose.ymlの作成 任意のディレクトリにDockerfile及びdocker-comopse.ymlを作成します。

                                      Vite + React環境をDockerで構築する
                                    • create-vue で学ぶ tsconfig.json

                                      概要 本記事は、 Vue.js の公式ツールである create-vue によって生成された tsconfig.json を元に、 Vue 3 + TypeScript における、 tsconfig のベストプラクティスを理解しようという内容です。 注意事項 筆者自身はまだまだ Vue 及び TypeScript の理解が不十分であり、誤った解釈を含んでいる可能性があるのでご注意ください。 なにか間違いなどにお気付きの場合は、コメントまたは GitHub での編集提案を頂けると幸いです。 create-vue について create-vue は、Vite ベースの Vue プロジェクトを CLI から構築できるツールです。 上記のようなコマンドから、対話形式の質問に解答することで、ビルド設定から周辺ライブラリの追加、テストやリンター、フォーマッターのセットアップまで行ってくれます。 本記事

                                        create-vue で学ぶ tsconfig.json
                                      • StorybookがViteのBuilderで動かない問題の回避策

                                        背景 最近コンポーネント駆動開発に興味があり、お手軽にFigmaやAdobeXDとの連携でデザインとコードの分離ができそうなStorybookに目を付けました。 早速、Storybookを使ってみようと公式ドキュメントを読み進めていましたが、どうしてもコンパイルが遅いのがストレスでした。 そこでBuilderにVite(esbuild)を指定できることを知り、@storybook/builder-viteのアドオンを試したのですが、そのまま素直に動かず、つまずく箇所が2つあったので回避策をメモします。 動作環境 next.js: 12.1.6 react: 18.1.0 storybook: 6.5.6 @storybook/addon-interactions: 6.5.6 @storybook/builder-vite: 0.1.36 問題1: mdx-js/xxxxのパッケージのイン

                                          StorybookがViteのBuilderで動かない問題の回避策
                                        • vite x React x TypeScript でgithub pages にデプロイする - y-ohgi's blog

                                          TL;DR 話題のvite を使ってReact x TypeScript のSPA を作るサンプル GitHub Pages へGitHub Actions でCD も行う vite、とても良い 概要 vite を最近良く見るので、使ってみたなど。 構築 version node 16.6.1 npm 7.20.3 vite 2.4.4 Repository https://github.com/y-ohgi/y-ohgi.github.io vite でReact の環境を構築する vite でreact のTypeScript テンプレートを指定して構築する $ npm init vite@latest aboutme -- --template react-ts $ tree aboutme/ aboutme/ |-- index.html |-- package.json |--

                                            vite x React x TypeScript でgithub pages にデプロイする - y-ohgi's blog
                                          • Release v0.31.0 · vitest-dev/vitest

                                            You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                              Release v0.31.0 · vitest-dev/vitest
                                            • Import Aliases in Vite - Vue School Articles

                                              Perhaps, you're moving from Vue CLI to Vite as your build tool of choice and in the process you realize that the @ alias no longer works 😱. This was exactly my experience, as well as my reaction. How in the world was I going to avoid such nasty looking imports as this ../../../someComponent.vue?

                                                Import Aliases in Vite - Vue School Articles
                                              • ESLint and Prettier with Vite and Vue.js 3 - Vue School Articles

                                                In the previous article of the "How to Structure a Large Scale Vue Application" series, we took a look at some standards that you can employ in your Vue.js application to keep your codebase predictable, easy to navigate, and understandable. Another step you can take to improve the developer experience when building a large scale application, especially with a team, is to setup some automated proce

                                                  ESLint and Prettier with Vite and Vue.js 3 - Vue School Articles
                                                • GitHub - cyco130/vavite: Develop server-side applications with Vite

                                                  All examples have "type": "module" in their package.json. For Vite v2, remove it to use CommonJS (CJS). If you want to use CommonJS with Vite v3+, add legacy.buildSsrCjsExternalHeuristics: true to your Vite config. simple-standalone: Simple standalone example (Stackblitz) express: Integrating with Express (Stackblitz) koa: Integrating with Koa (Stackblitz) fastify: Integrating with Fastify (Stackb

                                                    GitHub - cyco130/vavite: Develop server-side applications with Vite
                                                  • GitHub - nuxt/vite: ⚡ Vite Experience with Nuxt 2

                                                    You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                      GitHub - nuxt/vite: ⚡ Vite Experience with Nuxt 2
                                                    • TypeScriptとVitestでユニットテストしてみた! | DevelopersIO

                                                      こんにちは稲葉です。最近ソフトウェアテストの学習をしていた事もあり、ソフトウェア開発において、品質保証とバグの早期発見は非常に重要だと感じました。そのためには、効果的なユニットテストが欠かせません。 なので、今回はTypeScriptとVitestを使用した、ユニットテストの実施方法を解説します。 Vitestとは Viteネイティブの超高速ユニットテストフレームワーク。 参考資料:Vitest公式ドキュメント また、Jest互換でTypeScriptやJSXに対するサポートもあります。 ちなみにVite(ヴィート)は、モダンなWebプロジェクトのために、より速く無駄のない開発体験を提供することを目的としたビルドツールです。 詳細につきましては、公式ドキュメントを参照ください。 Vite公式ドキュメント 実行環境の準備 はじめにTypeScriptとViteをインストールします。 yarn

                                                        TypeScriptとVitestでユニットテストしてみた! | DevelopersIO
                                                      • electron-vite | Next Generation Electron Build Tooling

                                                        electron-viteNext Generation Electron Build Tooling Based on Vite. It's fast, simple and powerful!

                                                        • GitHub - egoist/vite-plugin-compile-time: Some compile-time magic for your Vite project

                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                            GitHub - egoist/vite-plugin-compile-time: Some compile-time magic for your Vite project
                                                          • Full-stack DApp tutorial with Vite + React, Tailwind CSS, and Solidity - LogRocket Blog

                                                            MacBobby Chibuzor Go, Solidity, and Haskell developer interested in the cloud native world and blockchain technology. A fanatic for technical writing and open source contribution. In this tutorial, we’ll demonstrate how to build a full-stack DApp, test it on the Ropsten testnet, and deploy it with the Alchemy Web3 development platform. We’ll use Vite, React, and Tailwind CSS to build the DApp fron

                                                              Full-stack DApp tutorial with Vite + React, Tailwind CSS, and Solidity - LogRocket Blog
                                                            • ChatGPT (GPT4) と TDD ライクなペアプロするとどうなるか試した

                                                              はじめに ChatGPT などにプログラムコードを生成させることを考えたときに、現時点で現実的な使い方は主に以下の二通りであると考えた。 毎回コード全体を出力させて前のものを捨てる 初期バージョンのコードを出力させ、その後の変更などを人間で行う いずれの場合も生成されたコードが期待どおりであるかを検証することが重要となるだろうと考えた。 したがって、人間がテストコードを記述し、それに適合するコードを出力させ、テストスイートに合格するかどうかで適切なコードが出力されたかを判断する。というシナリオが有用そうだと考えた。 場合によってはそのテストコード自体も機械に出力させ、人間がレビューするというシナリオもあるだろう。 今回は TODO MVC を対象に、段階的にテストコードを与えたときにどのようなやり取りになるかを確認した。 また、最初からテストスイート全体を渡してどのようになるかも確認したが

                                                                ChatGPT (GPT4) と TDD ライクなペアプロするとどうなるか試した
                                                              • Improved Cloudflare Workers testing via Vitest and workerd

                                                                Improved Cloudflare Workers testing via Vitest and workerd03/15/2024 This post is also available in Español. Today, we’re excited to announce a new Workers Vitest integration - allowing you to write unit and integration tests via the popular testing framework, Vitest, that execute directly in our runtime, workerd! This integration provides you with the ability to test anything related to your Work

                                                                  Improved Cloudflare Workers testing via Vitest and workerd
                                                                • Loading...

                                                                  • Vite + Vue3にESLintとPrettierを導入する

                                                                    前提条件 PCはMacを使います。 既にパッケージ管理ツールのYarnが入っていることを前提に進めます。 プロジェクトの作成と起動 今回はプロジェクトの作成にViteを使います。Vite(ヴィート)とはビルドツールのことで、Vue CLIやWebpackよりも開発サーバーの起動が早いことが特徴です。 次のコマンドでVue3とTypeScriptのプロジェクトを作成します。 ❯ yarn create vite ✔ Project name: … vue-sample ✔ Select a framework: › vue ✔ Select a variant: › vue-ts

                                                                      Vite + Vue3にESLintとPrettierを導入する
                                                                    • GitHub - unplugin/unplugin-auto-import: Auto import APIs on-demand for Vite, Webpack and Rollup

                                                                      You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                        GitHub - unplugin/unplugin-auto-import: Auto import APIs on-demand for Vite, Webpack and Rollup
                                                                      • Announcing Vite 5.1

                                                                        Vite 5.1 is out! ​ February 8, 2024 Vite 5 was released last November, and it represented another big leap for Vite and the ecosystem. A few weeks ago we celebrated 10 million weekly npm downloads and 900 contributors to the Vite repo. Today, we're excited to announce the release of Vite 5.1. Quick links: Docs, Changelog Docs in other languages: 简体中文, 日本語, Español, Português, 한국어, Deutsch Try Vite

                                                                          Announcing Vite 5.1
                                                                        • GitHub - originjs/webpack-to-vite: Convert a webpack/vue-cli project to vite project. 将 webpack/vue-cli 项目转换为 vite 项目。

                                                                          You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                            GitHub - originjs/webpack-to-vite: Convert a webpack/vue-cli project to vite project. 将 webpack/vue-cli 项目转换为 vite 项目。
                                                                          • viteでパッケージをライブラリに公開する(TypeScript対応)

                                                                            vite のLibrary Modeを使うことで簡単にパッケージが作ることができます。 本記事では加えて、TypeScript への対応方法も説明していきます。 vite の設定 まずは、vite.config.js から見ていきましょう。 const path = require("path"); const { defineConfig } = require("vite"); module.exports = defineConfig({ build: { lib: { entry: path.resolve(__dirname, "lib/main.js"), name: "MyLib", fileName: (format) => `my-lib.${format}.js`, }, }, }); build.lib がライブラリモードのオプションになります。説明すると、 entr

                                                                              viteでパッケージをライブラリに公開する(TypeScript対応)
                                                                            • Vite入門 (従来のビルドツールとの違いとViteの挙動) - Qiita

                                                                              概要 最近のフロントエンド開発といえば、速度速度速度。いやまさにその通り。開発環境を爆速にすることこそ正義くらいな感覚を持っています(笑) 今回は、快適なフロントエンド開発環境を手に入れるためのビルドツールViteの入門ということで、その挙動と従来のビルドツールと何が違うのかについて解説していきたいと思います。 Viteとはなんなのか Viteを一言で表すなら、従来のビルドツールに比べて、高速で動作するビルドツールと言えます。 従来の有名なビルドツールというのは、webpack、Rollup、Parcelなんかが当たります。 これらのビルドツールを使用し、開発サーバを立て開発をする。よくあるパターンだと思うのですが、こんなことを感じた方も多いのではないでしょうか。 開発サーバの起動がおせぇ!!! 更新にいつまでかかってんだオラァ => そこでViteの出番というわけですよ。 Viteは、2

                                                                                Vite入門 (従来のビルドツールとの違いとViteの挙動) - Qiita
                                                                              • Vite

                                                                                例えば、 imgUrl は、開発中は /img.png となり、本番用ビルドでは /assets/img.2d8efhg.png となります。 振る舞いは webpack の file-loader に似ています。異なるのは、絶対的なパブリックパス(開発中のプロジェクトのルートに基づく)または、相対パスを使用することができるという点です。 CSS 内の url() の参照も同様に扱われます。 Vue プラグインを使用している場合、 Vue の SFC テンプレート内の asset references も自動的にインポートに変換されます。 一般的な画像、メディア、フォントなどの拡張子は自動的にアセットとして検出されます。また、assetsInclude オプション で内部リストを拡張することができます。 参照されたアセットは build assets graph の一部として含まれ、ハッシ

                                                                                  Vite
                                                                                • GitHub - antfu-collective/vitesse-lite: ⛺️ Lightweight version of Vitesse

                                                                                  You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert

                                                                                    GitHub - antfu-collective/vitesse-lite: ⛺️ Lightweight version of Vitesse