@imyoon/tse
- 背景: ts编译时会忽视ts,txs,d.ts后缀之外的文件, - 需求: .json, .xml等unsupported extendion的配置文件在编译完之后,按照原始路径,copy到目标路径 - 方案: 递归遍历原始目录,将指定后缀文件复制到目标路径
Last updated 4 months ago by shanfengliu .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @imyoon/tse 
SYNC missed versions from official npm registry.

Description

  • 背景: ts编译时会忽视ts,txs,d.ts后缀之外的文件,
  • 需求: .json, .xml等unsupported extendion的配置文件在编译完之后,按照原始路径,copy到目标路径
  • 方案: 递归遍历原始目录,将指定后缀文件复制到目标路径

Usage

  1. 安装

    npm i @imyoon/ts-extendion -S
    
  2. 配置目标类型、原始路径、目标路径

    {
        "name": "app",
        "version":"v1.0.0",
        "scripts":{
            "tse": "tse"
        }
        ···
        "ts-extendion":{
            includes: [ 'json', 'xml' ],
            from: 'src',
            fist: 'dist/src'
        }
        ···
    }
    
  3. 运行命令

    npm run tse
    

docs

document

Current Tags

  • 1.0.2                                ...           latest (4 months ago)

2 Versions

  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
Maintainers (1)
Downloads
Today 2
This Week 2
This Month 2
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (14)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |