Socket
Socket
Sign inDemoInstall

development-assert-templ

Package Overview
Dependencies
420
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    development-assert-templ

template assert (html) tasks for development tools.


Version published
Weekly downloads
10
Maintainers
1
Install size
25.8 MB
Created
Weekly downloads
 

Readme

Source

packaged development-assert-templ

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 is template assert (html) tasks for development tools.

Install

You can install this package either with npm.

npm


npm install development-assert-templ

You can import modules:

import module

import * as gulp from 'gulp';
import  { Development } from 'development-tool';
import { IWebTaskOption } from 'development-tool-web';

Create development tool

Development.create(gulp, __dirname, {
    tasks:[
        <IWebTaskOption>{
            src: 'src',
            //testSrc: '...',
            //e2eSrc: '...',
            //watchSrc: '...'
            dist: 'dist/development',
            // buildDist:'build path',
            releaseDist: 'dist/production',
            // depolyDist: 'depoly path'
            asserts:{
                templ: {
                    src: 'src/**/*.tpl.html',
                    // testSrc: '...',
                    // e2eSrc: '...',
                    // watchSrc: '...'
                    // dist: 'dist path',
                    // buildDist:'build path',
                    // releaseDist: 'release path',
                    // depolyDist: 'depoly path'
                    loader: {
                        module:'development-assert-templ',
                        // add pipe works for module tasks.
                        pipe(stream, ctx, dist, gulp){ ... }
                        pipes: Pipe[] | (ctx, dist, gulp)=> Pipe[],
                        output: OutputPipe[] | (stream, ctx, dist, gulp)=> OutputPipe[]
                    }
                },
                templb: {
                    src: 'srcb/**/*.tpl.html',
                    // testSrc: '...',
                    // e2eSrc: '...',
                    // watchSrc: '...'
                    // dist: 'dist path',
                    // buildDist:'build path',
                    // releaseDist: 'release path',
                    // depolyDist: 'depoly path'
                    loader: 'development-assert-templ',
                    // 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[]
                },
                html: ['src/*.html', 'src/*.cshtml'],
                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-templ.git

Documentation

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

License

MIT © Houjun

Keywords

FAQs

Last updated on 24 Aug 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