@questwork/q-store-model 0.1.38 → 0.1.40
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.
- package/dist/index.min.cjs +2054 -591
- package/dist/index.min.js +8858 -0
- package/dist/q-store-model.min.js +2054 -591
- package/eslint.config.js +3 -0
- package/package.json +14 -12
- package/.github/workflows/publish.yml +0 -46
package/eslint.config.js
ADDED
package/package.json
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@questwork/q-store-model",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.40",
|
|
4
4
|
"description": "Questwork QStore Model",
|
|
5
|
+
"main": "dist/index.min.js",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"exports": {
|
|
7
8
|
".": {
|
|
8
9
|
"require": "./dist/index.min.cjs",
|
|
9
|
-
"default": "./dist/
|
|
10
|
+
"default": "./dist/index.min.js"
|
|
10
11
|
}
|
|
11
12
|
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"build": "cross-env NODE_ENV=production minimize=false gulp",
|
|
15
|
+
"build:umd": "cross-env NODE_ENV=production minimize=false gulp umd",
|
|
16
|
+
"build:wp": "cross-env NODE_ENV=production minimize=false gulp wp",
|
|
17
|
+
"lint": "eslint --fix .",
|
|
18
|
+
"test:models": "NODE_ENV=test mocha --exit 'lib/models/test.setup.js' 'lib/models/**/*.spec.js'"
|
|
19
|
+
},
|
|
12
20
|
"author": {
|
|
13
21
|
"name": "Questwork Consulting Limited",
|
|
14
22
|
"email": "info@questwork.com",
|
|
@@ -16,18 +24,19 @@
|
|
|
16
24
|
},
|
|
17
25
|
"license": "MIT",
|
|
18
26
|
"dependencies": {
|
|
19
|
-
"@questwork/q-utilities": "^0.1.
|
|
27
|
+
"@questwork/q-utilities": "^0.1.24",
|
|
20
28
|
"lodash": "^4.17.21"
|
|
21
29
|
},
|
|
22
30
|
"devDependencies": {
|
|
23
31
|
"@babel/core": "^7.27.1",
|
|
24
32
|
"@babel/eslint-parser": "^7.27.1",
|
|
33
|
+
"@questwork/q-eslint-config": "^0.1.11",
|
|
25
34
|
"babel-loader": "^8.2.4",
|
|
26
35
|
"babel-plugin-component": "^1.1.1",
|
|
27
36
|
"chai": "^4.3.6",
|
|
28
37
|
"clean-webpack-plugin": "^4.0.0",
|
|
29
38
|
"cross-env": "^7.0.3",
|
|
30
|
-
"eslint": "^9.
|
|
39
|
+
"eslint": "^9.39.2",
|
|
31
40
|
"gulp": "^4.0.2",
|
|
32
41
|
"gulp-rename": "^2.0.0",
|
|
33
42
|
"mocha": "^7.2.0",
|
|
@@ -37,12 +46,5 @@
|
|
|
37
46
|
},
|
|
38
47
|
"engines": {
|
|
39
48
|
"node": ">=10.0.0"
|
|
40
|
-
},
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "cross-env NODE_ENV=production minimize=false gulp",
|
|
43
|
-
"build:umd": "cross-env NODE_ENV=production minimize=false gulp umd",
|
|
44
|
-
"build:wp": "cross-env NODE_ENV=production minimize=false gulp wp",
|
|
45
|
-
"lint": "eslint .",
|
|
46
|
-
"test:models": "NODE_ENV=test mocha --exit 'lib/models/test.setup.js' 'lib/models/**/*.spec.js'"
|
|
47
49
|
}
|
|
48
|
-
}
|
|
50
|
+
}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
name: Publish to npm on Tag
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
tags:
|
|
5
|
-
- 'v*'
|
|
6
|
-
workflow_dispatch:
|
|
7
|
-
jobs:
|
|
8
|
-
publish:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
contents: read
|
|
12
|
-
packages: write
|
|
13
|
-
# environment: production
|
|
14
|
-
steps:
|
|
15
|
-
- uses: actions/checkout@v4
|
|
16
|
-
with:
|
|
17
|
-
fetch-depth: 0 # Needed to get tag information
|
|
18
|
-
|
|
19
|
-
- name: Install pnpm
|
|
20
|
-
uses: pnpm/action-setup@v4
|
|
21
|
-
with:
|
|
22
|
-
version: 9
|
|
23
|
-
|
|
24
|
-
- uses: actions/setup-node@v4
|
|
25
|
-
with:
|
|
26
|
-
node-version: '20.x'
|
|
27
|
-
registry-url: https://registry.npmjs.org/
|
|
28
|
-
cache: 'pnpm'
|
|
29
|
-
|
|
30
|
-
- name: Install dependencies
|
|
31
|
-
run: pnpm install
|
|
32
|
-
|
|
33
|
-
- name: Build
|
|
34
|
-
run: |
|
|
35
|
-
BUILD_COMMAND=$(node -p "(require('./package.json').scripts || {}).build")
|
|
36
|
-
if [ "$BUILD_COMMAND" = "undefined" ]; then
|
|
37
|
-
echo "::notice::Can't find a build script in package.json, skip."
|
|
38
|
-
else
|
|
39
|
-
pnpm run build
|
|
40
|
-
fi
|
|
41
|
-
|
|
42
|
-
- name: Publish to npm
|
|
43
|
-
# if: steps.version-check.outputs.should_publish == 'true'
|
|
44
|
-
run: pnpm publish --no-git-checks --access public
|
|
45
|
-
env:
|
|
46
|
-
NODE_AUTH_TOKEN: ${{ secrets.QW_NPM_TOKEN }}
|