/
githubmirror
/
amphtml
Обзор
Документация
Войти
/
githubmirror
/
amphtml
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
third_party/react-dates/build.sh
14 строк
798 B
Raghu Simha
🏗🚮 Clean up `amphtml` root-level dependencies (#33115)
09 мар 2021, 02:01
Не верифицирован
09 мар 2021, 02:01
24e3d1b
Код
Авторство
О чём код?
#!/bin/sh npm install -g browserify babelify derequire envify prop-types react-addons-shallow-compare react-externs react-with-direction uglifyify browserify \ -t [ babelify --presets [ @babel/preset-env ] ] \ -g [ envify purge --NODE_ENV production ] \ -g uglifyify \ -r prop-types -r preact:react -r preact/compat:react-dom \ -r moment/min/moment-with-locales:moment \ -r react-dates -r react-dates/initialize -r react-dates/constants \ ./third_party/react-dates/index.js | \ node ./third_party/react-dates/scope-require.js | \ derequire > ./third_party/react-dates/bundle.js cp ./node_modules/react-dates/lib/css/_datepicker.css ./third_party/react-dates/ npm uninstall -g browserify babelify derequire envify prop-types react-addons-shallow-compare react-externs react-with-direction uglifyify