Skip to content

Commit 219d669

Browse files
Merge pull request #55 from offset-dev/develop
V1
2 parents 34894d2 + df7ce47 commit 219d669

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+23628
-7115
lines changed

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[{package.json,*.yml}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist

.eslintrc

Lines changed: 0 additions & 11 deletions
This file was deleted.

.github/workflows/lint.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,20 @@ jobs:
88
publish:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v3
11+
- uses: actions/checkout@v4
1212
- name: Use Node.js/18
13-
uses: actions/setup-node@v1
13+
uses: actions/setup-node@v4
1414
with:
1515
node-version: 18
16-
- name: Get yarn cache directory path
17-
id: yarn-cache-dir-path
18-
run: echo "::set-output name=dir::$(yarn cache dir)"
19-
- uses: actions/cache@v2
20-
id: yarn-cache
21-
with:
22-
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
23-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
24-
restore-keys: |
25-
${{ runner.os }}-yarn-
2616
- name: install dependencies
27-
run: yarn
28-
- name: lint
29-
run: yarn lint
17+
run: npm i
18+
- name: prettier
19+
run: npm run prettier
20+
- name: build
21+
run: npm run build
22+
- name: verify
23+
run: npm run verify
24+
3025
- uses: JS-DevTools/npm-publish@v1
3126
with:
3227
token: ${{ secrets.NPM_TOKEN }}

.github/workflows/verify.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: verify
2+
on:
3+
- pull_request
4+
5+
jobs:
6+
verify:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Use Node.js/18
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: 18
14+
- name: install dependencies
15+
run: npm i
16+
- name: prettier
17+
run: npm run prettier
18+
- name: build
19+
run: npm run build
20+
- name: verify
21+
run: npm run verify

.gitignore

Lines changed: 34 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
13
############################
24
# OS X
35
############################
@@ -80,9 +82,27 @@ $RECYCLE.BIN/
8082
ssl
8183
.idea
8284
nbproject
85+
.tsbuildinfo
86+
.eslintcache
87+
.env
88+
89+
90+
############################
91+
# Strapi
92+
############################
93+
8394
public/uploads/*
8495
!public/uploads/.gitkeep
8596

97+
98+
############################
99+
# Build
100+
############################
101+
102+
dist
103+
build
104+
105+
86106
############################
87107
# Node.js
88108
############################
@@ -95,20 +115,24 @@ results
95115
node_modules
96116
.node_history
97117

118+
98119
############################
99-
# Tests
120+
# Package managers
100121
############################
101122

102-
testApp
103-
coverage
123+
.yarn/*
124+
!.yarn/cache
125+
!.yarn/unplugged
126+
!.yarn/patches
127+
!.yarn/releases
128+
!.yarn/sdks
129+
!.yarn/versions
130+
.pnp.*
131+
yarn-error.log
132+
104133

105134
############################
106-
# Strapi
135+
# Tests
107136
############################
108137

109-
.env
110-
license.txt
111-
exports
112-
*.cache
113-
build
114-
.strapi-updater.json
138+
coverage

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
coverage

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"endOfLine": "lf",
3+
"tabWidth": 2,
4+
"printWidth": 100,
5+
"singleQuote": true,
6+
"trailingComma": "es5"
7+
}

.prettierrc.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)