codesource_in_one_file is a powerful tool designed to magically concatenate JavaScript files from various nested directories into a single, unified file. Ideal for projects requiring consolidation of JS scripts for analysis, deployment, or any form of processing where merging JS files becomes necessary. This project leverages Python for scripting and Docker for easy and consistent setup and execution across any environment.
These instructions will get your copy of the project up and running on your local machine for development and testing purposes.
- Python 3.11 or later
- Docker
-
Clone the repository
git clone https://github.com/elhaddajiotmane/codesource_in_one_file .git cd codesource_in_one_file
-
Build the Docker image
Navigate to the project directory and build the Docker image:
docker build -t codesource_in_one_file .
-
Run the container
With the Docker image built, you can now run the container. Adjust the volume paths to match your project structure:
docker run -e START_PATH=/data -e OUTPUT_FILE_PATH=/data/combined.js -v <path/to/your/js/files>:/data codesource_in_one_file
The primary function of codesource_in_one_file is to search through a specified directory for JavaScript files, concatenating their contents into a single file. This is particularly useful for preparing scripts for certain types of deployment or analysis.
To customize the paths and behavior, modify the environment variables START_PATH
and OUTPUT_FILE_PATH
in the Docker run command accordingly.
Please read [CONTRIBUTING.md](https://github.com/elhaddajiotmane/codesource_in_one_file /CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
- OTMANE ELHADDAJI - Initial work - elhaddajiotmane
See also the list of [contributors](https://github.com/elhaddajiotmane/codesource_in_one_file /contributors) who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Hat tip to anyone whose code was used
- Inspiration
- etc