Skip to content

Commit

Permalink
feat: compatible with macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
plylrnsdy committed Dec 4, 2023
1 parent 399c194 commit 9e0f2c0
Show file tree
Hide file tree
Showing 7 changed files with 2,032 additions and 72 deletions.
2 changes: 2 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
defaults
safari >= 11.1
2 changes: 0 additions & 2 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import * as fs from 'node:fs/promises'
import * as path from 'node:path'
import * as esbuild from 'esbuild'
import typoraPlugin from 'esbuild-plugin-typora'
import { sassPlugin } from 'esbuild-sass-plugin'


const args = process.argv.slice(2)
Expand All @@ -23,7 +22,6 @@ await esbuild.build({
typoraPlugin({
mode: IS_PROD ? 'production' : 'development'
}),
sassPlugin(),
],
})

Expand Down
17 changes: 14 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,32 @@
"main": "",
"scripts": {
"build:dev": "node build.js",
"build": "node build.js --prod",
"build": "rollup -c rollup.config.js",
"pack": "pnpm run build && node pack.js"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-replace": "^5.0.4",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.5",
"@rollup/plugin-virtual": "^3.0.2",
"@types/jquery": "3.3.1",
"@types/lodash": "~4.14.197",
"@types/node": "16.18.0",
"@types/typora": "npm:@typora-community-plugin/typora-types@^1.0.3",
"@typora-community-plugin/core": "^2.0.0-beta.21",
"archiver": "^5.3.2",
"esbuild": "^0.19.2",
"esbuild-plugin-typora": "npm:@typora-community-plugin/esbuild-plugin-typora@^1.0.5",
"esbuild-sass-plugin": "^2.12.0"
"rollup": "^4.1.4",
"rollup-plugin-typora": "npm:@typora-community-plugin/rollup-plugin-typora@^1.0.0",
"tslib": "^2.6.2",
"typescript": "^5.1.6"
}
}
Loading

0 comments on commit 9e0f2c0

Please sign in to comment.