Skip to content
This repository has been archived by the owner on May 5, 2022. It is now read-only.

chore(deps-dev): bump eslint-plugin-mocha from 9.0.0 to 10.0.4 #219

Open
wants to merge 16 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
1d1059a
chore(deps-dev): bump eslint from 6.8.0 to 7.0.0 (#168)
dependabot-preview[bot] May 11, 2020
b2eab83
chore(deps-dev): bump eslint-plugin-mocha from 6.3.0 to 7.0.0 (#169)
dependabot-preview[bot] May 18, 2020
93c0397
chore(deps-dev): bump mocha from 7.2.0 to 8.0.1 (#170)
dependabot-preview[bot] Jun 15, 2020
06c2fd9
chore(deps-dev): bump eslint-plugin-mocha from 7.0.1 to 8.0.0 (#171)
dependabot-preview[bot] Aug 10, 2020
38ca49d
chore(deps-dev): bump webpack-cli from 3.3.12 to 4.0.0 (#172)
dependabot-preview[bot] Oct 12, 2020
3086397
chore(deps-dev): bump karma from 5.2.3 to 6.0.1 (#174)
dependabot-preview[bot] Jan 25, 2021
0236784
chore(deps-dev): bump husky from 4.3.8 to 5.0.9 (#175)
dependabot-preview[bot] Feb 15, 2021
9bb24e9
chore(deps-dev): bump husky from 5.2.0 to 6.0.0 (#180)
dependabot-preview[bot] Mar 29, 2021
3ba7e7b
chore(deps-dev): bump eslint-plugin-mocha from 8.2.0 to 9.0.0 (#190)
dependabot-preview[bot] May 31, 2021
dc4c317
chore(deps-dev): bump mocha from 8.4.0 to 9.0.0 (#192)
dependabot-preview[bot] Jun 14, 2021
e401dc7
Upgrade to GitHub-native Dependabot (#186)
dependabot-preview[bot] Jun 28, 2021
8aa5e63
fix: migrate to github actions
cecilia-sanare Jul 1, 2021
4983f0a
chore(deps-dev): bump husky from 6.0.0 to 7.0.0 (#197)
dependabot[bot] Jul 5, 2021
49368f2
chore: add semantic-release config
cecilia-sanare Jul 5, 2021
7cdc763
chore: update ci.yml to point to main
cecilia-sanare Jul 5, 2021
b7ad65e
Merge pull request #4 from arxstudios/1-fix-readme-on-npm
dependabot[bot] May 4, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
last 2 chrome versions
last 2 firefox versions
last 2 edge versions
IE >= 10
Safari >= 7
12 changes: 0 additions & 12 deletions .dependabot/config.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
time: "11:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: webpack
versions:
- 5.24.2
- 5.24.4
- 5.25.1
- 5.27.1
- 5.28.0
- 5.30.0
- 5.31.2
- 5.33.2
120 changes: 120 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
install:
name: Install
runs-on: ubuntu-18.04

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Cache node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node--${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Install Dependencies
run: npm i


browserstack:
name: Browserstack
runs-on: ubuntu-18.04
if: github.ref == 'refs/heads/main'
needs: install

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Restore node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node--${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run Tests
if: github.ref == 'refs/heads/main'
env:
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
run: npm start test.ci

validate:
name: Validate
runs-on: ubuntu-18.04
needs: install

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Restore node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node--${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Run Tests
run: npm start test
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}

release:
name: Release
runs-on: ubuntu-18.04
needs: [browserstack, validate]
if: github.ref == 'refs/heads/main'

steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 14
- name: Restore node modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node--${{ hashFiles('package.json') }}
restore-keys: |
${{ runner.os }}-node-
# Release the Codes!!
- name: Release!
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm start semantic-release
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx remove-lockfiles
1 change: 1 addition & 0 deletions .releaserc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
branches: main
18 changes: 0 additions & 18 deletions .travis.yml

This file was deleted.

17 changes: 7 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@

[![NPM Version][npm-version-image]][npm-url]
[![NPM Downloads][npm-downloads-image]][npm-url]
[![Travis][travis-ci-image]][travis-ci-url]
[![CI Build][github-actions-image]][github-actions-url]
[![Coveralls][coveralls-image]][coveralls-url]

[![semantic-release][semantic-release-image]][semantic-release-url]
[![Greenkeeper badge][greenkeeper-image]][greenkeeper-url]

The simple way to consume HATEOAS enabled REST APIs with AngularJS

Expand Down Expand Up @@ -161,19 +160,17 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

[npm-version-image]: http://img.shields.io/npm/v/salte-angular-hateoas.svg?style=flat
[npm-downloads-image]: http://img.shields.io/npm/dm/salte-angular-hateoas.svg?style=flat

[npm-version-image]: https://img.shields.io/npm/v/salte-angular-hateoas.svg?style=flat
[npm-downloads-image]: https://img.shields.io/npm/dm/salte-angular-hateoas.svg?style=flat
[npm-url]: https://npmjs.org/package/salte-angular-hateoas

[travis-ci-image]: https://img.shields.io/travis/com/salte-io/salte-angular-hateoas/master.svg?style=flat
[travis-ci-url]: https://travis-ci.com/salte-io/salte-angular-hateoas
[github-actions-image]: https://github.com/salte-io/salte-angular-hateoas/actions/workflows/ci.yml/badge.svg?branch=main
[github-actions-url]: https://github.com/salte-io/salte-angular-hateoas/actions/workflows/ci.yml

[coveralls-image]: https://img.shields.io/coveralls/salte-io/salte-angular-hateoas/master.svg
[coveralls-image]: https://img.shields.io/coveralls/salte-io/salte-angular-hateoas/main.svg
[coveralls-url]: https://coveralls.io/github/salte-io/salte-angular-hateoas

[commitizen-image]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/

[semantic-release-url]: https://github.com/semantic-release/semantic-release
[semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg

Expand Down
File renamed without changes.
65 changes: 8 additions & 57 deletions karma.ci.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,64 +2,21 @@ const webpackConfig = require('./webpack.test.config.js');

module.exports = function(config) {
const customLaunchers = {
ChromeBeta: {
base: 'SauceLabs',
browserName: 'chrome',
version: 'beta'
},
Chrome: {
base: 'SauceLabs',
browserName: 'chrome'
},
Firefox: {
base: 'SauceLabs',
browserName: 'firefox'
},
Edge: {
base: 'SauceLabs',
browserName: 'microsoftedge'
},
InternetExplorer11: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '11'
},
InternetExplorer10: {
base: 'SauceLabs',
browserName: 'internet explorer',
version: '10'
},
// TODO: Enable this once https://github.com/karma-runner/karma/issues/3198 is resolved
// Safari10: {
// base: 'SauceLabs',
// browserName: 'safari',
// version: '10'
// },
Safari9: {
base: 'SauceLabs',
browserName: 'safari',
version: '9'
},
Safari8: {
base: 'SauceLabs',
browserName: 'safari',
version: '8'
base: 'BrowserStack',
browser: 'IE',
browser_version: '11',
os: 'Windows',
os_version: '10'
}
// TODO: For some reason Safari 7 gets fails to load
// the test page, every other browser seems to work fine.
// Safari7: {
// base: 'SauceLabs',
// browserName: 'safari',
// platform: 'OS X 10.9',
// version: '7'
// }
};

const karmaConfig = {
basePath: '',

frameworks: [
'mocha'
'mocha',
'webpack'
],

files: [
Expand All @@ -77,7 +34,7 @@ module.exports = function(config) {
stats: 'errors-only'
},

reporters: ['mocha', 'saucelabs'],
reporters: ['mocha', 'BrowserStack'],

mochaReporter: {
showDiff: true
Expand All @@ -89,12 +46,6 @@ module.exports = function(config) {

logLevel: config.LOG_INFO,

sauceLabs: {
testName: 'salte-io/salte-angular-hateoas',
tunnelIdentifier: process.env.TRAVIS_JOB_NUMBER,
startConnect: true
},

customLaunchers: customLaunchers,
browsers: Object.keys(customLaunchers),
captureTimeout: 0,
Expand Down
5 changes: 3 additions & 2 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ webpackConfig.module.rules.push({
test: /\.js$/,
exclude: /tests|node_modules/,
use: {
loader: 'istanbul-instrumenter-loader',
loader: '@jsdevtools/coverage-istanbul-loader',
options: { esModules: true }
}
});
Expand All @@ -14,7 +14,8 @@ module.exports = function(config) {
basePath: '',

frameworks: [
'mocha'
'mocha',
'webpack'
],

files: [
Expand Down
8 changes: 8 additions & 0 deletions local.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@


Thu Jul 01 2021 12:05:15 GMT-0500 (Central Daylight Time) -- [INFO] Started the BrowserStack Binary server on 45691, PID: 54909
Thu Jul 01 2021 12:05:15 GMT-0500 (Central Daylight Time) -- [SUCCESS] You can now access your local server(s) in our remote browser

Thu Jul 01 2021 12:05:17 GMT-0500 (Central Daylight Time) -- Press Ctrl-C to exit


8 changes: 4 additions & 4 deletions package-scripts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ scripts:
tdd:
script: karma start
description: Watches for changes and executes the Test Suite accordingly
sauce:
ci:
script: karma start karma.ci.conf.js
description: Executes the Test Suite on Sauce Labs
description: Executes the Test Suite on BrowserStack
serve:
script: webpack-dev-server --config webpack.server.config.js
description: Starts a server at http://localhost:8080
Expand All @@ -20,10 +20,10 @@ scripts:
script: nps build.dev && nps build.prod
description: Builds both a minified and unminified artifact
dev:
script: webpack --progress --colors --mode development
script: webpack --progress --mode development
description: Builds an unminified artifact
prod:
script: webpack --progress --colors --mode production
script: webpack --progress --mode production
description: Builds a minified artifact
report-coverage:
script: coveralls < coverage/lcov.info
Expand Down
Loading