Skip to content

Commit b99089d

Browse files
committed
chore(core): update some node dependencies
1 parent 73a65f3 commit b99089d

File tree

10 files changed

+495
-555
lines changed

10 files changed

+495
-555
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ cache:
88
- "node_modules"
99

1010
install:
11-
- yarn run install-dependencies
11+
- yarn install
1212

1313
script:
1414
# Test Statusfy

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ install:
1212
# Get the latest stable version of Node.js
1313
- ps: Install-Product node $env:nodejs_version
1414
# install modules
15-
- yarn run install-dependencies
15+
- yarn install
1616

1717
# Post-install test scripts.
1818
test_script:

jest.config.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,20 @@ module.exports = {
1212
testURL: 'http://localhost/',
1313
moduleFileExtensions: [
1414
'js',
15-
'vue'
15+
'vue',
16+
'json'
1617
],
1718
moduleNameMapper: {
1819
'^@/markdown/(.*)$': '<rootDir>/packages/@statusfy/markdown/$1',
1920
'^@/core/(.*)$': '<rootDir>/packages/@statusfy/core/$1',
2021
'^@/common/(.*)$': '<rootDir>/packages/@statusfy/common/$1'
2122
},
2223
transform: {
23-
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
24-
'.*\\.(vue)$': '<rootDir>/node_modules/vue-jest'
24+
'^.+\\.js$': 'babel-jest',
25+
'.*\\.(vue)$': 'vue-jest'
2526
},
2627
snapshotSerializers: [
27-
'<rootDir>/node_modules/jest-serializer-vue'
28+
'jest-serializer-vue'
2829
],
2930
globals: {
3031
'vue-jest': {

package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"update-readme": "cp -f README.md ./packages/statusfy/",
3737
"update-version": "lerna publish --skip-git --skip-npm --force-publish '*'",
3838
"pre-release": "yarn run update-readme && yarn run update-version",
39-
"install-dependencies": "yarn install && lerna bootstrap",
39+
"postinstall": "lerna bootstrap",
4040
"docs:dev": "yarn workspace statusfy-docs dev",
4141
"docs:build": "yarn workspace statusfy-docs build",
4242
"demo:build": "cross-env STATUSFY_LERNA=true yarn workspace statusfy-demo build",
@@ -52,7 +52,7 @@
5252
"@commitlint/config-conventional": "^7.1.2",
5353
"babel-core": "^7.0.0-bridge.0",
5454
"babel-eslint": "^10.0.1",
55-
"babel-jest": "^23.6.0",
55+
"babel-jest": "^24.1.0",
5656
"conventional-changelog-cli": "^2.0.12",
5757
"cross-env": "^5.2.0",
5858
"eslint": "^5.6.1",
@@ -61,13 +61,13 @@
6161
"eslint-plugin-vue": "^5.2.0",
6262
"glob-promise": "^3.4.0",
6363
"husky": "^1.2.0",
64-
"jest": "^23.6.0",
64+
"jest": "^24.1.0",
6565
"jest-serializer-vue": "^2.0.2",
6666
"lerna": "^3.4.3",
6767
"less": "^3.8.1",
6868
"less-loader": "^4.1.0",
6969
"node-sass": "^4.10.0",
70-
"regenerator-runtime": "~0.12.1",
70+
"regenerator-runtime": "~0.13.1",
7171
"sass-loader": "^7.1.0",
7272
"stylus": "^0.54.5",
7373
"stylus-loader": "^3.0.2",

packages/@statusfy/core/lib/content/database.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const statP = promisify(stat)
1616
const readFileP = promisify(readFile)
1717

1818
const md = createMarkdown()
19-
const cache = LRU({
19+
const cache = new LRU({
2020
max: 1000,
2121
maxAge: process.env.NODE_ENV !== 'development' ? 1000 * 60 * 60 : 1
2222
})

packages/@statusfy/core/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"lodash.get": "^4.4.2",
5858
"lodash.isstring": "^4.0.1",
5959
"lodash.sortby": "^4.7.0",
60-
"lru-cache": "4.1.x",
60+
"lru-cache": "5.1.1",
6161
"moment": "^2.22.2",
6262
"moment-range": "^4.0.1",
6363
"nodemon": "^1.18.4",
@@ -80,7 +80,7 @@
8080
"babel-core": "^7.0.0-0",
8181
"eslint-config-standard": "^12.0.0",
8282
"eslint-plugin-import": "^2.14.0",
83-
"eslint-plugin-node": "^7.0.1",
83+
"eslint-plugin-node": "^8.0.1",
8484
"eslint-plugin-promise": "^4.0.1",
8585
"eslint-plugin-standard": "^4.0.0",
8686
"stylelint-config-prettier": "^4.0.0",

packages/docs/src/contributing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If you intend to add a new feature, we recommend filing [an issue][github-issues
4444
Install [Node.js][node] (8.1 or higher) and [Yarn][yarn]. It's also recommended to install [Lerna][lerna] globally.
4545

4646
1. Clone this repository: [https://github.com/bazzite/statusfy][repo].
47-
2. Run `yarn install-dependencies` to install the dependencies.
47+
2. Run `yarn install` to install the dependencies.
4848

4949
::: tip TIP
5050
To use **@statusfy/cli** in the repo as a global command. Enter the `./packages/@statusfy/cli` folder and run `npm link`.

packages/docs/src/es/contributing/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Si deseas agregar una nueva funcionalidad, te recomendamos que abras un [issue][
4444
Installa [Node.js][node] (8.1 o superior) y [Yarn][yarn]. También se recomienda instalar [Lerna][lerna] a nivel global.
4545

4646
1. Clona este repositorio: [https://github.com/bazzite/statusfy][repo].
47-
2. Ejecuta `yarn install-dependencies` para instalar las dependencias..
47+
2. Ejecuta `yarn install` para instalar las dependencias..
4848

4949
::: tip
5050
Para usar **@statusfy/cli** en el repositorio como un comando global. Ingresa a la carpeta `./packages/@statusfy/cli` y ejecuta `npm link`.

packages/website/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
},
4141
"devDependencies": {
4242
"babel-eslint": "^10.0.1",
43-
"eslint-config-prettier": "^3.1.0",
43+
"eslint-config-prettier": "^4.0.0",
4444
"eslint-plugin-prettier": "^3.0.0",
4545
"lodash.pick": "^4.4.0",
4646
"prettier": "1.14.3"

0 commit comments

Comments
 (0)