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 Request] Export static files

See original GitHub issue

I’ve been developing an aurelia-plugin for a legacy library. This library loads some static files asynchronously, which means that these files must be “exported” to the dist folder.

After a long conversation with @AStoker, we came to the conclusion that aurelia-cli needs a feature to export files, like the one that SystemJS Skeleton has. It’s good to emphasize that this feature is different from “resources” key in aurelia.json, that includes files in the bundle.

This feature would be very helpful for handling libraries that weren’t build for modular systems, and it will also solve some others problems like https://github.com/aurelia/cli/issues/248

We were thinking in something like this:

{ 
   “name”: “ckeditor”, 
   “path”: “../node_modules/ckeditor”, 
   “main”:”main”, 
    “resources”: [ 
    ], 
   “exports”: { 
      “editor.js”:”exportLocation/editor.js”, 
      “config.js”:”exportLocation/config.js” 
   } 
} 

However, we have to find anohter name because the key “exports” is being used for other things:

{  
   "name": "bootstrap",  
    "path": "../node_modules/bootstrap/dist",  
    "main": "js/bootstrap.min",  
    "deps": ["jquery"],  
    "exports": "$",  
    "resources": [ "css/bootstrap.css" ]  
} 

I can make the PR if I get the right direction.

What the rest of the team think about this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
AStokercommented, Nov 15, 2016

@fabioluz, for the sake of moving forward, I’d copy. If you’re able to code it up in a way that makes renaming easy down the road, that’d be helpful.

0reactions
fabioluzcommented, Nov 11, 2016

I think that copy and copyToDist are the best so far.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fillable Online Feature Request Export static files Issue #407 aurelia ...
Get the free Feature Request Export static files Issue #407 aurelia/cli GitHub. Feature Request Export static files Issue #407 aurelia/cli GitHub.
Read more >
Exporting Workspace Static Files - APEX - Oracle Help Center
To export workspace static files, use the apex export command with the -expFiles option and provide the workspace ID. In the following example,...
Read more >
Feature request - Export for site content (static blocks / pages)
How it could work If you import Pages and/or Blocks, it could be mapped to all storeview by default, or (like WordPress) show...
Read more >
Advanced Features: Static HTML Export - Next.js
Export your Next.js app to static HTML, and run it standalone without the need of a Node.js server.
Read more >
Understanding static HTML export in Next.js - LogRocket Blog
Learn why you should use HTML static exporting from a Next.js ... to static HTML files, we lose any of the features that...
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