Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for copying extra files to the dist folder in neu build #290

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rahulptl165
Copy link

Fixes: #216 by @cer1969

Add support for copying extra files to the dist folder in neu build

Summary:

This PR introduces a new feature in neu build that allows users to specify additional files to be copied to the dist folder without including them in resources.neu.

Changes Made:

  • Added fileCopier.js module to handle file copying during the build process.
  • Updated build.js to call fileCopier.copier() after bundling application.
  • Introduced copyFiles option in config.js, allowing users to define which files should be copied.

Example Usage

Developers can now add a copyFiles array to their config.js like this:

module.exports = {
    cli: {
        copyFiles: ["app.ini", "config.json"]
    }
};

When running neu build, the specified files will be copied to the dist directory.

Tests:

  • Tested on Windows.
  • Tested on Linux (Needs verification).
  • Tested on macOS (Needs verification).

Looking forward to feedback! 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include app.ini (and others files) file with build
1 participant