question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature: npm init

See original GitHub issue

I created a little something to get started with a new estrella project: https://github.com/holtwick/create-estrella

You can now enter:

npm init estrella myproj1

To get started.

If you like the idea, I can also pass the project to you.

Other interesting templates might be:

  • Browser library
  • Node library
  • Simple restarting server, see #7

It might also be nice to have it right inside estrella command line tool itself, like:

estrella -init myproj1

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
holtwickcommented, Oct 1, 2020

I fixed create-estrella to use the simple sample you suggested.

More templates will follow and are tracked here https://github.com/holtwick/create-estrella/issues

The module.id trick is neat. Sadly the jest transformer does not support async:

Holtwick-Code-2020-kbK3ekIn@2x

In order to get it work, a synchronous build would be required. It would also be nice to be able to build to a string directly and the handle the result oneself. But I understand if this is out of scope of estrella, even though it would be nice to have 😉

0reactions
holtwickcommented, Oct 1, 2020

Here you go, more templates for create-estrella. @rsms, I would love to hear your opinion on the module template: https://github.com/holtwick/create-estrella/blob/master/template-js-module/build.js

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm-init
It's possible to create a new workspace within your project by using the workspace config option. When using npm init -w <dir> the...
Read more >
Initialize NPM on a new project
npm init. This command will ask you some questions to generate a package.json file in your project route that describes all the dependencies...
Read more >
[FEATURE] prompt for module type as part of npm init #75
As part of npm init , the script should prompt the user for a module type for the project's package.json, with a default...
Read more >
What is npm init? | Career Karma
The npm init command in the JSON language creates a package.json file for your project's frontend. A package.json file is a file that ......
Read more >
Create a new project using the npm init <initializer> command
json file. However, as of npm version 6.1, you can now use a new feature of npm init called the <initializer>. The initializer...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found