タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

JavaScriptとgruntに関するledsunのブックマーク (3)

  • Grunt/Gulpで憔悴したおっさんの話 | MOL

    先人たちが1年前に通った道で、いろいろいまさらかよって話なんですが。基的に以下の記事読んだら分かります。要はGulpとかGruntといったモノ使わずにnpm run hogehogeでビルドしよーぜって話です。 task automation with npm run オレ的Gruntに対する最新の気持ち - from scratch Node - npm で依存もタスクも一元化する How to Use npm as a Build Tool // package.json "scripts": { "start": "npm run start-serve & npm run watch", "test": "stylestats public/files/css/maple.css", "start-serve": "browser-sync start --server publ

    Grunt/Gulpで憔悴したおっさんの話 | MOL
    ledsun
    ledsun 2015/03/27
    わかる。去年導入したGruntが捨て(Gulpに置き換え)られなくて、「むむむ」ってなってる。
  • loadTasks()を使ったGruntのタスク設定の管理

    How to structure your Grunt tasksというloadTasks()を使ってGruntの設定を別ファイルに分割するアイディアについての記事を読んだ。「なんだまた変なプラグインか」という感じで読み始めたら、良い意味で裏切られた。 GruntのloadTasks()は特定のディレクトリにあるカスタムGruntプラグインを一気に読み込むもので、自分で書いたNode.jsパッケージ化していないGruntプラグインを読み込むために使うもの。上記記事ではこれが指定ディレクトリ以下にあるファイルを単にJavaScriptファイルとして一気に読み込んでくれることを利用して、タスクごとに分割した設定ファイルの読み込みに使っている。 普通にGruntfile.jsに設定を書く場合と違い、プラグインごとに設定をまとめる必要がない。そのためあるタスクの設定を変えようとした場合、そのタスク

    loadTasks()を使ったGruntのタスク設定の管理
    ledsun
    ledsun 2014/07/15
    Gruntfile.jsを分割するハックの日本語解説。
  • How to structure your Grunt tasks

    One problem that I frequently experience with Gruntfiles is that they grow out of control pretty quickly. Take this single js datepicker's Gruntfile for example. Now imagine scaling that upwards for your entire web app. Things turn into spaghetti pretty quickly, and you'll need a level 9 wizard to decypher those ancient texts. Build tasks need some structure so that you can quickly understand wha

    ledsun
    ledsun 2014/07/15
    Gruntfile.jsを分割するハック
  • 1