Skip to content

Commit 2fb55a1

Browse files
authored
Merge pull request #1 from appworks-lab/release-next
[WIP] release-next
2 parents 4a74fe6 + c683fad commit 2fb55a1

File tree

104 files changed

+7328
-24734
lines changed

Some content is hidden

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

104 files changed

+7328
-24734
lines changed

.commitlintrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { getCommitlintConfig } = require('@iceworks/spec');
2+
3+
module.exports = getCommitlintConfig('react');

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,9 @@ module.exports = getESLintConfig('react-ts', {
44
rules: {
55
'react/jsx-filename-extension': 0,
66
'@typescript-eslint/explicit-function-return-type': 0,
7+
'react-hooks/exhaustive-deps': 0,
8+
'@iceworks/best-practices/recommend-polyfill': 0,
9+
'import/order': 1,
10+
'no-param-reassign': 0
711
},
812
});

.github/contributing.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Contributing Guide
2+
3+
Hi! We are really excited that you are interested in contributing to Toolkit. Before submitting your contribution, please make sure to take a moment and read through the following guide:
4+
5+
## Repo Setup
6+
7+
```bash
8+
# install deps
9+
$ npm run setup
10+
```
11+
12+
## Development and Debugging
13+
14+
```bash
15+
# watch and start electron
16+
$ npm run start
17+
```
18+
19+
You can also debug the electron app by the following two scripts:
20+
21+
```bash
22+
# watch web and tsc
23+
$ npm run watch
24+
25+
# start electron
26+
$ npm run start:electron
27+
```
28+
29+
## Deploy
30+
31+
```bash
32+
# build the electron
33+
$ npm run package
34+
```

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: ci
2+
3+
on: [push]
4+
5+
jobs:
6+
build-and-lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v1
10+
- name: Set branch name
11+
run: echo >>$GITHUB_ENV BRANCH_NAME=${GITHUB_REF#refs/heads/}
12+
- name: Echo branch name
13+
run: echo ${BRANCH_NAME}
14+
- uses: actions/setup-node@v1
15+
with:
16+
node-version: 12
17+
registry-url: https://registry.npmjs.org/
18+
- name: Install Dependencies
19+
run: npm run setup
20+
- name: Lint
21+
run: npm run lint

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ release/
1414
*.swp
1515
*.dia~
1616
.ice
17-
.vscode
1817

1918
npm-debug.log*
2019
yarn-debug.log*

.husky/.gitignore

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

.husky/commit-msg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx --no-install commitlint --edit $1

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npm run lint

.vscode/launch.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Debug Main Process",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceFolder}",
9+
"runtimeExecutable": "npm",
10+
"args": [
11+
"run",
12+
"start:electron"
13+
],
14+
}
15+
]
16+
}

LICENSE

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
MIT LICENSE
2+
3+
Copyright (c) 2018-present Alibaba Inc.
4+
5+
Permission is hereby granted, free of charge, to any person obtaining
6+
a copy of this software and associated documentation files (the
7+
"Software"), to deal in the Software without restriction, including
8+
without limitation the rights to use, copy, modify, merge, publish,
9+
distribute, sublicense, and/or sell copies of the Software, and to
10+
permit persons to whom the Software is furnished to do so, subject to
11+
the following conditions:
12+
13+
The above copyright notice and this permission notice shall be
14+
included in all copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)