All Projects → activewidgets → Getlibs

activewidgets / Getlibs

Licence: mit
OBSOLETE, DO NOT USE: This project is no longer maintained

Programming Languages

javascript
184084 projects - #8 most used programming language
typescript
32286 projects

Projects that are alternatives of or similar to Getlibs

Koa Restful Boilerplate
Koa 2 RESTful API boilerplate
Stars: ✭ 146 (-12.05%)
Mutual labels:  babel
Webpack Encore
A simple but powerful API for processing & compiling assets built around Webpack
Stars: ✭ 1,975 (+1089.76%)
Mutual labels:  babel
Hops
Universal Development Environment
Stars: ✭ 158 (-4.82%)
Mutual labels:  babel
React Itunes Search
🎵Simple web app for itunes search with React
Stars: ✭ 147 (-11.45%)
Mutual labels:  babel
Babel Plugin Webpack Alias
babel 6 plugin which allows to use webpack resolve options
Stars: ✭ 151 (-9.04%)
Mutual labels:  babel
Babel Plugin Transform React To Vue
Transform React component to Vue component (beta)
Stars: ✭ 157 (-5.42%)
Mutual labels:  babel
Breko Hub
Babel React Koa Hot Universal Boilerplate
Stars: ✭ 145 (-12.65%)
Mutual labels:  babel
React Redux Universal Boilerplate
An Universal ReactJS/Redux Boilerplate
Stars: ✭ 165 (-0.6%)
Mutual labels:  babel
Babel Plugin Lodash
Modular Lodash builds without the hassle.
Stars: ✭ 1,903 (+1046.39%)
Mutual labels:  babel
Shopify Webpack Themekit
Shopify development tool using webpack and themekit
Stars: ✭ 157 (-5.42%)
Mutual labels:  babel
Generator Phaser Plus
[🛑 DISCONTINUED] It has been a long journey but development of `generator-phaser-plus` is now over. I recommend you have a look and fork `yandeu/phaser-project-template` instead.
Stars: ✭ 148 (-10.84%)
Mutual labels:  babel
Lighthouse Badges
🚦Generate badges (shields.io) based on Lighthouse performance.
Stars: ✭ 150 (-9.64%)
Mutual labels:  babel
Express Webpack React Redux Typescript Boilerplate
🎉 A full-stack boilerplate that using express with webpack, react and typescirpt!
Stars: ✭ 156 (-6.02%)
Mutual labels:  babel
Keepformac
keep for mac
Stars: ✭ 147 (-11.45%)
Mutual labels:  babel
Reactn
React, but with built-in global state management.
Stars: ✭ 1,906 (+1048.19%)
Mutual labels:  babel
Swc
swc is a super-fast compiler written in rust; producing widely-supported javascript from modern standards and typescript.
Stars: ✭ 18,627 (+11121.08%)
Mutual labels:  babel
Babel Plugin Flow To Typescript
Babel plugin to convert Flow code into TypeScript
Stars: ✭ 156 (-6.02%)
Mutual labels:  babel
Babel 7 Typescript Example
Example TypeScript project built on top of new Babel 7 features. Includes Jest and Enzyme.
Stars: ✭ 166 (+0%)
Mutual labels:  babel
React Ast
render abstract syntax trees with react
Stars: ✭ 160 (-3.61%)
Mutual labels:  babel
Babel Polyfills
A set of Babel plugins that enable injecting different polyfills with different strategies in your compiled code.
Stars: ✭ 158 (-4.82%)
Mutual labels:  babel

Version License Downloads

https://unpkg.com/getlibs

An in-browser module loader configured to get external dependencies directly from CDN. Includes babel/typescript. For quick prototyping, code sharing, teaching/learning - a super simple web dev environment without node/webpack/etc.

Code preview

All front-end libraries

Angular, React, Vue, Bootstrap, Handlebars, jQuery are included. Plus all packages from cdnjs.com and all of NPM (via unpkg.com). Most front-end libraries should work out of the box - just use import/require(). If a popular library does not load, tell us and we'll try to solve it with some library-specific config.

Write modern javascript (or typescript)

Use latest language features or JSX and the code will be transpiled in-browser via babel or typescript (if required). To make it fast the transpiler will start in a worker thread and only process the modified code. Unless you change many files at once or open the project for the first time, the transpiling should be barely noticeable as it runs in parallel with loading and initializing the UI framework.

No server/build required

No need for a build process or even a web server. Just use static files, open in a browser and hit refresh :-). Or run Browsersync in watch mode for auto-reload.

ATTENTION! This is all good for dev environment only. Before going to production, you still need to setup webpack/rollup/eslint/karma/whatever and run a proper build. It is not a good idea to transpile your code in-browser in production (unless it is only required for a small number of older browsers - but we are not there yet :-).

Installation

There is nothing to install, just include a link to getlibs script on CDN -

<script src="https://unpkg.com/getlibs"></script>

Usage

Organize your code as separate modules and call System.import() to load the app.

<script>
    System.import('./main.js');
</script>

Or use <script type="x-module">...</script> to put everything into index.html

ES5/require()
var compile = require('lodash/template'),
    template = require('./hello.tpl'),
    data = require('./hello.json'),
    render = compile(template);

document.getElementById('app').innerHTML = render(data);

[Full Source]   [Open in browser]  

ES6/import
import React from 'react';
import ReactDOM from 'react-dom';
const msg = 'Hello World!';

ReactDOM.render(<h1>{msg}</h1>, document.getElementById('app'));

[Full Source]   [Open in browser]  

Typescript
import {Component} from '@angular/core';

@Component({
    selector: '#app',
    templateUrl: './app.component.html'
})

export class AppComponent {
    msg = 'Hello World!';
}

[Full Source]   [Open in browser]  

Running from filesystem

You will get cross origin errors if you open the examples in chrome directly from the filesystem. To allow file access in chrome lauch it with --allow-file-access-from-files flag (more info).

How it works

getlibs is based on SystemJS module loader. Instead of typical setup where it looks for external packages in node_modules directory, getlibs is configured to load libraries directly from NPM (via unpkg.com) or cdnjs.com, if available.

About

SystemJS is a module loader developed by Guy Bedford.

getlibs is a bundle of SystemJS with a custom config - maintained by ActiveWidgets.

ActiveWidgets

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].