Code Monkey home page Code Monkey logo

butterpack's Introduction

butterpack

a development bundle server tool for modern browser

butterpack's People

Contributors

alanchenchen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

butterpack's Issues

[Feature] support resolve node_modules path, support path alias symbol

if you import a module with none extname. Butterpack should judge where it is.

import lodash from "lodash"; // butterpack will load it from node_modules directory.
import Toast form "@/component/toast" // butterpack will replace @ with path in alias config, and complete path extname
// butterpack.config.js
export default {
  alias: {
     "@": "src"
  },
  fileExts: [".ts", ".tsx"]
}

[Feature] split butterpack code

spilt butterpack to core and cli packages.

  • move butterpack-core in this repository
  • create a new repository for butterpack-cli
  • create a new repository for butterpack-cli-settings, it's very convenient for users to use butterpack out of box
  • create a new repository for butterpack-plugin-official
  • create a new repository for butterpack-loader-official
  • create a new repository for butterpack-awsome

[Feature] add plugin process

  1. loaders could only transform other files to js codes. There are not file-loader, json-loader or url-loader like webpack loader
  2. plugins could transform css, scss, img, fonts, json to server responsed stream.

[Feature] add file path extname resolve

butterpack will could resolve file path extname such as:

import { equal } from "utils"; // ext name is .ts
import icon from "icon"; // ext name is .png
import Count form "./Count" // ext name is .tsx
// butterpack.config.js
export default {
 fileExts: [".ts", ".tsx", ".png"]
}

default ext name is .js

[Feature] add loader process

butterpack will could transform no-js(no .js extname) file to js code.And you could custom any loaders,
such as vue-loader, svelte-loader. ts-loader could transform .ts, .tsx, .jsx to js code.

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.