updated 配置及注解调整

This commit is contained in:
mumuy
2022-07-08 08:34:37 +08:00
parent 8e72cbdb88
commit 0bee076ec8
9 changed files with 14 additions and 10 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "relationship", "name": "relationship.js",
"officialName": "relationship.js", "officialName": "relationship",
"version": "1.1.0", "version": "1.1.0",
"summary": "relationship.js is a javascript library for chinese family relationship. 中国家庭亲戚称谓计算器,家庭关系、亲戚关系算法。", "summary": "relationship.js is a javascript library for chinese family relationship. 中国家庭亲戚称谓计算器,家庭关系、亲戚关系算法。",
"description": "Chinese kinship library", "description": "Chinese kinship library",
+1
View File
@@ -105,6 +105,7 @@ export default {
'[f,xs|m,xb],s&o':['姑舅哥','姑舅哥哥'], '[f,xs|m,xb],s&o':['姑舅哥','姑舅哥哥'],
'[f,xs|m,xb],s&l':['姑舅弟','姑舅弟弟'], '[f,xs|m,xb],s&l':['姑舅弟','姑舅弟弟'],
'[f,xs|m,xb],d':['姑舅姊妹','舅姑姊妹'], '[f,xs|m,xb],d':['姑舅姊妹','舅姑姊妹'],
'w,[f,xs|m,xb],d':['姑舅姨子'],
'w,[f,xs|m,xb],d,h':['姑舅连襟','姑舅连桥'], 'w,[f,xs|m,xb],d,h':['姑舅连襟','姑舅连桥'],
'[f,xs|m,xb],d&o':['姑舅姐','姑舅姐姐'], '[f,xs|m,xb],d&o':['姑舅姐','姑舅姐姐'],
'[f,xs|m,xb],d&l':['姑舅妹','姑舅妹妹'], '[f,xs|m,xb],d&l':['姑舅妹','姑舅妹妹'],
+2 -1
View File
@@ -1,8 +1,9 @@
// 默认完整映射关系
import _main from './main'; import _main from './main';
import _prefix from './prefix'; import _prefix from './prefix';
import _branch from './branch'; import _branch from './branch';
var _map = {}; // 默认映射关系 var _map = {};
// 分支关系 // 分支关系
for(var key in _branch){ for(var key in _branch){
+1
View File
@@ -1,3 +1,4 @@
// 通用方法
import _filter from './filter'; import _filter from './filter';
import _map from './map'; import _map from './map';
+1 -1
View File
@@ -1,4 +1,4 @@
// 分支关系链 // 分支前缀
export default { export default {
'{G2}':{ '{G2}':{
'f,f,xb':['从祖'], 'f,f,xb':['从祖'],
+2 -1
View File
@@ -4,7 +4,7 @@ const TerserJSPlugin = require('terser-webpack-plugin');
const pkg = require('./package'); const pkg = require('./package');
var repository = pkg.repository.url.replace(/(.+)(:\/\/.+)\.git$/,'https$2'); var repository = pkg.repository.url.replace(/(.+)(:\/\/.+)\.git$/,'https$2');
var copyright = `${pkg.name} v${pkg.version} - ${pkg.description} var copyright = `${pkg.officialName} v${pkg.version} - ${pkg.description}
${pkg.homepage} ${pkg.homepage}
Copyright (c) 2016-present, ${pkg.author} Copyright (c) 2016-present, ${pkg.author}
@@ -12,6 +12,7 @@ Released under the ${pkg.license} License.
${repository}/`; ${repository}/`;
module.exports = { module.exports = {
mode: 'production',
entry: './src/relationship.js', entry: './src/relationship.js',
output: { output: {
path: path.resolve(__dirname,'dist'), path: path.resolve(__dirname,'dist'),