Coder Social home page Coder Social logo

frontend-legacy-replace's Introduction

レガシーフロントエンド安全改善ガイド サンプルコード

書籍「レガシーフロントエンド安全改善ガイド」内の「実践編」で利用するサンプルコードリポジトリです。

ブランチの意味

本リポジトリのブランチは次のように対応しています。

  • master : 改善前のレガシーコード
  • after : 改善後のコード

after ブランチのコミットログが章毎の実践編の対応後コードと対応しています。
https://github.com/mugi-uno/anzen-kaizen-guide/commits/after

ライブラリのバージョン差異に関して

書籍内ではライブラリのインストール時にバージョン指定がないため、基本的に最新版がインストールされます。 ただし、一部のライブラリに関しては、執筆時から更新されており期待通り動作しない恐れがあります。 例として、puppeteer のメジャーバージョン差異でビジュアルテストが失敗するケースを確認しております。

問題が発生した際には、次の手順を参考にバージョンを指定した再インストールをお試しください。 なお以下に掲載しているものは puppeteer を再インストールする例です。適宜ライブラリ名を置き換えてください。

1. 指定ライブラリをアンインストール

npm uninstall puppeteer

2. サンプルコードでの該当ライブラリのバージョンを確認

サンプルコード上のpackage.jsonの内容を確認
https://github.com/mugi-uno/anzen-kaizen-guide/blob/after/package.json

...
puppeteer": "^1.16.0",
...

→ バージョンは ^1.16.0

3. バージョンを指定してインストール

npm install -D puppeteer@^1.16.0

正誤表

(誤りがあった場合はここに記載されます。)

frontend-legacy-replace's People

Contributors

mugi-uno avatar yoshi0701 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.