Skip to content
This repository has been archived by the owner on Sep 3, 2020. It is now read-only.

tcrowe/modular-js-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

modular-js-helper

Atom plugin for easily import-ing or require-ing your modules. We want this plugin to be the most helpful, most robust, and most complete modular JS(and TS) helper.

Module types:

  • CommonJS require
  • ESM import
  • AMD define

It searches:

  • files in each project
  • node_modules
  • package.jsondependencies & devDependencies

./img/readme-settings.png

./img/readme-keybindings.png

Table of Contents

Crowdfund

Thank you for contributing your time or money to help this plugin. Funds will go directly to contributors that are answering questions, writing code, or to fund bounties.

Contact @tcrowe until we setup payment options as a community.

Why? Aren't there other plugins that do this already?

Yes, but they don't work or they aren't really that helpful. You have to be able to search all the known files and modules. Once you've cataloged the files you then need to intelligently add the snippet into the code.

This plugin searches in many different places and allows you to configure the way it searches. The configuration allows you to choose import, require, or even define from AMD modules.

These are the others which are for specific use cases, incomplete, not working, or out-of-date.

require-ing

import-ing

Development

Atom plugins can be difficult to develop so lets go over how to develop on this and power it up to be the best plugin.

Configuration

See ./package.json#configSchema

It's a JSON Schema object.

Atom Config object

Scripts

# analyze code during development
npm run dev

# before commit, run production script, format docs
npm run prd

npm run prd will format the readme with remark and run tests with mocha.

Copying, license, and contributing

Copyright (C) Tony Crowe 2020 https://tcrowe.github.io/contact/

Thank you for using and contributing to make modular-js-helper better.

⚠️ Please run npm run prd before submitting a patch.

⚖️ modular-js-helper is Free Software protected by the GPL 3.0 license. See ./COPYING for more information. (free as in freedom)

About

⚛️ Atom editor plugin for ESM import, CommonJS require, and AMD define ⚛️ | Moved to https://tcrowe.commons.host/contact

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published