diff --git a/.eslintrc b/.eslintrc index ec5c0bfc..d95a3244 100644 --- a/.eslintrc +++ b/.eslintrc @@ -3,24 +3,5 @@ "es6": true, "node": true }, - "extends": "eslint:recommended", - "rules": { - "indent": [ - "error", - 2 - ], - "linebreak-style": [ - "error", - "unix" - ], - "quotes": [ - "error", - "single", - { "avoidEscape": true } - ], - "semi": [ - "error", - "always" - ] - } + "extends": ["eslint:recommended", "plugin:prettier/recommended"] } diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..54e01c7c --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1,3 @@ +# These are supported funding model platforms + +tidelift: npm/sockjs diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 00000000..96f67b3f --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -0,0 +1,32 @@ +name: Node CI + +on: [push] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [10.x, 12.x, 14.x] + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: '2.x' + architecture: 'x64' + - name: Install virtualenv + run: | + pip install virtualenv + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: npm install, build, and test + run: | + npm ci + ./scripts/test.sh + env: + CI: true diff --git a/.npmignore b/.npmignore index 33f36188..67c426ef 100644 --- a/.npmignore +++ b/.npmignore @@ -3,4 +3,5 @@ .eslintignore .nvmrc node_modules +examples *~ diff --git a/.nvmrc b/.nvmrc index 6b351945..e1fcd1ea 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -lts/boron +lts/erbium diff --git a/.prettierrc b/.prettierrc index 5ac85e27..11cd494a 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,5 @@ { "printWidth": 100, - "singleQuote": true + "singleQuote": true, + "trailingComma": "none" } diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cfed9506..00000000 --- a/.travis.yml +++ /dev/null @@ -1,4 +0,0 @@ -dist: trusty -sudo: false -language: node_js -script: ./scripts/test.sh diff --git a/README.md b/README.md index c0ae854b..62554ee2 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # SockJS-node -[![npm version](https://img.shields.io/npm/v/sockjs.svg?style=flat-square)](https://www.npmjs.com/package/sockjs)[![Build Status](https://img.shields.io/travis/sockjs/sockjs-node/master.svg?style=flat-square)](https://travis-ci.org/sockjs/sockjs-node)[![Dependencies](https://img.shields.io/david/sockjs/sockjs-node.svg?style=flat-square)](https://david-dm.org/sockjs/sockjs-node) +[![npm version](https://img.shields.io/npm/v/sockjs.svg?style=flat-square)](https://www.npmjs.com/package/sockjs)[![Dependencies](https://img.shields.io/david/sockjs/sockjs-node.svg?style=flat-square)](https://david-dm.org/sockjs/sockjs-node) -# Supporting SockJS +# SockJS for enterprise -Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools. +Available as part of the Tidelift Subscription. -[Get supported sockjs with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-sockjs?utm_source=npm-sockjs&utm_medium=referral&utm_campaign=readme) +The maintainers of SockJS and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-sockjs?utm_source=npm-sockjs&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) # SockJS family @@ -28,6 +28,7 @@ Work in progress: * [wai-SockJS](https://github.com/Palmik/wai-sockjs) * [SockJS-perl](https://github.com/vti/sockjs-perl) * [SockJS-go](https://github.com/igm/sockjs-go/) + * [actix/sockjs](https://github.com/actix/sockjs) for Rust ⚠️️ **ATTENTION** This is pre-release documentation. The documentation for the latest stable release is at: https://github.com/sockjs/sockjs-node/tree/v0.3.19 ️⚠️ diff --git a/examples/echo/index.html b/examples/echo/index.html index ac2bdc02..afd4185d 100644 --- a/examples/echo/index.html +++ b/examples/echo/index.html @@ -1,6 +1,6 @@ - +