Skip to content

Commit

Permalink
Merge pull request #1 from moontai0724/develop
Browse files Browse the repository at this point in the history
release: partial implement for internal use
  • Loading branch information
moontai0724 authored Jul 25, 2024
2 parents 78926f3 + 46a7c06 commit 6f5fd78
Show file tree
Hide file tree
Showing 56 changed files with 1,837 additions and 684 deletions.
7 changes: 3 additions & 4 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ module.exports = {
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
project: ["./tsconfig.json", "./src/tsconfig.json"],
},
rules: {
"no-console": "off",
Expand All @@ -43,6 +41,7 @@ module.exports = {
"import/no-duplicates": "error",
"import/no-unresolved": "error",
"import/prefer-default-export": "off",
"typescript-sort-keys/interface": "off",

// additional rules
"@typescript-eslint/consistent-type-exports": "error",
Expand Down Expand Up @@ -86,7 +85,7 @@ module.exports = {
"import/resolver": {
typescript: {
alwaysTryTypes: true,
project: ["./tsconfig.json"],
project: ["./tsconfig.json", "./src/tsconfig.json"],
},
},
},
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/cd-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: "CD: Deploy when pushes to release"
name: "CD: Deploy when pushes to main"

on:
push:
branches:
- release
- main

jobs:
test-and-upload-coverage:
Expand All @@ -22,7 +22,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ci-on-merge-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down Expand Up @@ -97,7 +97,7 @@ jobs:
name: Install pnpm
id: pnpm-install
with:
version: 7
version: 8
run_install: false

- name: Get pnpm store directory
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"branches": ["release"],
"branches": ["main"],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
},
"editor.formatOnSave": true
},
"prettier.trailingComma": "all"
"prettier.trailingComma": "all",
"typescript.preferences.importModuleSpecifier": "non-relative"
}
27 changes: 14 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,27 +18,29 @@
},
"keywords": [
"package",
"template"
"flickr",
"api",
"sdk"
],
"files": [
"build",
"dist"
],
"main": "dist/index.min.js",
"module": "dist/index.min.mjs",
"types": "dist/index.d.ts",
"main": "./dist/index.umd.js",
"module": "./dist/index.mjs",
"types": "./build/index.d.ts",
"exports": {
".": {
"require": "./dist/index.min.js",
"require": "./dist/index.umd.js",
"import": "./build/index.js",
"types": "./build/index.d.ts"
}
},
"scripts": {
"build": "npm run build:clean && npm run build:ts && npm run build:bundle && npm run docs",
"build:clean": "rm -rf dist build docs",
"build:ts": "tsc -b src/tsconfig.build.json",
"build:bundle": "rollup -c --configPlugin typescript --bundleConfigAsCjs",
"build:ts": "tsc -b tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"build:bundle": "vite build",
"docs": "typedoc --plugin typedoc-plugin-missing-exports src/index.ts",
"test": "vitest",
"lint": "npm run lint:eslint && npm run lint:prettier",
Expand All @@ -47,12 +49,8 @@
"prepare": "husky || true"
},
"devDependencies": {
"@babel/core": "^7.24.4",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.3",
Expand All @@ -72,18 +70,21 @@
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "3.2.5",
"rollup": "^4.14.1",
"rollup-plugin-dts": "^6.1.0",
"semantic-release": "^23.0.7",
"tsc-alias": "^1.8.10",
"tslib": "^2.6.2",
"typedoc": "^0.25.13",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.4.4",
"vite": "^5.3.4",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.4.0"
},
"lint-staged": {
"*.{ts,js}": "eslint --cache --cache-location node_modules/.cache/eslint",
"*.**": "prettier --check --ignore-unknown"
},
"dependencies": {
"hash-wasm": "^4.11.0"
}
}
Loading

0 comments on commit 6f5fd78

Please sign in to comment.