docstr: Copy JS bundle from top-level JS module to pydeck widget's `static/` folder.
  Overwrites destination files
docstr_tok: ["Copy","JS","bundle","from","top-level","JS","module","to","pydeck","widget","'s","`","static\/","`","folder",".","Overwrites","destination","files"]
code: def copy_frontend_build(self):
      """Copy JS bundle from top-level JS module to pydeck widget's `static/` folder.
      Overwrites destination files"""
      js_dist_dir = os.path.join(widget_dir, "dist")
      nbextension_folder = os.path.join(
          here, "pydeck", "nbextension", "static"
      )
      js_files = [
          {
              "source": os.path.join(js_dist_dir, "index.js"),
              "destination": nbextension_folder,
          },
          {
              "source": os.path.join(js_dist_dir, "index.js.map"),
              "destination": nbextension_folder,
          },
      ]
      for js_file in js_files:
          log.debug(
              "Copying %s to %s"
              % (js_file["source"], js_file["destination"])
          )
          copy(js_file["source"], js_file["destination"])
  
imports: from __future__ import print_function
  from distutils.command.install import install
  from setuptools import setup, find_packages, Command
  from setuptools.command.sdist import sdist
  from setuptools.command.build_py import build_py
  from setuptools.command.egg_info import egg_info
  from setuptools.command.develop import develop
  import atexit
  from distutils import log
  import os
  from shutil import copy
  from subprocess import check_call, check_output
  import sys
label_desc: Use image node_id 5 for calling the FrontendBuild obj's underlying member method code with example usage: obj.copy_frontend_build() without return types