зеркало из https://github.com/nextcloud/cookbook.git
fix: Revert making type module. Fix Jest config, add babel package.
Signed-off-by: Sebastian Fey <info@sebastianfey.de>
This commit is contained in:
Родитель
b098b4a57f
Коммит
308a88105c
|
@ -0,0 +1,3 @@
|
|||
const babelConfig = require('@nextcloud/babel-config');
|
||||
|
||||
module.exports = babelConfig;
|
|
@ -1,10 +1,10 @@
|
|||
// Jest configuration
|
||||
export default {
|
||||
testEnvironment: 'jest-environment-node',
|
||||
|
||||
module.exports = {
|
||||
testEnvironment: 'node',
|
||||
moduleFileExtensions: ['js', 'vue'],
|
||||
transform: {
|
||||
'.*\\.js$': '<rootDir>/node_modules/babel-jest',
|
||||
'.*\\.(vue)$': '<rootDir>/node_modules/@vue/vue2-jest',
|
||||
},
|
||||
transformIgnorePatterns: ['node_modules/(?!variables/.*)'],
|
||||
};
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextcloud/babel-config": "^1.0.0",
|
||||
"@nextcloud/browserslist-config": "^3.0.0",
|
||||
"@nextcloud/stylelint-config": "^2.3.1",
|
||||
"@nextcloud/webpack-vue-config": "^6.0.0",
|
||||
|
@ -537,6 +538,24 @@
|
|||
"@babel/core": "^7.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/plugin-proposal-class-properties": {
|
||||
"version": "7.18.6",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz",
|
||||
"integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==",
|
||||
"deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.",
|
||||
"dev": true,
|
||||
"peer": true,
|
||||
"dependencies": {
|
||||
"@babel/helper-create-class-features-plugin": "^7.18.6",
|
||||
"@babel/helper-plugin-utils": "^7.18.6"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
}
|
||||
},
|
||||
"node_modules/@babel/plugin-proposal-private-property-in-object": {
|
||||
"version": "7.21.0-placeholder-for-preset-env.2",
|
||||
"resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",
|
||||
|
@ -2829,6 +2848,20 @@
|
|||
"npm": "^9.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@nextcloud/babel-config": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/babel-config/-/babel-config-1.0.0.tgz",
|
||||
"integrity": "sha512-olz7sqPD7xMDP2KcYwODtitH37faR/C5jKX1oxXzdDf+s1FRy6OQTC5ZqZR2LHZA6jTUvmwM/xWBPoEB/HPFRw==",
|
||||
"dev": true,
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.13.10",
|
||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
||||
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
||||
"@babel/plugin-transform-modules-commonjs": "^7.13.8",
|
||||
"@babel/plugin-transform-shorthand-properties": "^7.12.13",
|
||||
"@babel/preset-env": "^7.13.12"
|
||||
}
|
||||
},
|
||||
"node_modules/@nextcloud/browser-storage": {
|
||||
"version": "0.3.0",
|
||||
"resolved": "https://registry.npmjs.org/@nextcloud/browser-storage/-/browser-storage-0.3.0.tgz",
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
{
|
||||
"type": "module",
|
||||
"name": "cookbook",
|
||||
"version": "0.11.0",
|
||||
"description": "",
|
||||
|
@ -52,6 +51,7 @@
|
|||
"vuex": "^3.6.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nextcloud/babel-config": "^1.0.0",
|
||||
"@nextcloud/browserslist-config": "^3.0.0",
|
||||
"@nextcloud/stylelint-config": "^2.3.1",
|
||||
"@nextcloud/webpack-vue-config": "^6.0.0",
|
||||
|
|
Загрузка…
Ссылка в новой задаче