Comments (5)
That makes sense.
I guess best practice is for developers to specify the required deps in dev dependencies of the project.
from microcule.
You'll need to get their babel settings, but also the node modules that they depend on (ie, babel plugins and presets)
from microcule.
@ljharb -
Is there a module which will do this already?
Will the users have to modify package.json
dependencies based on their config? Is this automated anywhere?
Trying to get a feel so that this will "just work" for babel users.
Essentially, we need to be able to clone this folder and run npm start
https://github.com/Stackvana/microservice-examples/tree/master/babel-hello-world Current issue is that plugins and presets don't know where to resolve.
from microcule.
When running babel-hello-world
as standalone.
ReferenceError: Unknown plugin "syntax-async-functions" specified in "base" at 0, attempted to resolve relative to "/Users/a/dev/stackvana/microservice-examples/babel-hello-world"
at /Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:177:17
at Array.map (native)
at Function.normalisePlugins (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:153:20)
at OptionManager.mergeOptions (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:245:36)
at OptionManager.init (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/options/option-manager.js:383:12)
at File.initOptions (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/index.js:223:65)
at new File (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/file/index.js:140:24)
at Pipeline.transform (/Users/a/dev/stackvana/stack/node_modules/babel-core/lib/transformation/pipeline.js:46:16)
at Object.compileBabel [as babel] (/Users/a/dev/stackvana/stack/lib/compileServiceCode/babel/index.js:24:16)
at _spawnService (/Users/a/dev/stackvana/stack/lib/spawn.js:186:58)
from microcule.
they need to be installed locally inside the project that references them, i think
from microcule.
Related Issues (20)
- Implement associative arrays for bash services HOT 1
- Ensure that lua variable names and values are escaped
- Update node.js function signature HOT 1
- Can't require local files HOT 3
- Detecting client abort inside hook HOT 3
- Refactor `spawn` plugin into separate module
- Switch `coffee-script` and `babel` to new compiled languages plugin
- Improve bash escape code HOT 1
- Implement JSON support for `golang` and `rust`
- microcule + x-ray + docker streaming error HOT 5
- DeprecationWarnings are written out on the console HOT 3
- Support https connections HOT 2
- spawn EACCESS
- Using nodejs microcule.plugins.spawn doesn't close connection HOT 7
- Populate $_GET and $_POST scope for PHP services
- Add support for .Net Core HOT 2
- Discrepancy in Github and npm installation HOT 3
- How to support logging (console.log) statement in microcule example java script index.js file? HOT 6
- Support websocket connections HOT 2
- Test failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microcule.