Skip to content

Commit

Permalink
Merge pull request #298 from terwer/dev
Browse files Browse the repository at this point in the history
feat: add picgo core 1.5.6 as electron start version
  • Loading branch information
terwer committed Mar 14, 2024
2 parents 8e47dde + ded32c5 commit badf655
Show file tree
Hide file tree
Showing 98 changed files with 16,480 additions and 314 deletions.
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Expand Up @@ -39,7 +39,7 @@ updates:
- "picgo-core"

- package-ecosystem: npm
directory: "/libs/zhi-picgo-siyuan"
directory: "/libs/Universal-PicGo-Core"
schedule:
interval: daily
time: "00:00"
Expand Down
4 changes: 4 additions & 0 deletions dev.sh
@@ -0,0 +1,4 @@
#/bin/sh

pnpm build -F zhi-picgo-siyuan
pnpm serve -F picgo-plugin-app
2 changes: 2 additions & 0 deletions libs/PicGo-Core/.eslintignore
@@ -0,0 +1,2 @@
node_modules
dist
25 changes: 25 additions & 0 deletions libs/PicGo-Core/.eslintrc.js
@@ -0,0 +1,25 @@
module.exports = {
extends: 'standard-with-typescript',
parserOptions: {
project: './tsconfig.json'
},
rules: {
'@typescript-eslint/strict-boolean-expressions': 0,
// https://github.com/typescript-eslint/typescript-eslint/blob/ef88a696a157f617d38ce6d49207a4a4a089a19b/packages/eslint-plugin/docs/rules/naming-convention.md#enforce-that-interface-names-do-not-begin-with-an-i
'@typescript-eslint/naming-convention': [
'error',
{
selector: 'interface',
format: ['PascalCase'],
custom: {
regex: '^I[A-Z]',
match: true
}
}
],
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/return-await': 0,
'@typescript-eslint/no-floating-promises': 0,
'@typescript-eslint/no-non-null-assertion': 0
}
}
22 changes: 22 additions & 0 deletions libs/PicGo-Core/.github/workflows/alpha.yml
@@ -0,0 +1,22 @@
name: publish
on:
push:
branches:
- alpha
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v1
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn
- run: npm run build
- run: npm publish --tag alpha --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22 changes: 22 additions & 0 deletions libs/PicGo-Core/.github/workflows/main.yml
@@ -0,0 +1,22 @@
name: publish
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v1
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 19 additions & 0 deletions libs/PicGo-Core/.github/workflows/manually.yml
@@ -0,0 +1,19 @@
name: manually-trigger
on: workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v1
- name: Setup node
uses: actions/setup-node@v1
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install modules
run: yarn
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7 changes: 7 additions & 0 deletions libs/PicGo-Core/.gitignore
@@ -0,0 +1,7 @@
node_modules/
dist/
.DS_Store
yarn-error.log
temp.js
package-lock.json
test.jpg
8 changes: 8 additions & 0 deletions libs/PicGo-Core/.npmignore
@@ -0,0 +1,8 @@
node_modules/
yarn-error.log
temp.js
package-lock.json
tsconfig.json
.vscode/
src/
.travis.yml
32 changes: 32 additions & 0 deletions libs/PicGo-Core/.travis.yml
@@ -0,0 +1,32 @@
language: node_js
node_js: stable

# Travis-CI Caching
cache:
directories:
- node_modules
yarn: true

# S: Build Lifecycle
install:
- yarn

stages:
- name: deploy

jobs:
include:
- stage: deploy
script:
- npm run build
deploy:
edge: true
provider: npm
email: "marksz@teamsz.xyz"
api_key: "${NPM_TOKEN}"
skip_cleanup: true
on:
branch: master
branches:
only:
- master
23 changes: 23 additions & 0 deletions libs/PicGo-Core/.vscode/launch.json
@@ -0,0 +1,23 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/bin/picgo",
"args": [
"upload"
],
"outFiles": [
"${workspaceFolder}/**/*.js"
]
}
]
}
33 changes: 33 additions & 0 deletions libs/PicGo-Core/.vscode/settings.json
@@ -0,0 +1,33 @@
{
"files.trimTrailingWhitespace": true,
"editor.formatOnSave": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.enable": true,
"eslint.alwaysShowStatus": true,
"editor.tabSize": 2,
"cSpell.words": [
"aliyun",
"applescript",
"commitlint",
"copyfiles",
"imgur",
"Molunerfinn",
"picgo",
"qiniu",
"smms",
"tcyun",
"uploader",
"uploaders",
"upyun",
"weibo"
],
"typescript.tsdk": "node_modules/typescript/lib"
}
12 changes: 12 additions & 0 deletions libs/PicGo-Core/.vscode/tasks.json
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "debug",
"problemMatcher": [],
"label": "npm: debug",
"detail": "tsc -p . --sourcemap && npm run copy",
}
]
}

0 comments on commit badf655

Please sign in to comment.