Code Monkey home page Code Monkey logo

frontend-project's Introduction

前端工程化

前端工程化学习、脚手架,demo,

gulp_hello

使用gulp+babel处理js

gulp_example

使用gulp处理js\css\html、创建服务等

babel_app

一般项目中的babel配置, 支持转译以下功能

  • es6句法
  • es6 api
  • 提案句法,如do语句
  • 提案api
  • 打包多文件时es6句法帮助函数重复注入问题

babel_lib

一般类库中的配置如何配置babel

  • es6句法
  • es6 api
  • 提案句法,如do语句
  • 提案api
  • 打包多文件时es6句法帮助函数重复注入问题

rollup_js_lib

使用rollup构建一个类库

  • 支持es6 句法
  • 支持es6 API
  • 支持cmd umd esm

rollup_ts_lib

使用rollup + TS构建一个类库

  • 支持es6 句法
  • 支持es6 API
  • 支持TS & 自动生成声明文件
  • 支持cmd umd esm
  • 支持排除依赖包构建

打包一个Vue3 UI库

  • 支持es6 句法
  • 支持es6 API
  • 支持TS & 自动生成声明文件
  • 支持cmd umd amdesm
  • 排除对等依赖构建(vue3 element-plus)
  • scss/postcss支持

排除依赖包

  1. 配置babel plugin lodash 应该是因为lodash不是使用esm规范所以需要babel插件
  2. 配置rollup.config.js
    1. 配置input globals: {loadsh: '_'}
    2. 配置external ['lodash'],

frontend-project's People

Contributors

guojingwen 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.