Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update: ES6 Modules&Firefox version refs #372 #468

Merged
merged 42 commits into from Aug 31, 2018

Conversation

S--Minecraft
Copy link
Member

@S--Minecraft S--Minecraft commented Aug 22, 2018

2018/08/31 19:19 最終変更点一覧

  • ES6 Module化とそれに伴うrollup.jsの導入
  • WebExtension browser API Polyfillの導入
  • auto-prefixerの導入
  • gulp関連
    • タスクを分割
    • エラー出力の改善
    • watchでscss/pugのインポート元の変更も検知するように
  • リファクタリング
    • app.moduleの廃止
    • app.contextMenus -> app.ContextMenus
    • th:nth-child -> th.className
  • Firefox版のビルドができるように
  • Chromeでのlocalstorageの最大値が誤っていたのを修正
  • タブを開いて読み込まず閉じたときにエラーが出ていたのを修正
  • manifest.jsonのCSPのchild-srcframe-srcに変更

  • ES6 Module化とそれに伴うrollup.jsの導入
  • Firefox版のビルドができるように

差分がとても大きくなってますが、実際gulp周り以外はほとんど微修正です(とは言ってもちりも積もれば山となるですが…)

よろしくお願いします

gulp周りはもう少しいじるかもしれないです、差分ビルドあたりを

それとFirefox版一応起動と多少の動作までは確認したんですが公開方法とかはどうしようかなと

@eru
Copy link
Member

eru commented Aug 22, 2018

がんばって見ます 🙄

@S--Minecraft S--Minecraft changed the title Update: ES6 Modules&Firefox version Update: ES6 Modules&Firefox version refs #372 Aug 22, 2018
@S--Minecraft
Copy link
Member Author

cbed67d のせいでビルド通らないですね…(後で修正します)

Copy link
Member

@eru eru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

とりあえず、Fix: app.moduleの廃止 15a6b59までざっと見ました。

.gitignore Outdated
@@ -38,7 +38,7 @@ $RECYCLE.BIN/
.LSOverride

# Icon must end with two \r
Icon
Icon
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\rが、\r\n\nになっちゃってます。

@@ -1,13 +1,17 @@
import Write from "./write.coffee"
import WriteHistory from "../core/WriteHistory.coffee"
import {tsld} from "../core/URL.ts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他では、getTsldとしてますがなにか意図があってのことですか?

@@ -1,13 +1,16 @@
import Write from "./write.coffee"
import {tsld} from "../core/URL.ts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他では、getTsldとしてますがなにか意図があってのことですか?

# テーマ適用
$view.removeClass("theme_default", "theme_dark", "theme_none")
$view.addClass("theme_#{themeId}")
import {fix, parseQuery, setScheme, getScheme, tsld, guessType} from "../core/URL.ts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他では、fixUrlとしてますがなにか意図があってのことですか?

@S--Minecraft
Copy link
Member Author

指摘箇所と cbed67d の修正と 29bc7c5 の追加をしました
これでビルド通ると思います
(最初エイリアスなしで書き換えていてそのあと変えたので、それの修正抜けですね…)

@S--Minecraft S--Minecraft requested a review from eru August 24, 2018 07:20
@S--Minecraft
Copy link
Member Author

developの1.30.10のバージョン変更を取り込むためにrebaseかけました(これによる変更点はpackage.jsonだけです)

Copy link
Member

@eru eru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

コミット別にみてるのでいくつかoutdatedになっちゃってるので開いてみてくださいー 🙏

  • Chromeの/でという文言を削除、もしくはs/Chrome/ブラウザ/g`
  • READMEをFirefox対応に合わせて修正

動作確認したらまたコメント書きます�ー

this.loadFromChromeBookmark();
});
// Firefoxではbookmarks.onImportBegan/Endedは実装されていない
if (location.origin.startsWith("chrome-extension://")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これは、chromeかどうかみるんじゃなくて、Eventがあるかどうか見るのがいいかと

browser.bookmarks.onImportEnded !== void 0とか、typeof browser.bookmarks.onImportEnded === 'Event'とか

src/app.ts Outdated
@@ -423,6 +423,13 @@ export function clipboardWrite (str:string):void {
$textarea.remove();
}

export var imgExt: string = ( () => {
if (location.origin.startsWith("chrome-extension://")) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

結果は同じになるのでこれでいいと思いますが、ビルド対象に限らずwebp,pngのリソースを含めてpictureタグ使ってフォールバックさせるか、gulp-replaceとかで定数置換させちゃったほうがすっきりするかと。

.gitignore Outdated
@@ -105,5 +105,8 @@ Session.vim

### My Project
/debug/
/debug-chrome/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

対応ブラウザごとにトップディレクトリにdebug-*が増えてもあれなので、個人的にはdebug/chrome, debug/firefoxのような構成の方がいいと思いますがどうでしょう?
packしたファイルも同じで、build/chrome/read.crx_2.1.30.10.crxみたいな構成が好みです。

@eru
Copy link
Member

eru commented Aug 24, 2018

それとFirefox版一応起動と多少の動作までは確認したんですが公開方法とかはどうしようかなと

AMOでの公開にすると、審査とかしんどいと思うのでChromeと同じく署名して、 https://readcrx-2.github.io/read.crx-2/ での公開でいいかと。
アドオンを署名して配布する - Mozilla | MDN
Updates - Mozilla | MDN

この辺見る限りChromeより楽そうで、署名されてれば普通にインストールできるし、インストール後は自動更新もできそうですね。

2018/08/25 00:39 追記:

署名用にaddons.mozilla.orgのアカウント必要ですが、gmailにreadcrxのアカウント作成して、それ使って各種サービス(したらば/Slack/Github Organization/addons.mozilla.org)のアカウントを管理するというのでどうでしょう?
セキュリティ的に褒められた方法ではないですが、GoogleDriveを使ってアカウント情報や署名用の情報の共有かけるような形でいいかと。
もしくは使ってるパスワードマネージャかぶってるのであれば、それで共有でも。(僕は、LastPassです)

@S--Minecraft
Copy link
Member Author

以下の変更をしました

  • browser.bookmarks.onImportEnded !== void 0
  • ブラウザ別分岐の定数置換
  • debug-#{browser} -> debug/#{browser}
  • Chromeの/でという文言を削除、もしくはs/Chrome/ブラウザ/g`
  • READMEをFirefox対応に合わせて修正
  • app.contextMenu -> app.ContextMenu
  • app.ChromeBookmarkEntryList -> app.BrowserBookmarkEntryList

@S--Minecraft
Copy link
Member Author

S--Minecraft commented Aug 26, 2018

Extensions and the add-on ID (ja)
applications/Firefox (Gecko) properties
AMO使わない場合はアップデートで同じ拡張だと認識されるためにmanifest.jsonapplication.idが必要そうですがどうしましょう?(もしかしたら必要ない…?)
readcrx2@read.crxあたりですかね。

署名用アカウントの話ですが、そうですね。gmailがよさそうですね。

@eru
Copy link
Member

eru commented Aug 26, 2018

  • image_extない

    src/view/thread.pug
    50:    img.close(src="/img/close_16x16.${image_ext}")
    
  • Uncaught (in promise) TypeError: Cannot read property 'title' of undefined

  • Firefoxでブックマークなどのタブ部分をクリックするとドラッグ状態になってしまう

  • Firefoxで「read.crx 2で開く」が動作しない

    • Error: Type error for parameter updateProperties (Property "highlighted" is unsupported by Firefox) for tabs.update.
  • Firefoxでブックマークのスレッド情報の罫線が表示されたりされなかったりする

    • 環境依存?
  • Firefoxで未読ブックマークがある場合に最後のレスの一部が見えなくなってしまう

  • Firefoxで設定画面を開くとTypeError: Value being assigned to HTMLMeterElement.max is not a finite floating-point value.

  • Firefoxでlocalstorageの使用量が正常に表示されない

    • これはデバッグでの読み込みだからかも?
  • Firefoxで3ペイン(横一列)で幅を狭めた時にカラムが隠れない

  • Firefoxで3ペイン(横一列)で幅を狭めた時にソート順のセレクトのテキストにlabelの値が表示されない

    • ↑の画像参照
  • Firefoxで書き込み時にリファラが空?になっていて書き込めない

  • FirefoxでTypeError: target.contentWindow.emit is not a function

    • 発生タイミングがよくわからなかったです

AMO使わない場合はアップデートで同じ拡張だと認識されるためにmanifest.jsonにapplication.idが必要そうですがどうしましょう?
readcrx2@read.crxあたりですかね

それでいいとおもいます。

@S--Minecraft
Copy link
Member Author

S--Minecraft commented Aug 31, 2018

以下の修正をしました

  • Chromeでclose_16x16.png:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
  • Firefoxで2回目以降の起動時のコンテキストメニュー重複登録エラー
  • TypeError: target.contentWindow.emit is not a function
  • 3ペイン(横一列)の場合に横幅を狭くしても「勢い」のカラムが非表示にならなくなっている

@eru eru self-requested a review August 31, 2018 09:18
Copy link
Member

@eru eru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

@S--Minecraft
Copy link
Member Author

以下の更新をしました

  • gulp watchでscss/pugのインポート元の変更も検知するように

@S--Minecraft S--Minecraft requested a review from eru August 31, 2018 10:10
@S--Minecraft
Copy link
Member Author

reviewありがとうございます!

@S--Minecraft S--Minecraft merged commit 31dbc57 into readcrx-2:develop Aug 31, 2018
@awazi
Copy link

awazi commented Aug 31, 2018

こちらのバージョンを試してみようと、パッケージ化されていない拡張機能を読み込むからdebug/chromeを指定すると、エラーメッセージCannot load extension with file or directory name _base.html. Filenames starting with "_" are reserved for use by the system.が表示されて読み込めませんでした。
ビルド方法は今までと同じnpm run buildだけではいけないのでしょうか?
なお、作成されたディレクトリdebugの下にはchromeディレクトリがあるだけで、chrome内にはmanifest.jsonなどが配置されています。

@eru
Copy link
Member

eru commented Aug 31, 2018

@awazi ビルド環境おしえていただけますか?
手元の環境(macOS 10.13.6/Node.js v10.9.0)ではうまく行ってます。

bash-4.4$ git checkout develop
Already on 'develop'
Your branch is up to date with 'origin/develop'.
bash-4.4$ git pull
Already up to date.
bash-4.4$ npm ci

> fsevents@1.2.4 install /Users/eru/Hack/read.crx-2/node_modules/fsevents
> node install

[fsevents] Success: "/Users/eru/Hack/read.crx-2/node_modules/fsevents/lib/binding/Release/node-v64-darwin-x64/fse.node" already installed
Pass --update-binary to reinstall or --build-from-source to recompile

> spawn-sync@1.0.15 postinstall /Users/eru/Hack/read.crx-2/node_modules/spawn-sync
> node postinstall


> dtrace-provider@0.8.7 install /Users/eru/Hack/read.crx-2/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

  ACTION binding_gyp_ndtp_target_build_ndtp .
  TOUCH Release/obj.target/ndtp.stamp

> sharp@0.20.5 install /Users/eru/Hack/read.crx-2/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-darwin-x64.tar.gz

> node-sass@4.9.3 install /Users/eru/Hack/read.crx-2/node_modules/node-sass
> node scripts/install.js

Cached binary found at /Users/eru/.npm/node-sass/4.9.3/darwin-x64-64_binding.node

> node-sass@4.9.3 postinstall /Users/eru/Hack/read.crx-2/node_modules/node-sass
> node scripts/build.js

Binary found at /Users/eru/Hack/read.crx-2/node_modules/node-sass/vendor/darwin-x64-64/binding.node
Testing binary
Binary is fine
added 1364 packages in 18.975s
bash-4.4$ npm run build

> read.crx-2@0.0.0 build /Users/eru/Hack/read.crx-2
> gulp build

[22:00:00] Requiring external module coffeescript/register
[22:00:02] Using gulpfile ~/Hack/read.crx-2/gulpfile.coffee
[22:00:02] Starting 'build'...
[22:00:02] Starting 'js:chrome'...
[22:00:02] Starting 'css:chrome'...
[22:00:02] Starting 'html:chrome'...
[22:00:02] Starting 'img:chrome'...
[22:00:02] Starting 'manifest:chrome'...
[22:00:02] Starting 'lib:chrome'...
[22:00:02] Starting 'js:app.js:chrome'...
[22:00:02] Starting 'js:app_core.js:chrome'...
[22:00:02] Starting 'js:ui.js:chrome'...
[22:00:02] Starting 'js:submit_res.js:chrome'...
[22:00:02] Starting 'js:submit_thread.js:chrome'...
[22:00:02] Starting 'js:background.js:chrome'...
[22:00:02] Starting 'js:cs_addlink.js:chrome'...
[22:00:02] Starting 'js:view:chrome'...
[22:00:02] Starting 'js:zombie.js:chrome'...
[22:00:02] Starting 'js:cs_write.js:chrome'...
[22:00:02] Starting 'css:ui.css:chrome'...
[22:00:02] Starting 'css:view:chrome'...
[22:00:02] Starting 'css:write:chrome'...
[22:00:02] Starting 'html:view:chrome'...
[22:00:02] Starting 'html:zombie.html:chrome'...
[22:00:02] Starting 'html:write:chrome'...
[22:00:02] Starting 'img:imgs:chrome'...
[22:00:02] Starting 'img:ico:chrome'...
[22:00:02] Starting 'img:logo128:chrome'...
[22:00:02] Starting 'img:loading:chrome'...
[22:00:02] Starting 'lib:shortQuery:chrome'...
[22:00:02] Starting 'lib:webExtPolyfill:chrome'...
[22:00:07] Finished 'js:app_core.js:chrome' after 5.53 s
[22:00:07] Finished 'js:app.js:chrome' after 5.53 s
[22:00:07] Finished 'js:ui.js:chrome' after 5.53 s
[22:00:07] Finished 'js:submit_res.js:chrome' after 5.53 s
[22:00:07] Finished 'js:submit_thread.js:chrome' after 5.53 s
RECOMMEND: set default_locale
RECOMMEND: false is better than undefined on persistent of background
[22:00:08] Finished 'img:loading:chrome' after 5.79 s
[22:00:08] Finished 'img:logo128:chrome' after 5.79 s
[22:00:08] Finished 'manifest:chrome' after 5.8 s
[22:00:08] Finished 'img:ico:chrome' after 5.79 s
[22:00:09] Finished 'img:imgs:chrome' after 6.58 s
[22:00:09] Finished 'img:chrome' after 6.58 s
[22:00:09] Finished 'js:cs_addlink.js:chrome' after 6.59 s
[22:00:09] Finished 'js:background.js:chrome' after 6.59 s
[22:00:09] Finished 'js:zombie.js:chrome' after 6.59 s
[22:00:09] Finished 'js:cs_write.js:chrome' after 6.59 s
[22:00:09] Finished 'lib:shortQuery:chrome' after 6.59 s
[22:00:09] Finished 'lib:webExtPolyfill:chrome' after 6.6 s
[22:00:09] Finished 'lib:chrome' after 6.6 s
[22:00:09] Finished 'html:zombie.html:chrome' after 6.63 s
[22:00:09] Finished 'html:write:chrome' after 6.9 s
[22:00:09] Finished 'css:write:chrome' after 6.92 s
[22:00:09] Finished 'css:ui.css:chrome' after 7.12 s
[22:00:09] Finished 'js:view:chrome' after 7.49 s
[22:00:09] Finished 'js:chrome' after 7.49 s
[22:00:09] Finished 'html:view:chrome' after 7.49 s
[22:00:09] Finished 'html:chrome' after 7.49 s
[22:00:10] Finished 'css:view:chrome' after 7.59 s
[22:00:10] Finished 'css:chrome' after 7.59 s
[22:00:10] Finished 'build' after 7.59 s
bash-4.4$ ls -la debug/chrome/
total 364
drwxr-xr-x 16 eru staff    544  8 31 22:00 .
drwxr-xr-x  3 eru staff    102  8 31 22:00 ..
-rw-r--r--  1 eru staff    392  8 31 21:55 _base.html
-rw-r--r--  1 eru staff  14682  8 31 22:00 app.js
-rw-r--r--  1 eru staff 166855  8 31 22:00 app_core.js
-rw-r--r--  1 eru staff  13456  8 31 21:55 background.js
-rw-r--r--  1 eru staff   2327  8 31 21:55 cs_addlink.js
drwxr-xr-x 40 eru staff   1360  8 31 22:00 img
drwxr-xr-x  4 eru staff    136  8 31 22:00 lib
-rw-r--r--  1 eru staff   2091  8 31 22:00 manifest.json
-rw-r--r--  1 eru staff   3615  8 31 21:55 ui.css
-rw-r--r--  1 eru staff 144813  8 31 22:00 ui.js
drwxr-xr-x 38 eru staff   1292  8 31 22:00 view
drwxr-xr-x 10 eru staff    340  8 31 22:00 write
-rw-r--r--  1 eru staff    433  8 28 03:28 zombie.html
-rw-r--r--  1 eru staff   1325  8 31 21:55 zombie.js

@awazi
Copy link

awazi commented Aug 31, 2018

OSはubuntu 16.04 LTSです。よろしくお願いします。

izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ node -v
v10.8.0
izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ npm -v
6.4.0

izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ git pull
Already up-to-date.

izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ rm -r node_modules/
izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ npm install

> dtrace-provider@0.8.7 install /home/izawa/Dropbox/work/read.crx-2_new/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js

make: ディレクトリ '/home/izawa/Dropbox/work/read.crx-2_new/node_modules/dtrace-provider/build' に入ります
  TOUCH Release/obj.target/DTraceProviderStub.stamp
make: ディレクトリ '/home/izawa/Dropbox/work/read.crx-2_new/node_modules/dtrace-provider/build' から出ます

> node-sass@4.9.3 install /home/izawa/Dropbox/work/read.crx-2_new/node_modules/node-sass
> node scripts/install.js

Cached binary found at /home/izawa/.npm/node-sass/4.9.3/linux-x64-64_binding.node

> sharp@0.20.5 install /home/izawa/Dropbox/work/read.crx-2_new/node_modules/sharp
> (node install/libvips && node install/dll-copy && prebuild-install) || (node-gyp rebuild && node install/dll-copy)

info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.6.1/libvips-8.6.1-linux-x64.tar.gz

> spawn-sync@1.0.15 postinstall /home/izawa/Dropbox/work/read.crx-2_new/node_modules/spawn-sync
> node postinstall


> node-sass@4.9.3 postinstall /home/izawa/Dropbox/work/read.crx-2_new/node_modules/node-sass
> node scripts/build.js

Binary found at /home/izawa/Dropbox/work/read.crx-2_new/node_modules/node-sass/vendor/linux-x64-64/binding.node
Testing binary
Binary is fine
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

added 1363 packages from 898 contributors and audited 10948 packages in 186.158s
found 1 low severity vulnerability
  run `npm audit fix` to fix them, or `npm audit` for details
izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ npm run clean

> read.crx-2@0.0.0 clean /home/izawa/Dropbox/work/read.crx-2_new
> gulp clean

[22:15:57] Requiring external module coffeescript/register
[22:16:02] Using gulpfile ~/Dropbox/work/read.crx-2_new/gulpfile.coffee
[22:16:02] Starting 'clean'...
[22:16:02] Finished 'clean' after 16 ms
izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ npm run build

> read.crx-2@0.0.0 build /home/izawa/Dropbox/work/read.crx-2_new
> gulp build

[22:16:18] Requiring external module coffeescript/register
[22:16:20] Using gulpfile ~/Dropbox/work/read.crx-2_new/gulpfile.coffee
[22:16:20] Starting 'build'...
[22:16:20] Starting 'js:chrome'...
[22:16:20] Starting 'css:chrome'...
[22:16:20] Starting 'html:chrome'...
[22:16:20] Starting 'img:chrome'...
[22:16:20] Starting 'manifest:chrome'...
[22:16:20] Starting 'lib:chrome'...
[22:16:20] Starting 'js:app.js:chrome'...
[22:16:20] Starting 'js:app_core.js:chrome'...
[22:16:20] Starting 'js:ui.js:chrome'...
[22:16:20] Starting 'js:submit_res.js:chrome'...
[22:16:20] Starting 'js:submit_thread.js:chrome'...
[22:16:20] Starting 'js:background.js:chrome'...
[22:16:20] Starting 'js:cs_addlink.js:chrome'...
[22:16:20] Starting 'js:view:chrome'...
[22:16:20] Starting 'js:zombie.js:chrome'...
[22:16:20] Starting 'js:cs_write.js:chrome'...
[22:16:20] Starting 'css:ui.css:chrome'...
[22:16:20] Starting 'css:view:chrome'...
[22:16:20] Starting 'css:write:chrome'...
[22:16:20] Starting 'html:view:chrome'...
[22:16:20] Starting 'html:zombie.html:chrome'...
[22:16:20] Starting 'html:write:chrome'...
[22:16:20] Starting 'img:imgs:chrome'...
[22:16:20] Starting 'img:ico:chrome'...
[22:16:20] Starting 'img:logo128:chrome'...
[22:16:20] Starting 'img:loading:chrome'...
[22:16:20] Starting 'lib:shortQuery:chrome'...
[22:16:20] Starting 'lib:webExtPolyfill:chrome'...
[22:16:32] Finished 'js:app.js:chrome' after 12 s
[22:16:32] Finished 'js:app_core.js:chrome' after 12 s
[22:16:32] Finished 'img:loading:chrome' after 12 s
[22:16:32] Finished 'js:submit_res.js:chrome' after 12 s
[22:16:32] Finished 'js:submit_thread.js:chrome' after 12 s
[22:16:32] Finished 'js:ui.js:chrome' after 12 s
RECOMMEND: set default_locale
RECOMMEND: false is better than undefined on persistent of background
[22:16:32] Finished 'img:logo128:chrome' after 12 s
[22:16:32] Finished 'manifest:chrome' after 12 s
[22:16:32] Finished 'img:ico:chrome' after 12 s
[22:16:32] Finished 'img:imgs:chrome' after 12 s
[22:16:32] Finished 'img:chrome' after 12 s
[22:16:33] Finished 'js:background.js:chrome' after 12 s
[22:16:33] Finished 'js:cs_addlink.js:chrome' after 12 s
[22:16:33] Finished 'js:zombie.js:chrome' after 12 s
[22:16:33] Finished 'js:cs_write.js:chrome' after 12 s
[22:16:33] Finished 'lib:shortQuery:chrome' after 12 s
[22:16:33] Finished 'lib:webExtPolyfill:chrome' after 12 s
[22:16:33] Finished 'lib:chrome' after 12 s
[22:16:33] Finished 'html:zombie.html:chrome' after 12 s
[22:16:33] Finished 'html:write:chrome' after 13 s
[22:16:33] Finished 'css:write:chrome' after 13 s
[22:16:34] Finished 'css:ui.css:chrome' after 14 s
[22:16:35] Finished 'js:view:chrome' after 14 s
[22:16:35] Finished 'js:chrome' after 14 s
[22:16:35] Finished 'html:view:chrome' after 14 s
[22:16:35] Finished 'html:chrome' after 14 s
[22:16:35] Finished 'css:view:chrome' after 15 s
[22:16:35] Finished 'css:chrome' after 15 s
[22:16:35] Finished 'build' after 15 s
izawa@Ubuntu-MP1:~/Dropbox/work/read.crx-2_new$ ls -la debug/chrome/
合計 388
drwxrwxr-x 6 izawa izawa   4096  8月 31 22:16 .
drwxrwxr-x 3 izawa izawa   4096  8月 31 22:16 ..
-rw-rw-r-- 1 izawa izawa    392  8月 31 19:36 _base.html
-rw-rw-r-- 1 izawa izawa  14682  8月 31 22:16 app.js
-rw-rw-r-- 1 izawa izawa 166855  8月 31 22:16 app_core.js
-rw-rw-r-- 1 izawa izawa  13456  8月 31 19:36 background.js
-rw-rw-r-- 1 izawa izawa   2327  8月 31 19:36 cs_addlink.js
drwxrwxr-x 2 izawa izawa   4096  8月 31 22:16 img
drwxrwxr-x 2 izawa izawa   4096  8月 31 22:16 lib
-rw-rw-r-- 1 izawa izawa   2091  8月 31 22:16 manifest.json
-rw-rw-r-- 1 izawa izawa   3615  8月 31 19:36 ui.css
-rw-rw-r-- 1 izawa izawa 144813  8月 31 22:16 ui.js
drwxrwxr-x 2 izawa izawa   4096  8月 31 22:16 view
drwxrwxr-x 2 izawa izawa   4096  8月 31 22:16 write
-rw-rw-r-- 1 izawa izawa    433  9月 18  2017 zombie.html
-rw-rw-r-- 1 izawa izawa   1325  8月 31 19:36 zombie.js

@eru
Copy link
Member

eru commented Aug 31, 2018

@awazi あ、5d91b59 のコミットでビルドうまく行かなくなってますね。

とりあえず手元で動作確認するだけであれば↑のコミットrevertしとけば確認できると思います。
また、npm installだと、依存関係を更新しながらのインストールになってしまうので、package-lock.jsonの通りにインストールする場合には、npm ciを使ってもらった方が確実に同じ環境に確認できます。

@S--Minecraft ↑の修正おねがいしますー。

@awazi
Copy link

awazi commented Aug 31, 2018

ありがとうございます。動きました。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants