Commit 5d602ac0 authored by Niklas Zantner's avatar Niklas Zantner
Browse files

init

parents
> 1%
last 2 versions
not dead
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
end_of_line = lf
trim_trailing_whitespace = true
insert_final_newline = true
max_line_length = 100
VUE_APP_API=http://localhost:8080/api
NODE_ENV=development
NODE_ENV=development
VUE_APP_API=http://localhost:8080/api
// VUE_APP_API=https://iris.niklaszantner.de/api
NODE_ENV=production
VUE_APP_API=##API_URL##
/build/
/config/
/dist/
/test/unit/coverage/
module.exports = {
root: true,
env: {
node: true,
},
extends: [
'plugin:vue/essential',
'@vue/airbnb',
],
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'max-len': ['error', { code: 180 }],
'no-unused-vars': 'off',
'arrow-parens': 'off',
'no-shadow': 'off',
'implicit-arrow-linebreak': 'off',
'no-param-reassign': 'off',
'no-nested-ternary': 'off',
'import/no-cycle': 'off',
'no-return-assign': 'off',
'object-curly-newline': 'off',
'no-confusing-arrow': 'off',
'no-plusplus': 'off',
},
'extends': [
'plugin:vue/essential',
'@vue/airbnb',
'eslint:recommended',
'@vue/prettier'
]
};
/node_modules/
/dist/
/.idea/
.env
image: docker
services:
- docker:dind
stages:
- deploy
step-deploy-prod:
stage: deploy
script:
- pwd
- ls -la
- rm -rf node_modules
- rm -rf dist
- npm ci
- npm run build
- rm -rf /usr/share/webapps/lynx/client/*
- cp -r ./dist/* /usr/share/webapps/lynx/client/
- cd /usr/share/webapps/lynx/client/js/
- APP_JS=$(ls | grep index | head -n 1)
- API_URL=/api
- echo $APP_JS
- echo $API_URL
- sed -i 's@##API_URL##@'"$API_URL"'@g' $APP_JS
- ls -la
{
"trailingComma": "all",
"tabWidth": 2,
"semi": true,
"singleQuote": true,
"printWidth": 120
}
## Project setup
```
npm install
```
### Compiles and hot-reloads for development
Make sure your server is running on localhost:8080
```
npm run serve
```
### Compiles and minifies for production
```
npm run build
```
### Lints and fixes files
```
npm run lint
```
### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
### PWA Icon generated via
```
npx vue-pwa-asset-generator -a default.png -o vue
```
module.exports = {
presets: ['@vue/cli-plugin-babel/preset'],
};
This diff is collapsed.
{
"name": "client",
"version": "1.0.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve --port 5200",
"build": "vue-cli-service build --mode production",
"lint": "vue-cli-service lint"
},
"dependencies": {
"axios": "^0.19.2",
"chart.js": "^2.9.3",
"core-js": "^3.6.4",
"highlight.js": "^10.2.0",
"lodash": "^4.17.20",
"markdown-it": "^11.0.1",
"material-design-icons-iconfont": "^5.0.1",
"moment": "^2.28.0",
"pdfvuer": "1.6.1",
"register-service-worker": "^1.7.1",
"typeface-jetbrains-mono": "^2.0.0",
"typeface-work-sans": "0.0.72",
"uuid": "^8.3.0",
"vee-validate": "^2.2.15",
"vue": "^2.6.12",
"vue-chartjs": "^3.5.1",
"vue-i18n": "^8.21.1",
"vue-moment": "^4.1.0",
"vue-router": "^3.4.3",
"vuetify": "^2.3.10",
"vuex": "^3.5.1",
"x-data-spreadsheet": "^1.1.7"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^4.5.6",
"@vue/cli-plugin-eslint": "^4.5.6",
"@vue/cli-plugin-pwa": "^4.5.6",
"@vue/cli-plugin-router": "^4.5.6",
"@vue/cli-plugin-vuex": "^4.5.6",
"@vue/cli-service": "^4.5.6",
"@vue/eslint-config-airbnb": "^5.1.0",
"@vue/eslint-config-prettier": "^6.0.0",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.22.0",
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-vue": "^6.2.2",
"git-describe": "^4.0.4",
"less": "^3.12.2",
"less-loader": "^6.2.0",
"node-sass": "^4.12.0",
"prettier": "^1.19.1",
"sass": "^1.26.11",
"sass-loader": "^8.0.2",
"vue-cli-plugin-vuetify": "^2.0.7",
"vue-template-compiler": "^2.6.12",
"vuetify-loader": "^1.6.0",
"worker-plugin": "^4.0.3"
}
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment