Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2680a4

Browse files
chore(package): update babel to v7
Update `jest` devDependency to `^24.1.0` Add `@babel-cli`, `@babel/plugin-proposal-object-rest-spread`, `@babel/plugin-transform-runtime` and `@babel/preset-env` devDependencies Remove `babel-cli`, `babel-plugin-transform-decorators-legacy`, `babel-plugin-transform-object-rest-spread`, `babel-plugin-transform-runtime` and `babel-preset-env` devDependencies Remove `needlepoint` dependency
1 parent 41c450e commit e2680a4

File tree

3 files changed

+551
-1210
lines changed

3 files changed

+551
-1210
lines changed

‎package.json

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"lint": "eslint --ignore-path .gitignore --fix \"**/*.js\"",
1111
"test": "cross-env NODE_ENV=test DEBUG=nuxt:netlify-cms jest --runInBand --forceExit",
1212
"pretest": "yarn lint",
13-
"build": "babel --ignore /__tests__/,/__mocks__/ -d ./dist ./src",
14-
"watch": "babel -w --ignore /__tests__/,/__mocks__/ -d ./dist ./src",
13+
"build": "babel --ignore src/**/__tests__/,src/**/__mocks__/ -d ./dist ./src",
14+
"watch": "babel -w --ignore src/**/__tests__/,src/**/__mocks__/ -d ./dist ./src",
1515
"release": "standard-version; git push --follow-tags",
1616
"prepare": "yarn build"
1717
},
@@ -23,20 +23,18 @@
2323
"@nuxt/friendly-errors-webpack-plugin": "^2.4.0",
2424
"extract-css-chunks-webpack-plugin": "^3.3.2",
2525
"js-yaml": "^3.10.0",
26-
"needlepoint": "^1.0.5",
2726
"style-loader": "^0.23.0"
2827
},
2928
"peerDependencies": {
3029
"netlify-cms": ">=0.4.0"
3130
},
3231
"devDependencies": {
32+
"@babel/cli": "^7.2.3",
33+
"@babel/plugin-proposal-object-rest-spread": "^7.3.2",
34+
"@babel/plugin-transform-runtime": "^7.2.0",
35+
"@babel/preset-env": "^7.3.1",
3336
"@nuxt/common": "^2.3.4",
34-
"babel-cli": "^6.26.0",
3537
"babel-eslint": "^10.0.1",
36-
"babel-plugin-transform-decorators-legacy": "^1.3.4",
37-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
38-
"babel-plugin-transform-runtime": "^6.23.0",
39-
"babel-preset-env": "^1.6.0",
4038
"codecov": "^3.0.0",
4139
"cross-env": "^5.0.5",
4240
"eslint": "^5.0.1",
@@ -47,7 +45,7 @@
4745
"eslint-plugin-jest": "^22.0.0",
4846
"git-exec-and-restage": "^1.0.1",
4947
"husky": "^1.1.3",
50-
"jest": "^23.5.0",
48+
"jest": "^24.1.0",
5149
"koa": "^2.3.0",
5250
"koa-static": "^5.0.0",
5351
"lint-staged": "^8.0.4",
@@ -68,16 +66,15 @@
6866
]
6967
},
7068
"babel": {
71-
"presets": "babel-preset-env",
69+
"presets": ["@babel/preset-env"],
7270
"plugins": [
73-
"transform-runtime",
71+
"@babel/plugin-transform-runtime",
7472
[
75-
"transform-object-rest-spread",
73+
"@babel/plugin-proposal-object-rest-spread",
7674
{
7775
"useBuiltIns": true
7876
}
79-
],
80-
"transform-decorators-legacy"
77+
]
8178
],
8279
"env": {
8380
"test": {

‎src/utils/cms.config.file.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
import { singleton } from "needlepoint";
2-
31
import { loadYAMLFile } from "./yaml";
42

5-
@singleton
63
class CmsConfig {
74
constructor(fileName) {
85
this._fileName = fileName;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /