並び順

ブックマーク数

期間指定

  • から
  • まで

521 - 560 件 / 728件

新着順 人気順

Npmの検索結果521 - 560 件 / 728件

  • npm moduleを作成してローカル環境とgithubでprivateに使う

    同じコードを複数のアプリでそれぞれ持つと、修正をアプリ毎に行わなければならず面倒である。そこで各アプリで共通して使えるコードをnpmモジュールとして切り出し、一元管理を行いたい。本ページでは npmモジュールの作成方法 npmモジュールをローカルから取り込む方法 npmモジュールをgithub private repositoryにpushして、取り込む方法 を試してみる。 npmモジュールを作成 sayHello関数のみを持つmoduleAを取り込み、その関数を叩くだけのappAを作成する。コンソールろぐに"Hello World"が出力されたら終わり。 まず最初に大元のアプリappAを作成する。 moduleAを作成 同様の方法でmoduleAも作成。package nameはmoduleaとしておく。ちなみに最後のaは大文字にしたかったが、package名は小文字にしろと怒られてしま

    • GitHub - cutenode/mingine: A module to get the minimum usable engine(s)

      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 - cutenode/mingine: A module to get the minimum usable engine(s)
      • npm Blog Archive: npm v7 Series - Arborist Deep Dive

        The npm blog has been discontinued. Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog. << Introduction >> Why Keep package-lock.json? @npmcli/arborist is the dependency tree manager for npm, new in npm v7. It provides facilities for doing nearly everything that npm does with package trees, and fully replaces large parts of the npm CLI codebase. Way back in the

          npm Blog Archive: npm v7 Series - Arborist Deep Dive
        • npm Blog Archive: Release v7.0.0

          The npm blog has been discontinued. Updates from the npm team are now published on the GitHub Blog and the GitHub Changelog. 🎉 Happy release Tuesday! Today marks a major milestone for the npm CLI team - we’ve officially cut npm@7.0.0. If you’ve been following along this past year, or more, you’ll now that we’ve been working hard to bring you this release. Our focus & determination excelerated the

            npm Blog Archive: Release v7.0.0
          • Packages: Fine-grained permissions and organization-level publishing are now available for the GitHub Packages npm registry

            Packages: Fine-grained permissions and organization-level publishing are now available for the GitHub Packages npm registry packages August 31, 2022 The GitHub Packages npm registry now runs on a new architecture, unlocking great new capabilities: Publishing packages at organization level with GitHub Packages Previously, npm packages published to GitHub packages were closely coupled to their repos

              Packages: Fine-grained permissions and organization-level publishing are now available for the GitHub Packages npm registry
            • GitHub - voidcosmos/npkill: List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹

              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 - voidcosmos/npkill: List any node_modules 📦 dir in your system and how heavy they are. You can then select which ones you want to erase to free up space 🧹
              • [RRFC] Change the default save-prefix from ^ to none · Issue #509 · npm/rfcs

                (Ported from npm/cli#4227) TLDR This PR changes the default behaviour of NPM to not save package versions with the ^ prefix. Instead, packages would be saved with no prefix. As a TL;DR, the implications of this is that all dependencies will be pinned to the version you installed by default. Changing This Yourself If you're reading this PR and want to apply it to your own environments, invoke npm c

                  [RRFC] Change the default save-prefix from ^ to none · Issue #509 · npm/rfcs
                • Ubuntu 20.04にNode.jsをインストールする方法 | DigitalOcean

                  はじめに Node.jsは、サーバー側プログラミング用JavaScriptランタイムです。ブラウザベースでウェブ開発を行うことで知名度の高いJavaScriptを使用して、スケーラブルなバックエンド機能の開発を実現します。 このガイドでは、Ubuntu 20.04サーバーにNode.jsをインストールする3つの方法を示します。 Ubuntuのデフォルトのソフトウェアリポジトリからaptを使用して、nodejsパッケージをインストールする方法、 デフォルトレポジトリの代わりにPPAソフトウェアリポジトリからaptを使用して、nodejsパッケージの特定のバージョンをインストールする方法、 nvm(Node Version Manager)をインストールし、それを使用して、Node.jsの複数のバージョンをインストール、管理する方法です。 多くのユーザーにとっては、デフォルトリポジトリからap

                    Ubuntu 20.04にNode.jsをインストールする方法 | DigitalOcean
                  • JavaScriptツールチェーンをコードで管理できる「Volta 1.0.0」がリリース

                    Voltaは、JavaScriptツールチェーンをコードで管理できるユーティリティで、Infrastructure as Codeとほぼ同様の方法で、ノード、パッケージマネージャ、パッケージバイナリといったJavaScriptツールの管理が可能になっている。 今回、リリースされた「Volta 1.0.0」では、バージョン0.9.0で追加された、パッケージマネージャを用いてツールを直接インストールする仕組みが拡張されたnpm linkが導入され、異なるnpmバージョン間でもローカルパッケージとリンクできるようになった。また、異なるノードバージョンを使用している2つのプロジェクトをリンクしようとした場合には、非互換性についての警告を発する機能も備えている。 そのほか、パッケージマネージャーがインストールされたパッケージをすべて検出し、最新バージョンへアップグレードする機能も搭載された。 近い将

                      JavaScriptツールチェーンをコードで管理できる「Volta 1.0.0」がリリース
                    • イマドキは Webpack じゃなくて Rollup だ!Terser とともに Rollup を使ってみる - Neo's World

                      イマドキは Webpack じゃなくて Rollup だ!Terser とともに Rollup を使ってみる Webpack なんかと同じビルド・バンドルツールの Rollup を使ってみる。 目次 Rollup と Webpack の違い Transpiler と Minifier との区別 Rollup を試してみる Rollup の設定ファイルを作る Terser を組み込む : rollup-plugin-terser Rollup と Webpack の違い 同じバンドルツールである Webpack と Rollup の特徴を比べてみる。 参考:WebpackとRollupを比べてみて - Qiita CommonJS : require と module.exports ES6 (ES2015) : import と export Webpack は CommonJS しか認識

                      • Husky (v5) と lint-staged を使ってコミットする前に Prettier を実行する - 暇人じゃない

                        Git でコミットする前に Prettier や ESLint を動かす方法を探すと、Husky (v4) + lint-staged の組み合わせがヒットする。 2021/02/26 時点では Husky が v5 になっていて、package.json に hook を記述するのではなく、.husky ディレクトリの hook ファイル (pre-commit など) にスクリプトを定義するやり方に変わっていたのでまとめておく。 What's new in husky 5 - DEV Community それぞれのツールについて整理すると、Husky は Git の hook を管理するツール。lint-staged は Git に stage されているファイル (コミット対象のファイル) に指定したスクリプトを実行するツール。コミット対象のファイルにのみ Lint などのスクリプト

                        • npm CLI v9 is now generally available

                          November 9, 2022 The npm CLI v9 is now generally available! As of today, running npm i -g npm will install the latest version (v9.1.1). Details on the major breaking changes, features and bug fixes of v9 can be found in our last changelog post. A huge shout out to all of the contributors who helped make this release possible and who continue to make npm awesome. Learn more about v9.1.1 in the rele

                            npm CLI v9 is now generally available
                          • Proxying packages with GitHub Package Registry and other updates

                            ProductProxying packages with GitHub Package Registry and other updatesWe’ve introduced the ability to proxy packages from the npm registry through GitHub Package Registry for easier configuration and consolidation. Read more about the change and opt in to try it out. It’s been a few months since we announced GitHub Package Registry, a package management service that makes it easy to publish publi

                              Proxying packages with GitHub Package Registry and other updates
                            • webpackを利用してみる(入門編) | フロントエンドBlog | ミツエーリンクス

                              この記事はミツエーリンクスアドベントカレンダー2019の5日目の記事です。 Webサイト構築プロジェクトを進めていく中で、HTML/CSS設計やJavaScript開発を複数人で行うケースは多くあります。 そうした場合に、1つのファイルに複数の機能が集中しているとコードの可読性が悪くなり、開発作業の分担も難しくなってしまいます。 この問題の解決策として有効なのが、webpackなどのツールを使用することです。機能ごとにファイルを分割(モジュール化)して開発を進めることができれば、可読性も向上し開発作業の分担もしやすくなります。 webpackとは webpackとはCSSやJavaScript、画像などWebサイトを構成するあらゆるファイルを1つにまとめるモジュールバンドラーのことです。 webpackを利用して複数ファイルをバンドルすることは以下のような利点があります。 依存関係の解決

                                webpackを利用してみる(入門編) | フロントエンドBlog | ミツエーリンクス
                              • youki-takemoto.net

                                youki-takemoto.net 2023 著作権. 不許複製 プライバシーポリシー

                                  youki-takemoto.net
                                • Typescript+ESMでnpmパッケージ開発した備忘録

                                  Typescript+ESMでnpmパッケージを作る方法が案外まとまってなかったので残しておく。マサカリ歓迎。ほぼ確実に間違い/非効率な点がある。jestでテストもやってる。基本yarnを使う。 モジュール化するときにCommonJS(requireのやつ)とESM(import/exportのやつ)とかがある。調べたところESMが業界標準で、nodejs>13.2.0とか モダンな ブラウザではすでに対応してるらしいので、ESMで行く。Tree Shakeがしやすかったりするらしい。 プロジェクトの初期化 YOUR_PACKAGE_NAME="<名前>" mkdir $YOUR_PACKAGE_NAME && cd $YOUR_PACKAGE_NAME yarn init -y

                                    Typescript+ESMでnpmパッケージ開発した備忘録
                                  • package.jsonとpackage-lock.jsonの運用方法について

                                    はじめに パッケージ管理ツールnpmでのpackage.jsonとpackage-lock.jsonの違いや運用方法など、曖昧な点が多かったので調べてまとめてみました。基本的な内容かと思いますが、 参考になれば幸いです。 なぜpackage-lock.jsonが必要なのか? npmのv5以降に導入されたpackage-lock.jsonですが、npm installを実行した際にインストールされるパッケージのバージョンをpackage-lock.jsonに記載されたバージョンで固定することができ、全ての開発者で同じパッケージの環境を再現することができます。一方、package.jsonだけしかない場合では、npm installしたときに、それぞれの開発者で別バージョンのパッケージをインストールしてしまう可能性があります。 Git管理下では結局どのように運用すればいいの? package-

                                      package.jsonとpackage-lock.jsonの運用方法について
                                    • GitHub Actions で yarn install を爆速にしたい

                                      - name: Get yarn cache directory path id: yarn-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - uses: actions/cache@v2 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- これは

                                        GitHub Actions で yarn install を爆速にしたい
                                      • Dependency Managers Don’t Manage Your Dependencies

                                        First published on May 5, 2021, updated on May 18, 2023 I promised to write about tech, so let’s start building our JavaScript infrastructure muscles. In the next several blog posts, I’ll cover introductory topics on dependency management, actionable tips for making your infrastructure better, and guides for building JavaScript infrastructure. We’ll slowly develop our shared understanding so we ca

                                          Dependency Managers Don’t Manage Your Dependencies
                                        • GitHub - pnpm/pacquet: experimental package manager for node.js

                                          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 - pnpm/pacquet: experimental package manager for node.js
                                          • WordPress制作環境の過去と現在、そして未来はどうなる?wp-envの使い方を紹介 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作

                                            はいさい! 沖縄からフルリモートでLIGでお仕事しているうーまーです。 WordPressを触りはじめて、なんやかんや12年くらい経ってました 最初の2年は個人的なサイト作ったりだったので、お仕事としてWordPressを扱いはじめて10年くらいです。歳をとるのって早いですね……。 そんなこんなで、LIGの制作環境をアップデートしたいと思い情報を探っていたら、wp-envなるものをワードプレス公式が公開しているではありませんか! 知らなかったなんてWordPressエンジニア失格だな……と思っていたんですが、あまり知られていないのか、記事も少ないしそんなに話題になっていないみたいな雰囲気が(僕だけじゃなかった)。 理由は恐らく、下記のような感じでしょう。 DockerやLocal(Local by Flywheel)が優秀で、あまり必要性を感じていない せっかく作った制作環境をまた作り直す

                                              WordPress制作環境の過去と現在、そして未来はどうなる?wp-envの使い方を紹介 | 株式会社LIG(リグ)|DX支援・システム開発・Web制作
                                            • GitHub Dependabotが自動作成してくれるPRの中で、パッチバージョンの更新だけAutoMergeする | DevelopersIO

                                              GitHub Dependabotが自動作成してくれるPRの中で、パッチバージョンの更新だけAutoMergeする 吉川@広島です。 先日、 GitHubにDependabotを導入して依存ライブラリを自動アップデートする | DevelopersIO という記事を書きました。さらに掲題のことを実現するにはどうすれば良いのかなーと思っていたところ、ちょうどはてなブックマークで下のドキュメントが浮上していて解決できましたので、その方法を紹介したいと思います。 [B! github] Automating Dependabot with GitHub Actions - GitHub Docs Automating Dependabot with GitHub Actions - GitHub Docs TL;DR GitHub DependabotでPRを自動作成する GitHub Acti

                                                GitHub Dependabotが自動作成してくれるPRの中で、パッチバージョンの更新だけAutoMergeする | DevelopersIO
                                              • GitHub - nodenv/jetbrains-npm: Fix IntelliJ/WebStorm's npm integration under nodenv

                                                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 - nodenv/jetbrains-npm: Fix IntelliJ/WebStorm's npm integration under nodenv
                                                • Chrome拡張機能をGitHub ActionsでChrome Web Storeにデプロイ

                                                  どうも。えーたん(@eetann092)です。 先日、Chrome拡張機能「Choomame(チューマメ)」を公開しました。 本記事では、Choomame開発時に使っている「Chrome拡張機能をGitHub Actionsを使ってChrome Web Storeへデプロイする手順」を紹介します。 メリットは以下です。 自分で拡張機能のversionを制御しなくて良い 更新版をアップロードするときのバージョンの上げ忘れを気にしなくて良い Chrome Web Store Developer Dashboardに手動でアップロードする手間が省ける Chrome Web Store Developer Dashboardから手動で審査の申請をする手間が省ける GitHubの「Releases」に自動でリリースノートを作成&拡張機能のzipファイルをアップロード 初回はChrome Web St

                                                    Chrome拡張機能をGitHub ActionsでChrome Web Storeにデプロイ
                                                  • npm, Inc. Announces Leadership Change

                                                    CEO Bryan Bogensberger departing; Board of Directors opens a search for candidates OAKLAND, Calif., Sept. 20, 2019 /PRNewswire/ -- npm, Inc., the open source JavaScript developer tools provider and operator of the world's largest software registry, today announced its CEO, Bryan Bogensberger, has resigned effective immediately to pursue new opportunities. npm's Board of directors have commenced a

                                                    • GitHub - toplenboren/simple-git-hooks: A simple git hooks manager for small projects

                                                      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 - toplenboren/simple-git-hooks: A simple git hooks manager for small projects
                                                      • yarn ではなく npm install を叩いたらエラーを出したい!を実現する方法が意外に簡単だった

                                                        やりたいこと yarn ではなく npm install を叩いたらエラーを出す仕組みを作りたい 実現方法 npmrc に engine-strict=true を記載する npmrc とは npmの設定ファイル のことである

                                                          yarn ではなく npm install を叩いたらエラーを出したい!を実現する方法が意外に簡単だった
                                                        • GitHub - denoland/dnt: Deno to npm package build tool.

                                                          Takes a Deno module and creates an npm package for use in Node.js. There are several steps done in a pipeline: Transforms Deno code to Node including files found by deno test. Rewrites module specifiers. Injects shims for any Deno namespace or other global name usages as specified. Rewrites esm.sh specifiers to bare specifiers and includes these dependencies in a package.json. When remote modules

                                                            GitHub - denoland/dnt: Deno to npm package build tool.
                                                          • NPM registry prank leaves developers unable to unpublish packages

                                                            NPM registry prank leaves developers unable to unpublish packagesLaura FrenchJanuary 3, 2024 A prank on npm included a meme image of Gary Oldman from the film “Léon." (Photo by Patrick Camboulive / Sygma via Getty Images) Update Jan. 4, 2024: GitHub told SC Media Wednesday night that disruptions related to the "everything" package, and its registry-wide dependencies, were being resolved. "We found

                                                              NPM registry prank leaves developers unable to unpublish packages
                                                            • Hooks + multiple instances of React · Issue #13991 · facebook/react

                                                              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

                                                                Hooks + multiple instances of React · Issue #13991 · facebook/react
                                                              • Node.js Toolbox

                                                                Category OverviewTo give you an overview of what open source libraries are available for a given task, we've grouped libraries into categories. This catalog is open source on GitHub and open for contributions.

                                                                  Node.js Toolbox
                                                                • GitHubコメントを実行してあらゆることを自動化するGitHub Actions - Qiita

                                                                  やりたいこと GitHubのissueやプルリクエストのコメントに任意のスクリプトを書いてGitHub Actionsで実行したいです。 これができると色々と自動化できます。 例えば、 プルリクをマージした時のプレビュー npmのパッケージをアップデートして自動でプルリク SSHでGitHub Actions内に入ってデバッグ Python/Ruby/Go/Deno/Scala .... 任意言語の実行 LGTMの画像をコメント ... などなどアイデア次第でGitHubコメントする手軽さであらゆることを自動化できます。 npmでもaptでもpipでもgitでも色々コメントからGitHub完結で実行できます。 できたもの comment-runと呼んでます。 GitHub: https://github.com/nwtgck/actions-comment-run 上記のREADMEにここ

                                                                    GitHubコメントを実行してあらゆることを自動化するGitHub Actions - Qiita
                                                                  • Macでyarn installしたらnode-gypのエラーが出た - Qiita

                                                                    どうした 既存のプロジェクトの手直しをしようとして、ローカルにnode_modulesを入れたかったので以下のコマンドを実行したらエラーが出た。 Command: node-gyp rebuild Arguments: Directory: /Users/user/.ghq/github.com/hppRC/gatsby-firebase-sample/node_modules/fsevents Output: gyp info it worked if it ends with ok gyp info using node-gyp@5.0.5 gyp info using node@13.2.0 | darwin | x64 gyp info find Python using Python version 2.7.16 found at \"/System/Library/Framew

                                                                      Macでyarn installしたらnode-gypのエラーが出た - Qiita
                                                                    • npmでSELF_SIGNED_CERT_IN_CHAINが出るときの対処法 - Qiita

                                                                      npm installでパッケージをインストールするときに、SELF_SIGNED_CERT_IN_CHAINのエラーが出てインストールできないことがある。 この事象は非常に有名で、ネットで検索すると山ほど情報が出てくるのだが、対症療法的な解決法が多く、かつ様々な情報が錯そうしているため、今後のためにまとめておく。 なぜエラーが出るのか?(直接の原因) npmでは、デフォルトでパッケージのダウンロード元の証明書の正当性をチェックするようになっており、自己証明書であるためダウンロードを中止したことを示している。 >npm install bluebird npm ERR! code SELF_SIGNED_CERT_IN_CHAIN npm ERR! errno SELF_SIGNED_CERT_IN_CHAIN npm ERR! request to https://registry.np

                                                                        npmでSELF_SIGNED_CERT_IN_CHAINが出るときの対処法 - Qiita
                                                                      • Introducing our team, investors & more...

                                                                        Last year, after incorporating vlt technology Inc., I began the search for key venture partners & founding team members. Today, I'm thrilled to unveil the exceptional people comprising our core team & the distinguished investors who share our bold vision. Our TeamWe're putting the band back together (left-to-right) Isaac Z. Schlueter: creator of npm, former CEO of npm Inc. & Principal Engineer at

                                                                          Introducing our team, investors & more...
                                                                        • NPKILL - Maintain your development workspace clean.

                                                                          What is npkill? Npkill is a CLI tool that allows you to list all the heavy node_modules that you have scattered around your computer and allows you to delete those you don't need in a very simple and elegant way. You might be surprised how much space node_modules from old projects are silly taking up. Super Fast 🚀 Npkill looks for node_modules or any other directory at low level and in a distribu

                                                                          • gulp-sassインストール時のエラー「`which` failed Error: not found: python2」の対処方法(Windows)

                                                                              gulp-sassインストール時のエラー「`which` failed Error: not found: python2」の対処方法(Windows)
                                                                            • Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket

                                                                              Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npmThe Node community is wrestling with the decision to enable Corepack by default, which has sparked a debate about the potential of removing npm from the Node.js binary. A heated debate is happening in the Node.js community over a proposal to enable Corepack by default that was opened in November 20

                                                                                Node.js Community Debate Intensifies Over Enabling Corepack by Default and Potentially Unbundling npm - Socket
                                                                              • package.jsonのscriptsに引数を渡す方法

                                                                                package.jsonのscriptsに引数を渡す方法をご紹介します。 方法 コマンドの後に、-〇〇=?? を加えるとpackage.jsonのコマンド内で ??の部分を $npm_config_〇〇 で取得できます。 例 上の説明だけだとわかりづらいので例をあげます。 まずpackage.jsonのscriptsは以下のようになっているとします。

                                                                                  package.jsonのscriptsに引数を渡す方法
                                                                                • [Node.js]大企業様で使われているproxy.pacよりProxyサーバを設定している環境で「npm install」を使う方法 - Qiita

                                                                                  [Node.js]大企業様で使われているproxy.pacよりProxyサーバを設定している環境で「npm install」を使う方法MacNode.jsnpmproxyWindows10 Problem 大企業様の現場で構内請負や派遣で仕事していると、よく困ります。 それは、nodejsを使った簡単なツールをインストールする際に、npmでモジュールをダウンロードしようとするとダウンロードが出来ないことがある、ということ。 多くの場合、大企業様ではproxy.pacファイルを使っています。そして、事務用PCが持っている固定IPアドレスによって、アクセスできるProxyサーバーを振り分けています。このようなネットワーク環境では、npm install でモジュールがダウンロード出来ません。 Solution この問題を解決するには次のように設定します。 $ npm config set st

                                                                                    [Node.js]大企業様で使われているproxy.pacよりProxyサーバを設定している環境で「npm install」を使う方法 - Qiita

                                                                                  新着記事