Yeoman's generators are what give its platform flexibility, allowing you to reuse the same tool for any kind of project you may be working on, JavaScript or otherwise, and that's before I mention the enormous library of over 400 community contributed generators. Sometimes though, you may have some specific setup that you like to employ in your own projects and for situations like this, it makes se
はじめに Yeoman用の独自のgenerator作りたいなーと思っていたら丁度WRITING CUSTOM YEOMAN APP GENERATORSていうドキュメントがあったので訳します。適当に端折ったり言い換えているので、完全な詳細は原文を読んで下さい。 とりあえず感想だけ言うと「Yeomanはじまったな」です。あとでFirefox OSのアプリ(Open Web Apps)用のgenerator作るで。generatorはNode.jsで動くのでNode.jsで何か作った事ある場合は割と簡単に色々出来ると思う。 目次 このガイドはYeoman generatorシステムを使おうとしてる人を助ける為のものです。説明を飛ばしてもgeneratorの利用は出来ます。 導入 generatorのタイプ ボイラーテンプレートなgeneratorを作る アプリケーションの土台を生成するgene
注:古い記事の為、内容が最新ではない可能性がありますm(_ _)m マツウラです。 Yeomanのyoでは、generatorによってWebアプリの骨組みを自動的に生成することができます。 今回はジェネレータで骨組みを生成しながら、基本的な処理について押さえていきます。 今回の実行環境は次の通りです。 Node.js 0.10.25 npm 1.3.24 yo 1.1.2 generator-generator 0.4.2 yoとgenerator-generatorをセットアップする npmでインストールする前にnpmのバージョンを確認します。 バージョンが1.2.10以上であると、yoインストールの際にgruntとbowerが自動的にインストールされます。 以前にgruntをグローバルにインストールしている場合、アンインストールします。 npm uninstall -g grunt n
Generators are the building blocks of the Yeoman ecosystem. They’re the plugins run by yo to generate files for end users. In reading this section, you’ll learn how to create and distribute your own. Organizing your generatorsSetting up as a node moduleA generator is, at its core, a Node.js module. First, create a folder within which you’ll write your generator. This folder must be named generator
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く