Git Product home page Git Product logo

tunnckocore / esmc Goto Github PK

View Code? Open in Web Editor NEW
4.0 3.0 0.0 340 KB

:fire: Modern JavaScript, today. :sparkles: Blazingly fast zero-config compiler/language/runtime built on @rollup, @babel + ton of optimizations, and @eslint + @prettier, with support for @flowtype and TypeScript.

License: Apache License 2.0

JavaScript 100.00%
javascipt eslint compiler flowtype es2018 unicorns babel cli esm esmodules

esmc's Issues

allow only esm (with no build step)

Like, no build step, bu just copy src to dist/nodejs/ and provide bridge.

Something like

esmc --no-build --flow

Will create dist/nodejs only.

With dist/nodejs/index.js and dist/nodejs/__index.js and respective .js.flow files for each source file.

externalize `src/flowtype/flow-strip.js` to flow-strip-types

So... We can simplify and test there. Also, it's useful thing, since flow-remove-types does not support removing from given files as input. Plus smallprint CLI.

how it would look like

src/bar.js

export const bar = (x: string) => x;

foo.js

export default (z: number) => z;

usage

const flowStripTypes = require('flow-strip-types');

// Map as { [filePath: string]: fileContentString }
const map = await flowStripTypes(['foo.js', 'src/bar.js'], options)

console.log([...map])
// => [
//  ['src/bar.js', 'export const bar = (x) => x'],
//  ['foo.js', 'export default (z) => z']
// ]

roadmap

Built on Hela v3.

  • also look on nve (version manager working cross-platform)

Commands

# defaults to src/index.ts or src/index.js
esmc run

# run file (use node bin + `esm` loader if JS file, and `deno` if TS)
esmc run entry.js
esmc run entry.ts

# build production files to dist
esmc build
esmc build [file or glob]
esmc build --format esm,cjs
esmc build [file or glob] --format esm,cjs

# lint and typecheck if typescript
esmc check 
esmc check [file or glob]

Action Required: Fix Renovate Configuration

There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.

Error type: Cannot find preset's package (t)

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.