Skip to content

Commit

Permalink
Setup ci, update docs homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
ghettovoice committed Jul 1, 2020
1 parent 3d2a2b0 commit 1e529f8
Show file tree
Hide file tree
Showing 48 changed files with 583 additions and 913 deletions.
31 changes: 10 additions & 21 deletions .babelrc.js
@@ -1,10 +1,8 @@
module.exports = function (api) {
api.cache(true)

const presets = [
module.exports = {
presets: [
['@babel/preset-env', { modules: false }],
]
const plugins = [
],
plugins: [
// Stage 0
'@babel/plugin-proposal-function-bind',
// Stage 1
Expand All @@ -13,7 +11,6 @@ module.exports = function (api) {
['@babel/plugin-proposal-optional-chaining', { loose: false }],
['@babel/plugin-proposal-pipeline-operator', { proposal: 'minimal' }],
['@babel/plugin-proposal-nullish-coalescing-operator', { loose: false }],
'@babel/plugin-proposal-do-expressions',
// Stage 2
['@babel/plugin-proposal-decorators', { legacy: true }],
'@babel/plugin-proposal-function-sent',
Expand All @@ -22,23 +19,15 @@ module.exports = function (api) {
'@babel/plugin-proposal-throw-expressions',
// Stage 3
'@babel/plugin-syntax-dynamic-import',
'@babel/plugin-syntax-import-meta',
['@babel/plugin-proposal-class-properties', { loose: false }],
'@babel/plugin-proposal-json-strings',
// Other
['@babel/plugin-transform-runtime', { corejs: 3, helpers: true, regenerator: true, useESModules: true }],
]
const env = {
testing: {
['@babel/plugin-transform-runtime', { useESModules: true }],
],
env: {
test: {
plugins: [
'istanbul',
['istanbul', { useInlineSourceMaps: false }],
],
},
}

return {
presets,
plugins,
env,
}
},
}
80 changes: 40 additions & 40 deletions .eslintrc.js
@@ -1,60 +1,60 @@
process.env.EFF_ABSOLUTE_PATHS = process.env.EFF_ABSOLUTE_PATHS || true

// http://eslint.org/docs/user-guide/configuring
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
ecmaVersion: 2018,
},
env: {
node: true,
browser: true,
es6: true,
node: true,
},
extends: [
'standard',
'plugin:vue/recommended',
'@vue/standard',
],
// required to lint *.vue files
plugins: [
'node',
'import',
'promise',
'vue',
],
// add your custom rules here
parserOptions: {
parser: 'babel-eslint',
},
rules: {
'vue/html-closing-bracket-newline': ['error', {
singleline: 'never',
multiline: 'never',
}],
'vue/html-closing-bracket-newline': [
'error', {
singleline: 'never',
multiline: 'never',
},
],
'vue/require-default-prop': 'off',
'vue/no-async-in-computed-properties': 'off',
// allow paren-less arrow functions
'arrow-parens': ['error', 'as-needed'],
// allow async-await
'generator-star-spacing': ['error', {
before: false,
after: true,
}],
// allow debugger during development
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
'no-console': process.env.NODE_ENV === 'production' ? ['error', { allow: ['error', 'warn'] }] : 'off',
'generator-star-spacing': [
'error', {
before: false,
after: true,
},
],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'comma-dangle': ['error', 'always-multiline'],
'spaced-comment': 'off',
'spaced-comment': 'off', // to allow PURE annotation
},
overrides: [
{
files: ['*.vue'],
files: [
'*.vue',
],
rules: {
indent: 'off',
'vue/script-indent': ['error', 2, {
baseIndent: 1,
switchCase: 1,
}],
'vue/script-indent': [
'error',
2,
{
baseIndent: 1,
switchCase: 1,
},
],
},
},
{
files: [
'**/__tests__/*.{j,t}s?(x)',
'**/tests/unit/**/*.spec.{j,t}s?(x)',
],
env: {
mocha: true,
},
},
],
Expand Down
6 changes: 2 additions & 4 deletions .gitignore
Expand Up @@ -259,10 +259,8 @@ $RECYCLE.BIN/

### App ###
/package-lock.json
/test/e2e/reports
/test/unit/coverage
/tests/e2e/reports
/tests/unit/coverage
/dist
/lib
/dist-docs
/out
/docs/releases
25 changes: 25 additions & 0 deletions .idea/jsonSchemas.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/vuelayers.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .nycrc
@@ -0,0 +1,11 @@
{
"include": [
"src/**/*.{js,vue}"
],
"check-coverage": false,
"per-file": true,
"skip-full": true,
"all": true,
"reporter": ["text-summary"],
"extension": [".vue", ".js"]
}
28 changes: 8 additions & 20 deletions .travis.yml
@@ -1,25 +1,13 @@
dist: trusty
sudo: required
dist: xenial
os: linux
language: node_js
node_js:
- node
addons:
chrome: stable
language: java
jdk:
- oraclejdk8
env:
- NODE_VERSION=8.12.0 DBUS_SESSION_BUS_ADDRESS=/dev/null
services:
- xvfb
cache:
directories:
- node_modules
before_install:
- export CHROME_BIN=chromium-browser
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sleep 3
install:
- nvm install $NODE_VERSION
- nvm use $NODE_VERSION
- npm install -g npm@latest
- npm install
script:
- npm test
- cat test/unit/coverage/lcov.info | node_modules/.bin/coveralls
after_success: npm run coverage
13 changes: 5 additions & 8 deletions README.md
Expand Up @@ -23,14 +23,11 @@ It can display maps with tiled, raster or vector layers loaded from different so

## Versions

**NOTE: you are looking for README file for the upcoming v0.12 version. To see README file for the current v0.11
version switch to the [v0.11.x](https://github.com/ghettovoice/vuelayers/tree/v0.11.x) branch.**

| VueLayers | Branch | Vue | OpenLayers | NPM tag |
|:------------------|:-----------------------------------------------------------------|:---------|:-----------|:----------|
| Current **0.12** | [v0.12.x](https://github.com/ghettovoice/vuelayers/tree/master) | **^2.3** | **^6.0** | `latest` |
| Previous **0.11** | [v0.11.x](https://github.com/ghettovoice/vuelayers/tree/v0.11.x) | **^2.3** | **^5.0** | `v0.11.x` |
| Previous **0.10** | [v0.10.x](https://github.com/ghettovoice/vuelayers/tree/v0.10.x) | **^2.0** | **^4.0** | `v0.10.x` |
| Current **0.12** | [master](https://github.com/ghettovoice/vuelayers/tree/master) | **^2.3** | **^6.0** | `latest` |
| Previous **0.11** | [v0.11.x](https://github.com/ghettovoice/vuelayers/tree/v0.11.x) | **^2.3** | **^5.0** | `0.11.x` |
| Previous **0.10** | [v0.10.x](https://github.com/ghettovoice/vuelayers/tree/v0.10.x) | **^2.0** | **^4.0** | `0.10.x` |

## Links

Expand Down Expand Up @@ -74,10 +71,10 @@ npm start
npm run build

# run unit tests
npm run unit
npm run test:unit

# run e2e tests
npm run e2e
npm run test:e2e

# run all tests
npm test
Expand Down
9 changes: 0 additions & 9 deletions build/dev-client.js

This file was deleted.

77 changes: 0 additions & 77 deletions build/dev-server.js

This file was deleted.

0 comments on commit 1e529f8

Please sign in to comment.