Skip to content
This repository has been archived by the owner on Jan 2, 2024. It is now read-only.

Upgrade to production Nuxt release (1.4.0) #71

Merged
merged 7 commits into from
Mar 21, 2018
Merged

Conversation

cappadona
Copy link
Contributor

Update Node and all packages while we're at it.

Use .nvmrc to indicate desired version for now. The `engines` object is
pretty much useless to anything outside of Heroku since it doesn't
enforce a strict requirement.

Investigated using the node package [1] to install a specific version of
the node binary as a requirement, but there's controversy over bloat
factor [2, 3] and it is not yet fully compatible with yarn [4].

[1] https://www.npmjs.com/package/node
[2] https://twitter.com/housecor/status/962347301456015360
[3] https://twitter.com/maybekatz/status/958157474397171712
[4] aredridel/node-bin-gen#44
Node 9.8.0 was not happy with previous version lock (4.5.3).
Previously running pre-production release.

Includes following adjustments:

* Tweak Nuxt config for eslint (passing context)

* Swap in `eslint-plugin-vue` for `eslint-plugin-html` & use it along
  with standard for base rules

* Fix alias for components to align with Nuxt 1.x [1]

* Export state as function for Vuex store, since using modules mode [2]

[1] https://nuxtjs.org/guide/directory-structure#aliases
[2] https://nuxtjs.org/guide/vuex-store#modules-mode
As indicated in initial implementation of fetching data back in 42d0f7e.

Nuxt modules have come a long way in the past year. Basically follow
the documentation [1] to swap out the helper for the module.

The module makes axios widely available across the app:

* plugins
* vuex store
* pages
* middleware
* other modules

But notice this does not include external utility files, which is a
necessity here for `utils/libcal.js`. The workaround was to pass
`this.$axios` from the store to the util as a param. Not sure this will
be the longterm solution since there are ongoing discussions in the
module repo on potential options on better sharing the configured axios
instance with external files.

[1] https://axios.nuxtjs.org
Never used. Mistakenly introduced in ca06ecd as part of #20.
And satisfy unmet peer dependencies.
@cappadona cappadona self-assigned this Mar 20, 2018
@manolobevia
Copy link
Contributor

All good!

Copy link
Contributor

@manolobevia manolobevia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good for merging.

@cappadona cappadona merged commit cd59085 into master Mar 21, 2018
@cappadona cappadona deleted the latest-greatest branch March 21, 2018 21:02
@cappadona cappadona mentioned this pull request Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants