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

2.1.0 • Public • Published

packaged development-assert-js

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 javascript tasks via gulp tasks.

Install

You can install this package either with npm.

npm

npm install development-assert-js

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-js';

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:{
                // js assert default src: 'src/**/*.js'
                js: {
                    //src: '...',
                    //testSrc: '...',
                    //e2eSrc: '...',
                    //watchSrc: '...'
                    // dist: 'dist path',
                    // buildDist:'build path',
                    // releaseDist: 'release path',
                    // depolyDist: 'depoly path'
                    loader: {
                        module:'development-assert-js',
                        // add pipe works for module tasks.
                        pipe(stream, ctx, dist, gulp){ ... }
                        pipes: Pipe[] | (ctx, dist, gulp)=> Pipe[],
                        output: OutputPipe[] | (stream, ctx, dist, gulp)=> OutputPipe[]
                    }
                },
                jsb: {
                    src: 'jsb/**/*.js',
                    //testSrc: '...',
                    //e2eSrc: '...',
                    //watchSrc: '...'
                    // dist: 'dist path',
                    // buildDist:'build path',
                    // releaseDist: 'release path',
                    // depolyDist: 'depoly path'
                    module:'development-assert-js',
                    // also can add pipe works for module tasks here.
                    pipe(stream, ctx, dist, gulp){ ... }
                    pipes: Pipe[] | (ctx, dist, gulp)=> Pipe[],
                    output: OutputPipe[] | (stream, ctx, dist, gulp)=> OutputPipe[]
                },
                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-js.git

Documentation

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

License

MIT © Houjun

Package Sidebar

Install

npm i development-assert-js

Weekly Downloads

0

Version

2.1.0

License

MIT

Last publish

Collaborators

  • houjun