- Adds utilities to use Transifex api v3 for pull, pullAll, push commands. Introduces temporary --v3 argument --version3, --v3 Use Transifex v3 under the hood [boolean] [default: false] to specify that new utilities should be used.
- Removed Retire newrelic integration
- Migrate to github action as CI
-
New feature The babel-loader config used by
mope bundle
now specifies a cache directory that can be used to speed up subsequent builds:~/.cache/babel-loader
. To take advantage of this in CI, make sure you add this directory to the CI cache, e.g. in Travis:cache: - $HOME/.cache/babel-loader
- BREAKING CHANGE Deprecate
mope deploy
, now we are using aws native command for deploy app. - Cleanup GCS references
- Fixed postcss-loader will no longer emit warnings for 'undefined' properties
implicitly loaded in global scope from
@meetup/swarm-constants
. Note that there is a new peer dependency on that package, which is technically a breaking change, but all consumers are already using that package, so it won't require anything other than a dependency version bump.
- BREAKING CHANGE Build artifacts are synched through AWS S3 rather than GCS.
mope build push
is removed in favor of AWS CLI andmope build pull
is updated.
- BREAKING CHANGE
mwp-config
package updated with new Regex path to local mupweb packages which is used in babel-loader config
- New feature
mope trn
now writes package-specific TRNs to package-specific TRN modules directory. Import package-specific TRNs in your code with// /packages/my-cool-package/src/foo/ComponentWithTrns.jsx import trns from 'trns/my-cool-package/foo/ComponentWithTrns';
- BREAKING CHANGE Babel 7 upgrade. mope commands updated:
mope build browser
requires a--babelConfig
option. e.g.mope build browser --babelConfig=./babel.config.js
mope build server
requires a--babelConfig
option. e.g.mope build server --babelConfig=./babel-loader.config.server.js
mope run
requires two new options,--babelConfigBrowser
and--babelConfigServer
e.g.mope run --babelConfigBrowser=./babel.config.js --babelConfigServer=./babel-loader.config.server.js
- Removed unused 'e2e' tests that had a heavy dependency we don't need to maintain
-
New feature
mope build report
- reads from the stats.json output of a webpack build and reports chunk sizes to DataDog. The reported metrics aremwp.bundle.size
(total JS asset size)mwp.bundle.chunk_size
(individual chunk size)
Use the metric tags to filter by chunk name, application (e.g. mup-web or pro-web), and build number
- New feature
mope deploy time track
Sending deploy metrics to Datadog instead of New Relic Insights.
- New feature
mope deploy stop --versionId=...
to stop a specific deployed version in the cloud - this will free resources for deployments that are not expected to receive traffic
- New feature
--force
flag onmope deploy create
will redeploy the build even if the instance is running. Should be used with caution.
-
New feature
mope build trn
will now also write 'pickerLocale' modules that can be imported just like other TRN modules. The values can be passed asdatepickerOptions.locale
params to MWCCalendarComponent
in order to localize the date picker.Import syntax aligns other TRN imports - be sure to key into the
pickerLocale
map using the appropriatelocaleCode
import pickerLocale from 'trns/date/pickerLocale'; ... <CalendarComponent datepickerOptions={{ locale: pickerLocale[localeCode] }} />
-
BREAKING CHANGE
mope deploy create
will no longer migrate traffic to the newly-created deployment. Instead, callmope deploy migrate
as a separate command in order to migrate traffic.Separating these commands allows the deployment to be created before all testing (e.g. e2e testing) has completed, which allows it to be done in parallel with testing.
-
BREAKING CHANGE
mope build
will run any files matchingmain.scss
through PostCSS. Inline loaders should no longer be used onmain.scss
. Expect warnings from PostCSS until we remove unneeded browser prefixesFor example in
cssLinks.js
: this:const baseCSSHref = require('file-loader?name=[name].[hash:7].css!extract-loader!css-loader!sass-loader!../assets/scss/main.scss');
becomes:const baseCSSHref = require('../assets/scss/main.scss');
-
New feature
mope deploy delete
to safely delete a version - useful for cleanup.
- New feature
mope build status
check the status of a Travis build, and optionally auto-cancel if a newer build was started recently
- New feature
mope build push
upload app bundle to cloud storage - New feature
mope build pull
download app bundles from cloud storage as they become available from a standalone build
- BREAKING CHANGE
mope deploy
is nowmope deploy create
- New feature
mope deploy clean
for safely stopping/removing old deployments
- New feature
time
- track start/stop times and send results to New Relic Insights. Docs
-
Refactored
build trn
andrun
will both bundle the app code so that a single bundle supports all languages in development - this makes for a very large app bundle, but that should be fine in dev and it avoids having to hassle with running the app with--locales
options -
New feature
build [server|browser]
will now write a single bundle supporting all languages if the calling application specifiesconfig.combineLanguages: true
in itspackage.json
.
-
Refactored
build trn
now writes JSON as a map of{ [localeCode]: messages }
. Consumer apps must upgrademwp-i18n
to version 12.1 or later in order for translations to continue working. -
New feature
build trn
can also now write a single translation source module for each translated component that contains translations for all supported languages rather than writing separate source modules for each supported language. Setconfig.combineLanguages
totrue
in your app'spackage.json
to enable this build option.
- Removed
src/config
has been moved tomwp-config
package managed by MWP repo
- Oauth values are no longer part of config - they are not used in MWP v10.2+
- Support for
webfont
alias, which will resolve tosrc/assets/fonts
for all languages except Russian, which will resolve tosrc/assets/fonts/ru-RU
. This alias is useful for referencing a separate Cyrillic-supporting webfont.
- Support arbitrary repo owner for
gh status
command - enables status in PRs from forked repos
- Breaking change -
file-loader!
andraw-loader!
will no longer work inline. Webpack config will handle the them based on extension.
- New feature -
mope tx keys
displays list of resources and their keys
- New feature - eslint-loader removed from webpack compile.
- New feature -
mope tx status
to get list of transifex resources and their completion status.
- New feature -
mope gh status
to set PR status. Runmope gh status -h
for more details.
- Potentially breaking change - Default
asset_server.path
updated from/static
to/mu_static
. Downstream consumers will need to update any code that assumes a particularasset_server.path