tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

vendor.js (1565B)


      1 #!/usr/bin/env node
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 /* eslint-disable no-console */
      7 
      8 const { cp, set } = require("shelljs");
      9 const path = require("path");
     10 
     11 const filesToVendor = {
     12  // XXX currently these two licenses are identical.  Perhaps we should check
     13  // in case that changes at some point in the future.
     14  "react/LICENSE": "REACT_AND_REACT_DOM_LICENSE",
     15  "react/umd/react.production.min.js": "react.js",
     16  "react/umd/react.development.js": "react-dev.js",
     17  "react-dom/umd/react-dom.production.min.js": "react-dom.js",
     18  "react-dom/umd/react-dom.development.js": "react-dom-dev.js",
     19  "react-dom/umd/react-dom-server.browser.production.min.js":
     20    "react-dom-server.js",
     21  "react-redux/LICENSE.md": "REACT_REDUX_LICENSE",
     22  "react-redux/dist/react-redux.min.js": "react-redux.js",
     23  "react-transition-group/dist/react-transition-group.min.js":
     24    "react-transition-group.js",
     25  "react-transition-group/LICENSE": "REACT_TRANSITION_GROUP_LICENSE",
     26 };
     27 
     28 set("-v"); // Echo all the copy commands so the user can see what's going on
     29 for (let srcPath of Object.keys(filesToVendor)) {
     30  cp(
     31    path.join("node_modules", srcPath),
     32    path.join("../../../toolkit/content/vendor/react", filesToVendor[srcPath])
     33  );
     34 }
     35 
     36 console.log(`
     37 Check to see if any license files have changed, and, if so, be sure to update
     38 https://searchfox.org/mozilla-central/source/toolkit/content/license.html`);