Merge pull request #159 from TuSimple/freestyle

Freestyle
This commit is contained in:
07akioni 2020-07-10 21:29:39 +08:00 committed by GitHub Enterprise
commit 2a654349d4
6 changed files with 30 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,6 +1,7 @@
node_modules
dist
docDist
build-doc/deploy-doc.sh
build-doc/dist
test-size
test-bundle

View File

@ -1,5 +1,11 @@
# CHANGELOG
## 1.5.0 (2020-07-09)
### Breaking Changes
- Refactor experimental setting primary color feature.
### Fixes
- Fix some style glitches.
## 1.4.1 (2020-06-23)
### Features
- Add `autofocus` for `n-select`.

View File

@ -1,5 +1,11 @@
# CHANGELOG
## 1.5.0 (2020-07-09)
### Breaking Changes
- 重构了试验性的设定主色功能
### Fixes
- 修正了一些零碎的样式错误
## 1.4.1 (2020-06-23)
### Features
- 为 `n-select` 增加了 `autofocus` 属性.

View File

@ -0,0 +1,13 @@
const fs = require('fs')
const path = require('path')
const tpl = fs.readFileSync(
path.resolve(__dirname, 'deploy-doc.sh.tpl')
).toString()
const script = tpl.replace(/\$VERSION/g, require('../package.json').version)
fs.writeFileSync(
path.resolve(__dirname, 'deploy-doc.sh'),
script
)

View File

@ -3,7 +3,7 @@ import hljs from './hljs'
import demoRouterView from './demoRouterView'
import naive from '../lib/index'
import '../lib/styles/index.css'
import './styles/test-customize-style-scheme.scss' // test
// import './styles/test-customize-style-scheme.scss' // test
import '../lib/styles/fonts/Lato.css'
import '../lib/styles/fonts/FiraCode.css'
import createRouter from './routes/router'

View File

@ -1,6 +1,6 @@
{
"name": "naive-ui",
"version": "1.4.1",
"version": "1.5.0",
"description": "A Vue UI Framework. Caring About Styles, Themed, Batteries Included, Not Rather Slow.",
"main": "lib/index.js",
"module": "es/index.js",
@ -18,8 +18,8 @@
"lint": "eslint --no-error-on-unmatched-pattern --fix \"src/**/*.{js,vue}\" \"test/**/*.{js,vue}\" \"build/**/*.{js,vue}\" \"demo/**/*.{js,vue}\" && stylelint \"src/_styles/**/*.scss\"",
"lint:js": "eslint --no-error-on-unmatched-pattern --fix \"src/**/*.{js,vue}\" \"test/**/*.{js,vue}\" \"build/**/*.{js,vue}\" \"demo/**/*.{js,vue}\"",
"lint:style": "stylelint \"src/_styles/**/*.scss\"",
"release:doc": "npm run build:doc && sudo bash build-doc/deploy-doc.sh",
"release:doc:no-build": "sudo bash build-doc/deploy-doc.sh",
"release:doc": "npm run build:doc && node build-doc/generate-deploy-sh.js &&sudo bash build-doc/deploy-doc.sh",
"release:doc:no-build": "node build-doc/generate-deploy-sh.js && sudo bash build-doc/deploy-doc.sh",
"release:package": "npm run build && npm publish",
"test": "cross-env NODE_ENV=test jest"
},