atom-open-this icon indicating copy to clipboard operation
atom-open-this copied to clipboard

resolve and open by (beforehand) given paths?

Open aqzhyi opened this issue 8 years ago • 3 comments

Hi, I have a rails app and directory structure like this:

./app/assets/app/modules.js
./app/assets/app/routes.js
./app/assets/app/*
./app/assets/pages/*
./app/assets/partials/*
./app/assets/layouts/*
./gulpfile.babel.js
./.babelrc
./.gitignore
etc.

I will writing import { ngApp } from 'app/modules', import 'app/routes' etc, and resolve by babel resolveModuleSource or NODE_PATH=./.

for now, I have no workaround on this issue.

BTW, atom-autocomplete-modules provided me to configure the Verdor Directories with

image

Did you have any ideas?

image

aqzhyi avatar Mar 07 '16 11:03 aqzhyi

Okay, will try to search user configured pattern. But Im little busy for now need a week to implement. Thanks for suggestion!

t9md avatar Mar 07 '16 12:03 t9md

In webpack, you can configure the option resolve.root to a custom directory, other than node_moduels. This is how I work with big compiled JS projects.

It would be so awesome if this package looked that setting up and searched those directories too!

albertorestifo avatar Apr 08 '16 10:04 albertorestifo

I like this idea. Any development since last year?

jpbochi avatar Jan 26 '17 11:01 jpbochi