Where is the specification for the file name separated by dot with grant written?

Asked 2 years ago, Updated 2 years ago, 90 views

When I look at angular-fullstack and so on, it seems that the files separated by dot are combined, but I couldn't understand how it works when I looked around Building the files object dynamically.
If anyone knows which documents have specifications for this area, please let me know...
Thank you for your cooperation.

Example: grant-contrib-coffee
Source
main.model.coffee
main.coffee

Output
main.js
main.src.coffee

coffeescript gruntjs

2022-09-30 15:44

1 Answers

The grunt specification does not mean that there is a file merge, but rather that the task defined in Gruntfile.js is merging files.
Grunt is a task runner, so the processing of source conversion, merge, and so on is done by the plug-in used for each task.
The build task should be defined in Gruntfile.js, so if you look at the configuration of the tasks you are performing, you will see how they are combined.

https://github.com/DaftMonk/generator-angular-fullstack/blob/master/app/templates/Gruntfile.js#L812-L831
For angular-fullstack, the following plug-ins are used to build Javascript, so if you check each README, you will be able to read the settings. (This is a pre-project file, so there will be some differences.)

·concat-https://github.com/gruntjs/grunt-contrib-concat
·copy-https://github.com/gruntjs/grunt-contrib-copy
·uglify -https://github.com/gruntjs/grunt-contrib-uglify
·coffee-https://github.com/gruntjs/grunt-contrib-coffee (coffee is not in the build task of Gruntfile.js before generation)


2022-09-30 15:44

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.