GithubHelp home page GithubHelp logo

jtrans's Introduction

jtrans

前端开发环境


  • 编译es6789到es5

    • 支持async/await

    • 支持class属性定义

    • 支持可选链

    • 私有特性,自动编译js中{pug[...]pug}的pug代码为html

      //foo.js
      let template;
      
      template="{pug[div: img]pug}`"
      //template="<div><img/></div>" 
      
      template="{pug[$foo.pug]pug}`"
      //foo.pug中的内容为"div: img"
      //template="<div><img/></div>" 
      
      
      //以上语句等价于
      template="{pug[]pug}`"
      
      //使用绝对位置置入pug
      template="{pug[/src/$foo.pug]pug}`"
  • 编译less到css

  • pug到html


安装

npm install jtrans

或者

yarn add jtrans

全局安装

npm install -g jtrans

使用

jtrans dev

所有配置

jtrans dev

jtrans watch


# 所有配置

jtrans build --src=src --dist=dist --build-clean --disabled-treeshake --port=4560 --src-base=src

jtrans's People

Contributors

ccwq avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.