mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-02-17 13:20:52 +08:00
fix: site build fail
This commit is contained in:
parent
dbec18f502
commit
de99362320
@ -1,6 +1,11 @@
|
||||
// the file is used for jest testing & site building
|
||||
module.exports = {
|
||||
presets: [
|
||||
['@babel/preset-env', 'defaults, not IE 11']
|
||||
[
|
||||
'@babel/preset-env',
|
||||
{
|
||||
targets: 'defaults, not IE 11'
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
|
@ -1,7 +0,0 @@
|
||||
const path = require('path')
|
||||
const ncp = require('ncp')
|
||||
|
||||
ncp(
|
||||
path.resolve(__dirname, '../src/fonts'),
|
||||
path.resolve(__dirname, '../fonts')
|
||||
)
|
@ -4,14 +4,12 @@
|
||||
"description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.",
|
||||
"main": "lib/index.js",
|
||||
"module": "es/index.js",
|
||||
"sideEffects": false,
|
||||
"scripts": {
|
||||
"start": "npm run dev",
|
||||
"build:fonts": "npm run clean && node build/build-fonts.js",
|
||||
"build:icons": "npm run clean && node build/build-icons.js",
|
||||
"build:js": "npm run generate-version && npm run clean && rollup -c",
|
||||
"build:package": "npm run generate-version && npm run clean && node build/build-fonts.js && node build/build-icons.js && rollup -c",
|
||||
"build:site": "npm run generate-version && npm run build:package && rm -rf dist && cross-env NODE_ENV=production vite build",
|
||||
"build:package": "npm run generate-version && npm run clean && node build/build-icons.js && rollup -c",
|
||||
"build:site": "npm run generate-version && npm run build:package && rm -rf dist && cross-env NODE_ENV=production NODE_OPTIONS=--max-old-space-size=4096 vite build",
|
||||
"build:doc": "npm run generate-version && npm run build && rm -rf build-doc/dist && cross-env NODE_ENV=production webpack --config build/webpack.doc.js",
|
||||
"clean": "rm -rf lib && rm -rf es && rm -rf dist",
|
||||
"dev": "npm run generate-version && cross-env NODE_ENV=development vite",
|
||||
@ -36,7 +34,6 @@
|
||||
"files": [
|
||||
"es",
|
||||
"lib",
|
||||
"fonts",
|
||||
"src",
|
||||
"themes",
|
||||
"README.md"
|
||||
|
@ -1,16 +1,15 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import inputStyle from '../../input/styles/light'
|
||||
import buttonStyle from '../../button/styles/light'
|
||||
import { inputDark, buttonDark } from '../../styles'
|
||||
import commonVariables from './_common'
|
||||
|
||||
export default create({
|
||||
theme: 'dark',
|
||||
name: 'DynamicInput',
|
||||
peer: [
|
||||
inputStyle,
|
||||
buttonStyle
|
||||
inputDark,
|
||||
buttonDark
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
getLocalVars () {
|
||||
return {
|
||||
...commonVariables
|
||||
}
|
||||
|
@ -1,16 +1,15 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import inputStyle from '../../input/styles/light'
|
||||
import buttonStyle from '../../button/styles/light'
|
||||
import { inputLight, buttonLight } from '../../styles'
|
||||
import commonVariables from './_common'
|
||||
|
||||
export default create({
|
||||
theme: 'light',
|
||||
name: 'DynamicInput',
|
||||
peer: [
|
||||
inputStyle,
|
||||
buttonStyle
|
||||
inputLight,
|
||||
buttonLight
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
getLocalVars () {
|
||||
return {
|
||||
...commonVariables
|
||||
}
|
||||
|
@ -44,6 +44,10 @@ export {
|
||||
inputDark,
|
||||
inputLight
|
||||
} from './input/styles'
|
||||
export {
|
||||
buttonDark,
|
||||
buttonLight
|
||||
} from './button/styles'
|
||||
export {
|
||||
selectDark,
|
||||
selectLight
|
||||
@ -204,10 +208,6 @@ export {
|
||||
popoverDark,
|
||||
popoverLight
|
||||
} from './popover/styles'
|
||||
export {
|
||||
buttonDark,
|
||||
buttonLight
|
||||
} from './button/styles'
|
||||
export {
|
||||
stepsDark,
|
||||
stepsLight
|
||||
|
@ -1,11 +1,13 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import popoverStyle from '../../popover/styles/dark'
|
||||
import {
|
||||
popoverDark
|
||||
} from '../../styles'
|
||||
|
||||
export default create({
|
||||
theme: 'dark',
|
||||
name: 'Tooltip',
|
||||
peer: [
|
||||
popoverStyle
|
||||
popoverDark
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
return {}
|
||||
|
@ -1,11 +1,13 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import popoverStyle from '../../popover/styles/light'
|
||||
import {
|
||||
popoverLight
|
||||
} from '../../styles'
|
||||
|
||||
export default create({
|
||||
theme: 'light',
|
||||
name: 'Tooltip',
|
||||
peer: [
|
||||
popoverStyle
|
||||
popoverLight
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
return {}
|
||||
|
@ -1,12 +1,18 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import commonVariables from './_common'
|
||||
import checkboxStyle from '../../checkbox/styles/dark'
|
||||
import {
|
||||
checkboxDark,
|
||||
scrollbarDark,
|
||||
inputDark
|
||||
} from '../../styles'
|
||||
|
||||
export default create({
|
||||
theme: 'dark',
|
||||
name: 'Transfer',
|
||||
peer: [
|
||||
checkboxStyle
|
||||
checkboxDark,
|
||||
scrollbarDark,
|
||||
inputDark
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
return {
|
||||
|
@ -1,13 +1,19 @@
|
||||
import create from '../../_styles/utils/create-component-base'
|
||||
import commonVariables from './_common'
|
||||
import { composite } from 'seemly'
|
||||
import checkboxStyle from '../../checkbox/styles/light'
|
||||
import {
|
||||
checkboxLight,
|
||||
scrollbarLight,
|
||||
inputLight
|
||||
} from '../../styles'
|
||||
|
||||
export default create({
|
||||
theme: 'light',
|
||||
name: 'Transfer',
|
||||
peer: [
|
||||
checkboxStyle
|
||||
checkboxLight,
|
||||
scrollbarLight,
|
||||
inputLight
|
||||
],
|
||||
getLocalVars (vars) {
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user