Giter Club home page Giter Club logo

es6-bundled-and-transpiled's Introduction

es6-bundled-and-transpiled

overview & purpose

Personal folder and configuration template for an ES6 source (possibly consisting of multiple files) being bundled, transpiled to ES5 and eventually minified.

contents

File or folder Purpose
dist Output destination of transpilation and bundleing process (a minificated ES5 file).
source Sources directory, contains the parts as separate ES6 files.
test Not a unit test, just a simple html, including and using the dist/bundle.js
.eslintrc Linter configuration, could be a bit more detailed.
.gitignore Files and folders to be ignore by Git.
README.md This file.
package.json This project package's properties and dependencies
webpack.config.js Configuration file for the transpiling, bundling and minification step.

usage info

Clone the repo:

git clone [email protected]:ta2edchimp/es6-bundled-and-transpiled.git

Install dependencies:

npm install

Make a build (will also lint the source code):

npm run build

Alter the contents of webpack.config.js to reflect the desired output result. For example

  entry: './source/entry.js',
  output: {
    filename: './dist/bundle.js',
    libraryTarget: 'assign',
    library: 'MainNamespace'
  },

Will result in a global object MainNamespace to be available on including dist/bundle.js via script tag; in it the source/entry.js exports will be available.

es6-bundled-and-transpiled's People

Contributors

ta2edchimp avatar

Watchers

 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.