This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgrade to production Nuxt release (1.4.0) (#71)
* Jump to node 9.8.0 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 * Bump to node-sass 4.7.2 Node 9.8.0 was not happy with previous version lock (4.5.3). * Upgrade to Nuxt 1.4.0 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 * Replace nuxt-helpers/axios with axios module 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 * Drop add package Never used. Mistakenly introduced in ca06ecd as part of #20. * Upgrade packages to latest And satisfy unmet peer dependencies. * Bump app version to 0.2.0
- Loading branch information
Showing
12 changed files
with
3,439 additions
and
1,296 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,22 @@ | ||
module.exports = { | ||
root: true, | ||
parser: 'babel-eslint', | ||
env: { | ||
browser: true, | ||
node: true | ||
}, | ||
extends: 'standard', | ||
parserOptions: { | ||
parser: 'babel-eslint' | ||
}, | ||
extends: [ | ||
'standard', | ||
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention | ||
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules. | ||
'plugin:vue/essential' | ||
], | ||
// required to lint *.vue files | ||
plugins: [ | ||
'html' | ||
'vue' | ||
], | ||
// add your custom rules here | ||
rules: {}, | ||
globals: {} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,3 @@ npm-debug.log | |
|
||
# Nuxt generate | ||
dist | ||
|
||
# Nuxt helpers | ||
.nuxt-helpers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
9.8.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
{ | ||
"name": "signage", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"description": "Cornell University Library - Digital Signage", | ||
"contributors": [ | ||
"Manolo Bevia <[email protected]>", | ||
"Nick Cappadona <[email protected]>" | ||
], | ||
"private": true, | ||
"engines": { | ||
"node": "7.10.0" | ||
"node": "9.8.0" | ||
}, | ||
"dependencies": { | ||
"add": "^2.0.6", | ||
"axios": "^0.16.1", | ||
"@nuxtjs/axios": "^5.1.1", | ||
"jsonp-promise": "^0.1.2", | ||
"lodash": "^4.17.4", | ||
"nuxt": "latest", | ||
"nuxt-helpers": "^0.10.0" | ||
"nuxt": "^1.4.0" | ||
}, | ||
"scripts": { | ||
"dev": "nuxt", | ||
|
@@ -32,16 +30,19 @@ | |
"lint" | ||
], | ||
"devDependencies": { | ||
"babel-eslint": "^7.1.1", | ||
"eslint": "^3.15.0", | ||
"eslint-config-standard": "^6.2.1", | ||
"eslint-loader": "^1.6.1", | ||
"eslint-plugin-html": "^2.0.0", | ||
"babel-eslint": "^8.2.2", | ||
"eslint": "^4.19.0", | ||
"eslint-config-standard": "^11.0.0", | ||
"eslint-loader": "^2.0.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-node": "^6.0.1", | ||
"eslint-plugin-promise": "^3.4.1", | ||
"eslint-plugin-standard": "^2.0.1", | ||
"eslint-plugin-standard": "^3.0.1", | ||
"eslint-plugin-vue": "^4.3.0", | ||
"moment": "^2.18.1", | ||
"node-sass": "^4.5.3", | ||
"pre-commit": "^1.2.2", | ||
"sass-loader": "^6.0.5" | ||
"sass-loader": "^6.0.5", | ||
"webpack": "^4.1.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.