Socket
Socket
Sign inDemoInstall

development-assert-ts

Package Overview
Dependencies
8
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    development-assert-ts

typescript assert tasks for development.


Version published
Weekly downloads
28
increased by154.55%
Maintainers
1
Install size
54.6 MB
Created
Weekly downloads
 

Readme

Source

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

Keywords

FAQs

Last updated on 06 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc