Giter Club home page Giter Club logo

es6g-init's People

Contributors

rdig avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

bebersohl lshapz

es6g-init's Issues

Disable `strict mode` on transpiled files

When transpiling, Babel automatically adds use strict on the beginning of the file.

Since this is meant as a quick prototyping environment, we should not restrict anything.

I think it should be possible to remove the strict mode transformation on files.

execute() method does not stream output

The command execution helper method (execute) shows the output of a successful run only after it's done.

For something like npm install this will take a long time (depending on the number of packages) and not show anything for all that time span.

A method that streams the output line by line should be implemented.

No `nodejs` alias command on Windows

Description

Windows does not recognize the nodejs alias versus the node command. The alias is installed by default on unix systems, but not on windows-based ones.

Steps to Reproduce

  1. Install the package via npm i es6g-init or via cloning the repository

Expected behavior: Run the install.js script

Actual behavior: Error: could not find nodejs

Environment

  • OS: Windows x64 Professional
  • Node: 6.9.1
  • Package version: 0.1.0
  • Dependencies versions: not applicable

Prevent install on local repository

This is relevant mostly to contributors.

If you accidentally run npm install on your local repository the install process will run and overwrite / delete your files and folders (even .git, so this means lost work).

Since we don't want to remove the feature of installing via cloning the repo, a way to detect where the npm install was run from need to be implement.

There is such an implementation, that the detects the mode we are in (package/repository).

A naive way would be to check if we are in repository mode and if the local folder name equals the original project name (es6g-init).

Windows cannot spawn process w/o shell

Description

Windows cannot execute commands without spawning a new shell. At the moment we are skipping the shell and spawning a new process directly.

Steps to Reproduce

  1. Install via npm i es6g-init or clone repo

Expected behavior: To install the package

Actual behavior: Error: spawn ENOENT

Environment

  • OS: Windows 7 x64 Professional
  • Node: 6.9.1
  • Package version: 0.1.0
  • Dependencies versions: not applicable

Proposal

We can either revert back to using the exec() method or pass the { shell: true} option to current execFile() method.

I think the second option seems a better approach.

More info github.com/nodejs/node-v0.x-archive/issues/2318

Better install mode detection

The install mode detection detect the mode by looking if the script is invoked from under a node_modules/<your-folder> folder tree.

This is unreliable since you can replicate this folder structure outside of a package / repository.

A better detection method should be implemented.

Not installing on Node.js v4

Description

Node.js v4 does not support multiple es6 syntaxes used thought the helper methods

Steps to Reproduce

  1. Install the package via npm i es6g-init or via cloning the repository

Expected behavior: Install the package

Actual behavior: Crashes with syntax error

Environment

  • OS: Windows 7 x64 Professional
  • Node: 4.4.2
  • Package version: 0.1.0
  • Dependencies versions: not applicable

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.