sl-get-static-html

This module convert 'JT Scientist Library Test Site' to static html.

Usage no npm install needed!

<script type="module">
  import slGetStaticHtml from 'https://cdn.skypack.dev/sl-get-static-html';
</script>

README

--

  1. node.jsおよびnpmをインストールする http://www.tettori.net/post/293/

-- 2. SL専用のダウンロードモジュールをインストールする ターミナルを立ち上げて以下のコマンドを実行する

$ npm install -g sl-get-static-html

-- 3. 任意のディレクトリに移動し、以下のコマンドを実行する

$ cd ***** $ sl-get-static-html

-- 4. 以下の結果が出力されることを確認する

$ Error: Arguments are invalid. $ Usage: sl-static-page-converter [CONFIG JSON PATH]

-- 5. config.json を配置したディレクトリで以下のコマンドを実行する

$ sl-get-static-html config.json

-- 6. 以下のような情報が表示されることを確認し、ダウンロードを開始する場合は y を入力する

$Configuration is loaded. $ - User ID : テストサーバユーザID $ - User Password : テストサーバパスワード $ - Source Root : http://test.brh.co.jp $ - Deploy Root : http://brh.co.jp $ - ダウンロードHTML数 rules are found $ $ Are you sure you want to continue? (y/n)

-- 7. 以下のような表示とともにファイルがダウンロードされる

$ fetch... http://test.brh.co.jp/s_library/interview/91/ $ 60 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/90/ $ 44 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/89/ $ 39 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/88/ $ 111 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/87/ $ 69 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/86/ $ 63 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/85/ $ 61 assets are found. $ fetch... http://test.brh.co.jp/s_library/interview/84/ $ 56 assets are found. $ Finished!

-- 8. FTPソフトで本番サーバにログインし、ダウンロードしたファイルをアップロードする

アップロード先 : /html/s_library/interview/記事番号ディレクトリ アップロード先 : /html/s_library/interview/asset アップロード先 : /html/s_library/interview/latest アップロード先 : /html/s_library/interview/index.html

-- 9. FTPソフトでテストサーバと本番サーバにログインし、JSONファイルをコピーする (テストサーバ : コピー元)/virtual/test/s_library/wp/wp-content/themes/scientist-library/static/index/json/data.json (本番サーバ : コピー先) /html/s_library/wp/wp-content/themes/scientist-library/static/index/json/data.json

-- 昭和機電サイドの更新

themeディレクトリからアップロード(3Dコンテンツ) /html/s_library/wp/wp-content/themes/scientist-library/static/index/texture/thumbnail-sl-frame-l /html/s_library/wp/wp-content/themes/scientist-library/static/index/texture/thumbnail-sl-frame-s /html/s_library/wp/wp-content/themes/scientist-library/static/index/texture/thumbnail-talk-frame-l /html/s_library/wp/wp-content/themes/scientist-library/static/index/texture/thumbnail-talk-frame-s

themeディレクトリからアップロード(詳細画面) /html/s_library/wp/wp-content/themes/scientist-library/image/index/index_exhibition_detail_photo_sl /html/s_library/wp/wp-content/themes/scientist-library/image/index/index_exhibition_detail_photo_talk

themeディレクトリからアップロード(展示コンテンツ) /html/s_library/wp/wp-content/themes/scientist-library/image/index/index_exhibition_detail_annual_book /html/s_library/wp/wp-content/themes/scientist-library/image/index/index_exhibition_detail_photo_sl /html/s_library/wp/wp-content/themes/scientist-library/image/index/index_exhibition_detail_photo_talk

その他のカテゴリ更新時 themeディレクトリからアップロード /html/s_library/wp/wp-content/themes/scientist-library/script/index.js

ダウンロードしたファイルからアップロード /html/s_library/wp/wp-content/uploads