queueobj 12.0.5 → 12.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
name: GitHub Actions
|
|
2
|
+
run-name: ${{ github.actor }} is testing out GitHub Actions 🚀
|
|
3
|
+
on: [push]
|
|
4
|
+
jobs:
|
|
5
|
+
Explore-GitHub-Actions:
|
|
6
|
+
runs-on: ubuntu-latest
|
|
7
|
+
steps:
|
|
8
|
+
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
|
|
9
|
+
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
|
|
10
|
+
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
|
|
11
|
+
- name: Check out repository code
|
|
12
|
+
uses: actions/checkout@v3
|
|
13
|
+
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
|
|
14
|
+
- run: echo "🖥️ The workflow is now ready to test your code on the runner."
|
|
15
|
+
- name: List files in the repository
|
|
16
|
+
run: |
|
|
17
|
+
ls ${{ github.workspace }}
|
|
18
|
+
- run: echo "🍏 This job's status is ${{ job.status }}."
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
|
|
2
|
+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
|
|
3
|
+
|
|
4
|
+
name: Node.js CI
|
|
5
|
+
|
|
6
|
+
on:
|
|
7
|
+
push:
|
|
8
|
+
branches: [ "master" ]
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "master" ]
|
|
11
|
+
workflow_dispatch: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
build:
|
|
15
|
+
|
|
16
|
+
runs-on: ${{ matrix.os }}
|
|
17
|
+
|
|
18
|
+
defaults:
|
|
19
|
+
run:
|
|
20
|
+
shell: bash
|
|
21
|
+
|
|
22
|
+
strategy:
|
|
23
|
+
matrix:
|
|
24
|
+
os: [ubuntu-latest, windows-latest]
|
|
25
|
+
node-version: [8.x, 10.x, 12.x, 14.x, 16.x, 18.x]
|
|
26
|
+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
|
27
|
+
include:
|
|
28
|
+
- node-version: 8.x
|
|
29
|
+
npm-i: "eslint@6.x eslint-config-airbnb-base@14.x eslint-config-prettier@6.x eslint-plugin-prettier@3.x fs-extra@8.x nyc@14.x tap@14.x"
|
|
30
|
+
|
|
31
|
+
- node-version: 10.x
|
|
32
|
+
npm-i: "eslint@7.x fs-extra@9.x nyc@14.x tap@14.x"
|
|
33
|
+
|
|
34
|
+
- node-version: 12.x
|
|
35
|
+
npm-i: "nyc@14.x tap@14.x"
|
|
36
|
+
|
|
37
|
+
- node-version: 14.x
|
|
38
|
+
npm-i: "nyc@14.x tap@14.x"
|
|
39
|
+
|
|
40
|
+
steps:
|
|
41
|
+
- uses: actions/checkout@v3
|
|
42
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
43
|
+
uses: actions/setup-node@v3
|
|
44
|
+
with:
|
|
45
|
+
node-version: ${{ matrix.node-version }}
|
|
46
|
+
cache: 'npm'
|
|
47
|
+
|
|
48
|
+
- name: Configure npm
|
|
49
|
+
run: npm config set loglevel error
|
|
50
|
+
|
|
51
|
+
- name: Get npm version
|
|
52
|
+
id: npm-version
|
|
53
|
+
run: |
|
|
54
|
+
npm -v
|
|
55
|
+
npmMajorVer=$(npm -v | cut -d. -f1)
|
|
56
|
+
echo "major=$npmMajorVer" >> $GITHUB_OUTPUT
|
|
57
|
+
|
|
58
|
+
- name: Disable prettier on older Node.js (8.x, 10.x, 12.x)
|
|
59
|
+
run: |
|
|
60
|
+
sed -i '/"prettier": "prettier/d' package.json
|
|
61
|
+
if: contains(fromJson('["8.x", "10.x", "12.x"]'), matrix.node-version)
|
|
62
|
+
|
|
63
|
+
- name: Install downgraded modules ${{ matrix.npm-i }}
|
|
64
|
+
run: |
|
|
65
|
+
npm install --save-dev ${{ matrix.npm-i }}
|
|
66
|
+
if [ ${{ steps.npm-version.outputs.major }} -le 5 ]; then
|
|
67
|
+
npm install
|
|
68
|
+
fi
|
|
69
|
+
if: matrix.npm-i != ''
|
|
70
|
+
|
|
71
|
+
- run: npm install
|
|
72
|
+
if: matrix.npm-i == '' && steps.npm-version.outputs.major <= 5
|
|
73
|
+
|
|
74
|
+
- run: npm ci
|
|
75
|
+
if: matrix.npm-i == '' && steps.npm-version.outputs.major > 5
|
|
76
|
+
|
|
77
|
+
- name: List dependencies
|
|
78
|
+
run: npm ls --depth=0 --dev && npm ls --depth=0 --prod
|
|
79
|
+
|
|
80
|
+
- run: npm run build --if-present
|
|
81
|
+
- run: npm test
|
|
82
|
+
- run: npm run test_all
|
|
83
|
+
- run: npm run test_bottom_one
|
package/README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
[](https://www.npmjs.org/package/queueobj)
|
|
2
|
+
[](https://github.com/jman717/queueobj/blob/master/LICENSE)
|
|
3
|
+
[](https://github.com/jman717/queueobj/actions/workflows/github-actions-demo.yml)
|
|
4
|
+
[](https://github.com/jman717/queueobj/actions/workflows/node.js.yml)
|
|
5
|
+
|
|
6
|
+
[](https://nodei.co/npm/queueobj/)
|
|
7
|
+
|
|
1
8
|
Queue javascript objects dynamically then process the queue according to the appender.
|
|
2
9
|
|
|
3
10
|
Included tag appenders:
|
|
@@ -11,11 +18,6 @@ Included tag appenders:
|
|
|
11
18
|
* name - synchronous - queue and process all objects by name.
|
|
12
19
|
* version - synchronous - queue and process all objects by version.
|
|
13
20
|
|
|
14
|
-
Installation
|
|
15
|
-
---------
|
|
16
|
-
|
|
17
|
-
[](https://nodei.co/npm/queueobj/)
|
|
18
|
-
|
|
19
21
|
Mocha Test
|
|
20
22
|
---------
|
|
21
23
|
```
|
package/package.json
CHANGED