@cocreate/selection 1.6.10 → 1.6.12
Sign up to get free protection for your applications and to get access to all the features.
- package/.github/FUNDING.yml +3 -3
- package/.github/workflows/automated.yml +95 -95
- package/.github/workflows/manual.yml +44 -44
- package/CHANGELOG.md +923 -909
- package/CONTRIBUTING.md +96 -96
- package/CoCreate.config.js +26 -26
- package/LICENSE +683 -683
- package/README.md +98 -98
- package/demo/index.html +20 -22
- package/docs/index.html +278 -102
- package/package.json +66 -66
- package/release.config.js +21 -21
- package/src/index.js +448 -448
- package/webpack.config.js +84 -84
package/.github/FUNDING.yml
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
# These are supported funding model platforms
|
2
|
-
|
3
|
-
github: CoCreate-app
|
1
|
+
# These are supported funding model platforms
|
2
|
+
|
3
|
+
github: CoCreate-app
|
@@ -1,95 +1,95 @@
|
|
1
|
-
name: Automated
|
2
|
-
"on":
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
jobs:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
1
|
+
name: Automated
|
2
|
+
"on":
|
3
|
+
push:
|
4
|
+
branches:
|
5
|
+
- master
|
6
|
+
jobs:
|
7
|
+
about:
|
8
|
+
runs-on: ubuntu-latest
|
9
|
+
steps:
|
10
|
+
- name: Checkout
|
11
|
+
uses: actions/checkout@v3
|
12
|
+
- name: setup nodejs
|
13
|
+
uses: actions/setup-node@v3
|
14
|
+
with:
|
15
|
+
node-version: 16
|
16
|
+
- name: Jaid/action-sync-node-meta
|
17
|
+
uses: jaid/action-sync-node-meta@v1.4.0
|
18
|
+
with:
|
19
|
+
direction: overwrite-github
|
20
|
+
githubToken: "${{ secrets.GITHUB }}"
|
21
|
+
release:
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
steps:
|
24
|
+
- name: Checkout
|
25
|
+
uses: actions/checkout@v3
|
26
|
+
- name: setup nodejs
|
27
|
+
uses: actions/setup-node@v3
|
28
|
+
with:
|
29
|
+
node-version: 14
|
30
|
+
- name: Semantic Release
|
31
|
+
uses: cycjimmy/semantic-release-action@v3
|
32
|
+
id: semantic
|
33
|
+
with:
|
34
|
+
extra_plugins: |
|
35
|
+
@semantic-release/changelog
|
36
|
+
@semantic-release/git
|
37
|
+
@semantic-release/github
|
38
|
+
env:
|
39
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
40
|
+
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
41
|
+
outputs:
|
42
|
+
new_release_published: "${{ steps.semantic.outputs.new_release_published }}"
|
43
|
+
new_release_version: "${{ steps.semantic.outputs.new_release_version }}"
|
44
|
+
cdn:
|
45
|
+
runs-on: ubuntu-latest
|
46
|
+
needs: release
|
47
|
+
if: needs.release.outputs.new_release_published == 'true'
|
48
|
+
env:
|
49
|
+
VERSION: "${{ needs.release.outputs.new_release_version }}"
|
50
|
+
steps:
|
51
|
+
- name: Checkout
|
52
|
+
uses: actions/checkout@v3
|
53
|
+
- name: setup nodejs
|
54
|
+
uses: actions/setup-node@v3
|
55
|
+
with:
|
56
|
+
node-version: 16
|
57
|
+
- name: yarn install
|
58
|
+
run: >
|
59
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
|
60
|
+
.npmrc
|
61
|
+
|
62
|
+
yarn install
|
63
|
+
- name: yarn build
|
64
|
+
run: yarn build
|
65
|
+
- name: upload bundle as version
|
66
|
+
uses: CoCreate-app/CoCreate-s3@master
|
67
|
+
with:
|
68
|
+
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
|
69
|
+
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
|
70
|
+
bucket: testcrudbucket
|
71
|
+
source: ./dist
|
72
|
+
destination: "/selection/${{env.VERSION}}"
|
73
|
+
acl: public-read
|
74
|
+
- name: upload bundle as latest
|
75
|
+
uses: CoCreate-app/CoCreate-s3@master
|
76
|
+
with:
|
77
|
+
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
|
78
|
+
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
|
79
|
+
bucket: testcrudbucket
|
80
|
+
source: ./dist
|
81
|
+
destination: /selection/latest
|
82
|
+
acl: public-read
|
83
|
+
invalidations: true
|
84
|
+
docs:
|
85
|
+
runs-on: ubuntu-latest
|
86
|
+
steps:
|
87
|
+
- name: Checkout
|
88
|
+
uses: actions/checkout@v3
|
89
|
+
- name: setup nodejs
|
90
|
+
uses: actions/setup-node@v3
|
91
|
+
with:
|
92
|
+
node-version: 16
|
93
|
+
|
94
|
+
- name: update documentation
|
95
|
+
uses: CoCreate-app/CoCreate-docs@master
|
@@ -1,44 +1,44 @@
|
|
1
|
-
name: Manual Workflow
|
2
|
-
on:
|
3
|
-
workflow_dispatch:
|
4
|
-
inputs:
|
5
|
-
invalidations:
|
6
|
-
description: |
|
7
|
-
If set to 'true', invalidates previous upload.
|
8
|
-
default: "true"
|
9
|
-
required: true
|
10
|
-
|
11
|
-
jobs:
|
12
|
-
cdn:
|
13
|
-
runs-on: ubuntu-latest
|
14
|
-
env:
|
15
|
-
DRY_RUN: ${{ github.event.inputs.dry_run }}
|
16
|
-
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
17
|
-
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
18
|
-
|
19
|
-
steps:
|
20
|
-
- name: Checkout
|
21
|
-
uses: actions/checkout@v3
|
22
|
-
- name: setup nodejs
|
23
|
-
uses: actions/setup-node@v3
|
24
|
-
with:
|
25
|
-
node-version: 16
|
26
|
-
- name: yarn install
|
27
|
-
run: >
|
28
|
-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
|
29
|
-
.npmrc
|
30
|
-
|
31
|
-
yarn install
|
32
|
-
- name: yarn build
|
33
|
-
run: yarn build
|
34
|
-
- name: upload latest bundle
|
35
|
-
uses: CoCreate-app/CoCreate-s3@master
|
36
|
-
with:
|
37
|
-
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
|
38
|
-
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
|
39
|
-
distributionId: "${{ secrets.DISTRIBUTION_ID }}"
|
40
|
-
bucket: testcrudbucket
|
41
|
-
source: ./dist
|
42
|
-
destination: /selection/latest
|
43
|
-
acl: public-read
|
44
|
-
invalidations: ${{ github.event.inputs.invalidations }}
|
1
|
+
name: Manual Workflow
|
2
|
+
on:
|
3
|
+
workflow_dispatch:
|
4
|
+
inputs:
|
5
|
+
invalidations:
|
6
|
+
description: |
|
7
|
+
If set to 'true', invalidates previous upload.
|
8
|
+
default: "true"
|
9
|
+
required: true
|
10
|
+
|
11
|
+
jobs:
|
12
|
+
cdn:
|
13
|
+
runs-on: ubuntu-latest
|
14
|
+
env:
|
15
|
+
DRY_RUN: ${{ github.event.inputs.dry_run }}
|
16
|
+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
17
|
+
NPM_TOKEN: "${{ secrets.NPM_TOKEN }}"
|
18
|
+
|
19
|
+
steps:
|
20
|
+
- name: Checkout
|
21
|
+
uses: actions/checkout@v3
|
22
|
+
- name: setup nodejs
|
23
|
+
uses: actions/setup-node@v3
|
24
|
+
with:
|
25
|
+
node-version: 16
|
26
|
+
- name: yarn install
|
27
|
+
run: >
|
28
|
+
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
|
29
|
+
.npmrc
|
30
|
+
|
31
|
+
yarn install
|
32
|
+
- name: yarn build
|
33
|
+
run: yarn build
|
34
|
+
- name: upload latest bundle
|
35
|
+
uses: CoCreate-app/CoCreate-s3@master
|
36
|
+
with:
|
37
|
+
aws-key-id: "${{ secrets.AWSACCESSKEYID }}"
|
38
|
+
aws-access-key: "${{ secrets.AWSSECERTACCESSKEY }}"
|
39
|
+
distributionId: "${{ secrets.DISTRIBUTION_ID }}"
|
40
|
+
bucket: testcrudbucket
|
41
|
+
source: ./dist
|
42
|
+
destination: /selection/latest
|
43
|
+
acl: public-read
|
44
|
+
invalidations: ${{ github.event.inputs.invalidations }}
|