提交 b0245779 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue styler

上级 d044f765
{
"extends": "../../api-extractor.json",
"mainEntryPointFilePath": "./dist/packages/<unscopedPackageName>/src/index.d.ts",
"dtsRollup": {
"publicTrimmedFilePath": "./dist/<unscopedPackageName>.d.ts"
}
}
\ No newline at end of file
[
{
"input": {
"src/esm.ts": ["dist/uni-nvue-styler.es.js"]
}
},
{
"input": {
"src/index.ts": ["dist/uni-nvue-styler.cjs.js"]
},
"compilerOptions": {
"declaration": true
}
}
]
......@@ -2,8 +2,9 @@
"name": "@dcloudio/uni-nvue-styler",
"version": "0.0.1-nvue3.3030820220125001",
"description": "uni-nvue-styler",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "./dist/uni-nvue-styler.cjs.js",
"module": "./dist/uni-nvue-styler.es.js",
"types": "./dist/uni-nvue-styler.d.ts",
"files": [
"dist"
],
......
export { expand } from './expand'
export { normalize } from './normalize'
import parseCSSFont, { ISystemFont, IFont } from 'parse-css-font'
import { Declaration } from 'postcss'
import type { Declaration } from 'postcss'
import { createDecl, TransformDecl } from '../utils'
export const transformFont: TransformDecl = (decl) => {
......
......@@ -26,10 +26,13 @@ const DeclTransforms: Record<string, TransformDecl> = {
'border-color': transformBorderColor,
'border-radius': transformBorderRadius,
'flex-flow': transformFlexFlow,
font: transformFont,
background: transformBackground,
}
if (__NODE_JS__) {
DeclTransforms.font = transformFont
}
const expanded = Symbol('expanded')
export const expand: Plugin = {
postcssPlugin: 'nvue:expand',
......
{
"extends": "../../tsconfig.node.json",
"compilerOptions": {
"outDir": "dist"
"outDir": "dist",
"sourceMap": false,
"declaration": true,
"declarationDir": "./dist/packages/uni-nvue-styler/src",
"target": "es2015",
"module": "esnext",
"moduleResolution": "node",
"allowJs": false,
"strict": true,
"noUnusedLocals": true,
"experimentalDecorators": true,
"resolveJsonModule": true,
"esModuleInterop": true,
"removeComments": false,
"lib": ["ESNext", "DOM"]
},
"include": [
"src",
"types/shims.d.ts",
"../global.d.ts",
"../shims-node.d.ts",
"../shims-uni-app.d.ts"
]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册