MooTools 備有不少 plugin 在所謂 MooTools More,官網亦提供 More Builder 方便自訂下載。
不過若要下載 1)整套 More 所有元件,或 2)最新開發版本 有沒有簡單辦法呢?
寫這篇時才發現,原來 download 頁就有「Edge Build」可以抓最新 core build ,把網址 core 換成 more 應該就是最新的 More 了(其實也不確定,沒看到說明)
封存
MooTools 備有不少 plugin 在所謂 MooTools More,官網亦提供 More Builder 方便自訂下載。
不過若要下載 1)整套 More 所有元件,或 2)最新開發版本 有沒有簡單辦法呢?
寫這篇時才發現,原來 download 頁就有「Edge Build」可以抓最新 core build ,把網址 core 換成 more 應該就是最新的 More 了(其實也不確定,沒看到說明)
似乎已解決,只好把本文放分隔線後面……
另一個作法是到 More 的 GitHub Repository 把檔案複製下來,裡面就有 build.rb,會把各元件的原始碼合併起成一份 .js(預設包含 Core + More),附帶好處是要包哪些東西可以寫設定檔存起來。
記具體過程:
cd some_directory
git clone git://github.com/mootools/mootools-more.git
cd mootools-more
git submodule init
git submodule update
def build @string ||= full_build @string.sub!('%build%', build_number) @string # 加入這行才會傳回 @string,否則會輸出空檔案 end
builder = MooTools::Build.new({ :dependency_paths => conf[:dependency_paths], :build_path => conf[:build_path], :dependency_file => conf[:dependency_file] # 原本沒吃到這個設定 })
ruby build.rb
註:寫這文章的時候 Source/Native/URI.js 檔案編碼有問題,若輸出檔案不是 utf-8,可以檢查這個檔案。
感謝提供~自動重新整理真的慘
神奇的解法!
取得BlogId >> data:blog.blogId
不妙,我也沒留底了
大大
檔案已失聯,跪求檔案
現在 Apple Music 幾乎都找的到。
https://itun.es/tw/JeB9o
'96 年在泰國工作接觸到 carabao, 隔年亞洲金融風暴泰國重傷,大街小巷都在唱 made in Thailand ⋯