plotly / plotly/plotly.js

Custom bundle doesn't generate CSS file anymore.

オープン
#7,258 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

bug P2
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

When generating a custom bundle, no CSS file is generated any more, even though it's mentioned in the output.

Steps to reproduce

$ git clone https://github.com/plotly/plotly.js.git
$ cd plotly.js
$ git checkout e6b155c1c91603eb0946f111bc3415b222422230
$ npm install
$ npm run custom-bundle -- --traces sunburst --transforms none --strict --out sunburst
> plotly.js@2.35.2 custom-bundle
> node tasks/custom_bundle.mjs --traces sunburst --transforms none --strict --out sunburst

{
  traceList: [ 'scatter', 'sunburst' ],
  name: 'sunburst',
  index: '/users/tkm/dhauck/kekse/plotly.js/lib/index-strict-sunburst.js',
  strict: true,
  dist: '/users/tkm/dhauck/kekse/plotly.js/dist/plotly-sunburst.js',
  distMin: '/users/tkm/dhauck/kekse/plotly.js/dist/plotly-sunburst.min.js'
}

  dist/plotly-sunburst.min.js    1.0mb ⚠️
  dist/plotly-sunburst.min.css  63.9kb

⚡ Done in 750ms

This results in the following extra files being generated:

$ git clean -dxn
Would remove dist/plotly-sunburst.min.js
Would remove lib/index-strict-sunburst.js
Would remove node_modules/

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

tasks/custom_bundle.mjsから始め、コミット e6b155c1c91603eb0946f111bc3415b222422230 で文書化されている npm run custom-bundle コマンドを再現してください。生成された dist/plotly-sunburst.min.js と期待される CSS 出力を git clean -dxn と比較してください。custom bundle がビルド出力で言及されている CSS ファイルを生成すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
build-system
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
明確に書かれている
初心者へのやさしさ
55/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。