Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ECMAScript proposal: Package #20

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 22 additions & 2 deletions proposal-template.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,36 @@
# ECMAScript proposal: @Name
# ECMAScript proposal: Package
- [Motivation](#motivation)
- [High-level API](#high-level-api)
- [FAQ](#faq)

## Motivation

Proposal motivation
С багами npm и yarn уже невозможно жить, и вообще это лишние звено.
Все используют какие-то библиотеке, в такой ситуации логично что язык должен взять на себя это бремя. Было круто указывать ссылку на гитхаб с библиотекой и использовать ее сразу. А не как сейчас перейти в консоль, запустить npm/yarn, ждать, пересобирать и только сейчас использовать!

Это нововведение значительно ускорит разработку!

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's impossible to live with the bugs in npm and yarn anymore, and in general it's an extra step. Everyone is using some libraries, in this situation it's reasonable that the language should take it upon itself. It'd be awesome to use a link to a library on github and immediately be able to use it. Instead of the current: going to the console, running npm/yarn, waiting, rebuilding, and only then using it.

This new thing will speed up development significantly

## High-level API

```js
// example code
package 'https://github.com/mrdoob/three.js' // default package
package THREE_OTHER 'https://github.com/mrdoob/three.js' // name package

camera = new THREE.PerspectiveCamera( 70, window.innerWidth / window.innerHeight, 0.01, 10 );
camera.position.z = 1;

scene = new THREE.Scene();

geometry = new THREE.BoxGeometry( 0.2, 0.2, 0.2 );
material = new THREE.MeshNormalMaterial();

mesh = new THREE.Mesh( geometry, material );
scene.add( mesh );

renderer = new THREE.WebGLRenderer( { antialias: true } );
renderer.setSize( window.innerWidth, window.innerHeight );
document.body.appendChild( renderer.domElement );
```

### FAQ
Expand Down