mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 03:28:20 +08:00
index.tsx 添加版本信息
This commit is contained in:
parent
cc7009b729
commit
8b710d7aff
@ -2,6 +2,7 @@
|
|||||||
* @file fis-conf.js 配置
|
* @file fis-conf.js 配置
|
||||||
*/
|
*/
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
|
const package = require('./package.json');
|
||||||
const parserMarkdown = require('./build/md-parser');
|
const parserMarkdown = require('./build/md-parser');
|
||||||
fis.get('project.ignore').push(
|
fis.get('project.ignore').push(
|
||||||
'public/**',
|
'public/**',
|
||||||
@ -62,6 +63,12 @@ fis.match('/docs/**.md', {
|
|||||||
isMod: true
|
isMod: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
fis.on('compile:parser', function (file) {
|
||||||
|
if (file.subpath === '/src/index.tsx') {
|
||||||
|
file.setContent(file.getContent().replace('@version', package.version));
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
fis.match('{*.ts,*.jsx,*.tsx,/src/**.js,/src/**.ts}', {
|
fis.match('{*.ts,*.jsx,*.tsx,/src/**.js,/src/**.ts}', {
|
||||||
parser: [fis.plugin('typescript', {
|
parser: [fis.plugin('typescript', {
|
||||||
importHelpers: true,
|
importHelpers: true,
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
/**
|
/** @license amis v@version
|
||||||
* @file 文件入口
|
*
|
||||||
* @author fex
|
* Copyright Baidu
|
||||||
|
*
|
||||||
|
* This source code is licensed under the Apache license found in the
|
||||||
|
* LICENSE file in the root directory of this source tree.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {render, Renderer, getRendererByName, resolveRenderer, filterSchema} from './factory';
|
import {render, Renderer, getRendererByName, resolveRenderer, filterSchema} from './factory';
|
||||||
import {wrapFetcher, buildApi} from './utils/api';
|
import {wrapFetcher, buildApi} from './utils/api';
|
||||||
import {filter, reigsterTplEnginer} from './utils/tpl'
|
import {filter, reigsterTplEnginer} from './utils/tpl'
|
||||||
|
Loading…
Reference in New Issue
Block a user