development-assert-ts
TypeScript icon, indicating that this package has built-in type declarations

2.1.3 • Public • Published

packaged development-assert-ts

This repo is for distribution on npm. The source for this module is in the main repo. Please file issues and pull requests against that repo. This package use to develop kit for typescript node project development via gulp tasks.

Install

You can install this package either with npm.

npm

 
npm install development-assert-ts
 

You can import modules:

import module

import * as gulp from 'gulp';
import  { Development } from 'development-tool';
import { INodeTaskOption } from 'development-tool-web';
import 'development-assert-ts';
 

Create development tool

Development.create(gulp, __dirname, {
    tasks:[
        <INodeTaskOption>{
            src: 'src',
            //testSrc: '...',
            //e2eSrc: '...',
            //watchSrc: '...'
            dist: 'lib',
            // buildDist:'build path',
            // releaseDist: 'release path',
            // depolyDist: 'depoly path'
            asserts:{
                ts: {
                    //src: '...',
                    //dist:'...',
                    loader: {
                        module:'development-assert-ts',
                        // add pipe works for module tasks.
                        tsPipes:[
                            // ts pipe works.
                        ],
                        //js pipe work.
                        pipe(stream, ctx, dist, gulp){ ... }
                        pipes: Pipe[] | (ctx, dist, gulp)=> Pipe[],
                        output: OutputPipe[] | (stream, ctx, dist, gulp)=> OutputPipe[]
                    },
                    //also can add pipe works here.
                    tsPipes:[
                        // ts pipe works.
                    ],
                    pipe(stream, ctx, dist, gulp){ ... }
                    pipes: Pipe[] | (ctx, dist, gulp)=> Pipe[],
                    output: OutputPipe[] | (stream, ctx, dist, gulp)=> OutputPipe[]
                },
                tsx:{
                    tsPipes: <Pipe[]>[
                        // ts pipe works.
                    ],
                    pipes:[
                        // js pipe works.
                    ]
                    loader:'development-assert-ts'
                }
                json'src/**/*.json',
                css:'src/common/**/*.css',
                moduleBcss: ['src/moduleB/**/*.css'],
                moduleAcss: {
                    src: ['src/apath/**/*.css', 'src/bpath/**/*.css'],
                    dist:'dist path',
                    buildDist:'buildDist path',
                    releaseDist: 'release Distpath',
                    depolyDist: 'depoly Distpath'
                },
                ...
            },
            loader: 'development-tool-web'
        }
    ]
});

https://github.com/zhouhoujun/development-assert-ts.git

Documentation

Documentation is available on the development-assert-ts docs site.

License

MIT © Houjun

Package Sidebar

Install

npm i development-assert-ts

Weekly Downloads

22

Version

2.1.3

License

MIT

Last publish

Collaborators

  • houjun