GithubHelp home page GithubHelp logo

motonari728 / hatena-bookmark-googlechrome-extension Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hatena/hatena-bookmark-googlechrome-extension

0.0 1.0 0.0 1.05 MB

Hatena Bookmark extension for Google Chrome

License: Other

Ruby 0.58% JavaScript 85.81% HTML 8.23% CSS 5.38%

hatena-bookmark-googlechrome-extension's Introduction

はてなブックマーク Google Chrome 拡張

本文書は, はてなブックマーク Google Chrome 拡張の開発者向けです。 利用者向け情報は下記ページなどをご覧ください。

ブランチの使い方

永続的なブランチとして下記の 2 つを使用しています。

  • master
  • dev

開発時は dev ブランチから新しいトピックブランチをきって、トピックブランチでの開発が終了した時に dev ブランチにマージ (または pull reqeust) してください。 本番リリースの際には dev ブランチを master ブランチにマージしてリリースします。

テストについて

src/tests にテストがあります。 テストは, はてなブックマーク Google Chrome 拡張をインストールしている Chrome で chrome-extension://{extension-id}/tests/test.html にアクセスすると実行されます。

パッケージングについて

リリースのための zip ファイルには src/tests を含める必要はありません。 (rake package により ZIP ファイルを作成すると自動的に src/tests 以下は除かれます。)

rake package

ソースファイルの配置

Chrome 拡張と Opera 拡張を同じブランチで管理できるように、ソースファイルの配置は少し複雑になっています。

  • src/main ディレクトリ: どの製品向けのパッケージにも含まれる基本的なソースファイル
  • src/chrome ディレクトリ: Chrome 用のパッケージに含まれるファイル
  • src/opera ディレクトリ: Opera 用のパッケージに含まれるファイル

複数ファイルに分散しているため、このままだと開発用に Chrome や Opera で読み込むことができません。 そこで、これらのソースファイルをコピーして、obj/* ディレクトリ以下に配置するための Rake タスク filecopy が存在します。

bundle exec rake filecopy

また、ソースファイルの変更時に自動的に filecopy タスクを実行するための watchr 設定ファイルもあります。

bundle exec watchr filecopy.watchr

Ruby Gems の管理

rakewatchr に必要な Ruby gems は bundler で管理しています。

Bundler がインストールされている状態で次のコマンドを実行すると、このプロジェクトで必要な Gem がインストールされます。

bundle install

hatena-bookmark-googlechrome-extension's People

Contributors

aereal avatar akwkm avatar hitode909 avatar hotchpotch avatar lambdalisue avatar mattn avatar motonari728 avatar nanto avatar ninjinkun avatar nobuoka avatar pastak avatar skozawa avatar syou6162 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.