1
0
Fork 0
mirror of https://gitlab.com/bramw/baserow.git synced 2025-04-07 22:35:36 +00:00

Update plugin boilerplate frontent deps

This commit is contained in:
Petr Stribny 2023-04-27 11:35:35 +02:00
parent f2bc3ce901
commit 349b66bc93
10 changed files with 55 additions and 44 deletions
changelog/entries/unreleased/refactor
deploy/all-in-one
plugin-boilerplate/{{ cookiecutter.project_slug }}/plugins/{{ cookiecutter.project_module }}/web-frontend

View file

@ -0,0 +1,7 @@
{
"type": "refactor",
"message": "Update frontend dependencies for plugin boilerplate",
"issue_number": 1705,
"bullet_points": [],
"created_at": "2023-04-27"
}

View file

@ -61,7 +61,7 @@ RUN apt-get update && \
# ========================
# Install Node and Yarn
# ========================
curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
curl -fsSL https://deb.nodesource.com/setup_18.x | bash - && \
apt-get install --no-install-recommends -y nodejs && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* && \

View file

@ -1,4 +1,3 @@
// Please keep in sync with the premium/enterprise eslintrc.js
module.exports = {
root: true,
env: {
@ -10,7 +9,7 @@ module.exports = {
jasmine: true,
},
parserOptions: {
parser: 'babel-eslint',
parser: '@babel/eslint-parser',
},
extends: [
'@nuxtjs',

View file

@ -12,6 +12,6 @@ lint: eslint stylelint
lint-javascript: lint
jest:
npx jest || exit;
npx jest --passWithNoTests || exit;
test: jest

View file

@ -1,9 +1,12 @@
import path from 'path'
import {routes} from './routes'
import { routes } from './routes'
export default function () {
this.options.alias['@{{ cookiecutter.project_slug }}'] = path.resolve(__dirname, './')
this.options.alias['@{{ cookiecutter.project_slug }}'] = path.resolve(
__dirname,
'./'
)
this.extendRoutes((configRoutes) => {
configRoutes.push(...routes)
})

View file

@ -1,13 +1,13 @@
<template>
<div>
Starting example!
</div>
<div>Starting example!</div>
</template>
<script>
export default {
async asyncData({app}) {
const response = await app.$client.get('{{ cookiecutter.project_module }}/starting/')
async asyncData({ app }) {
const response = await app.$client.get(
'{{ cookiecutter.project_module }}/starting/'
)
return response.data
},
head() {
@ -16,4 +16,4 @@ export default {
}
},
}
</script>
</script>

View file

@ -1,4 +1,4 @@
import {PluginNamePlugin} from '@{{ cookiecutter.project_slug }}/plugins'
import { PluginNamePlugin } from '@{{ cookiecutter.project_slug }}/plugins'
export default (context) => {
const { app } = context

View file

@ -1,4 +1,4 @@
import {BaserowPlugin} from '@baserow/modules/core/plugins'
import { BaserowPlugin } from '@baserow/modules/core/plugins'
export class PluginNamePlugin extends BaserowPlugin {
static getType() {

View file

@ -1,9 +1,9 @@
import path from 'path'
export const routes = [
{
name: 'starting',
path: '/starting',
component: path.resolve(__dirname, 'pages/starting.vue'),
},
{
name: 'starting',
path: '/starting',
component: path.resolve(__dirname, 'pages/starting.vue'),
},
]

View file

@ -15,39 +15,41 @@
},
"dependencies": {
"baserow": "link:/baserow/web-frontend",
"node-fetch-native": "1.0.2"
"node-fetch-native": "1.1.0"
},
"devDependencies": {
"@nuxtjs/eslint-config": "^6.0.1",
"@vue/test-utils": "^1.2.2",
"axios-mock-adapter": "^1.20.0",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^10.0.1",
"babel-jest": "^26.6.3",
"eslint": "^7.31.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": ">=16.0.3",
"@babel/core": "7.21.4",
"@babel/eslint-parser": "7.21.3",
"@babel/preset-env": "^7.21.4",
"@nuxtjs/eslint-config": "12.0.0",
"@vue/test-utils": "1.3.4",
"@vue/vue2-jest": "29.2.3",
"axios-mock-adapter": "1.21.4",
"babel-jest": "29.5.0",
"eslint": "8.37.0",
"eslint-config-prettier": "8.8.0",
"eslint-config-standard": "17.0.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": ">=2.23.4",
"eslint-plugin-jest": ">=24.4.0",
"eslint-plugin-import": "2.27.5",
"eslint-plugin-jest": "27.2.1",
"eslint-plugin-node": ">=8.0.1",
"eslint-plugin-nuxt": ">=0.4.2",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": ">=5.1.0",
"eslint-plugin-nuxt": "4.0.0",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-standard": ">=4.0.0",
"eslint-plugin-vue": "^7.14.0",
"eslint-plugin-vue": "9.10.0",
"flush-promises": "^1.0.2",
"jest": "^26.6.3",
"jest-junit": "^13.0.0",
"jest-serializer-vue": "^2.0.2",
"jsdom": "^16.6.0",
"jest": "29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-junit": "15.0.0",
"jest-serializer-vue": "3.1.0",
"jsdom": "21.1.1",
"jsdom-global": "^3.0.2",
"node-mocks-http": "^1.7.6",
"nodemon": "^2.0.12",
"prettier": "^2.3.2",
"node-mocks-http": "1.12.2",
"nodemon": "2.0.22",
"prettier": "2.8.7",
"stylelint": "^13.13.1",
"stylelint-config-standard": "^22.0.0",
"stylelint-webpack-plugin": "^3.0.1",
"vue-jest": "^3.0.3"
"stylelint-webpack-plugin": "^3.0.1"
}
}