Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add picgo core 1.5.6 as electron start version #298

Merged
merged 5 commits into from
Mar 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
25 changes: 25 additions & 0 deletions libs/PicGo-Core/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "debug",
"problemMatcher": [],
"label": "npm: debug",
"detail": "tsc -p . --sourcemap && npm run copy",
}
]
}
Loading
Loading