Skip to content

Commit 25fb0db

Browse files
committed
Migrates from travis to github actions
1 parent 0b14054 commit 25fb0db

File tree

3 files changed

+122
-102
lines changed

3 files changed

+122
-102
lines changed

.github/workflows/test.yml

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Node.js CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
strategy:
15+
matrix:
16+
node-version: [14.x, 16.x, 18.x, 19.x]
17+
18+
steps:
19+
- uses: actions/checkout@v3
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- run: npm --version
25+
- run: npm ci
26+
- run: npm test

.travis.yml

-8
This file was deleted.

README.md

+96-94
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,98 @@
1-
# uglifyjs-folder
21

3-
[![Build Status](https://travis-ci.com/ionutvmi/uglifyjs-folder.svg?branch=master)](https://travis-ci.com/github/ionutvmi/uglifyjs-folder)
2+
# uglifyjs-folder
3+
4+
![tests](https://github.com/mihai-vlc/uglifyjs-folder/actions/workflows/test.yml/badge.svg)
5+
6+
Command to run uglifyjs on a folder and minify the result in a single file or a new folder.
7+
Uses the [terser](https://www.npmjs.com/package/terser) package to perform the minification.
8+
9+
## Getting Started
10+
Install the module with: `npm install uglifyjs-folder -g`
11+
12+
13+
## Documentation
14+
Usage
15+
uglifyjs-folder path [options]
16+
17+
options:
18+
-c --comments Add a comment with the file name.
19+
-o --output Specify a file/folder to write the minified code
20+
-e --each Minify each file independently
21+
-x --extension Minified file extension (default: .min.js)
22+
-p --pattern Specifies a comma separated glob patterns for the file selections. Default: **/*.js
23+
--pseparator Specifies the separator for the pattern input. Default: ,
24+
--version Prints the current version from package.json
25+
--config-file Specifies a json configuration file for the terser module
26+
--log-level Specifies the log level used when processing the files. Default: info
27+
-h --help Print this list and exit.
28+
## Examples
29+
$ uglifyjs-folder test-folder
30+
$ uglifyjs-folder test-folder --comments
31+
$ uglifyjs-folder test-folder -o all.min.js
32+
$ uglifyjs-folder test-folder --output all.min.js --pattern "**/*.js,!**/*min.js" # ignore minified files
33+
$ uglifyjs-folder test-folder -eo newFolder
34+
$ uglifyjs-folder test-folder -eo newFolder --log-level error
35+
$ uglifyjs-folder test-folder-es6 -o newFolder
36+
$ uglifyjs-folder test-folder -e -x .js -o test-folder # careful: overwrite all files in test-folder
37+
$ uglifyjs-folder test-folder --config-file "./uglify.json"
38+
where uglify.json contains
39+
{
40+
"keep_fnames": true
41+
}
42+
43+
## Contributing
44+
Pull requests are appreciated.
45+
46+
## Release History
47+
- 29/Dec/2022
48+
- Upgraded terser to 5.16.1
49+
50+
- 31/Oct/2022
51+
- Fixed the line ending during npm publish. Fixes #34
52+
53+
- 21/Aug/2022
54+
- Upgraded terser to 5.14.2
55+
56+
- 02/Apr/2022
57+
- Upgraded terser to 5.12.1
58+
- Upgraded the development dependencies to the latest version
59+
- Removed the testing on node v10 from travis ci
60+
- Fixes #32
61+
62+
- 21/Jun/2021
63+
- Upgraded terser to 5.7.0
64+
- Modified the package API from synchronous to async/await
65+
The cli interface remained the same.
66+
67+
- 23/Jul/2020
68+
- Released 2.0.0 with the terser minifier.
69+
- Removed uglify-js and uglify-es from the dependencies.
70+
- Upgraded all the dependencies to the latest version.
71+
- Adds snapshots testing to the existing testing suite
72+
- Adds the --log-level option
73+
- 20/Apr/2020 - Updated code to use promises for the mkdrip call.
74+
- 18/Apr/2020 - Updated the version for the mkdirp package #22
75+
- 25/Nov/2017 - Added support for sourcemaps via the uglifyjs config file
76+
Exmaple configuration:
77+
```
78+
{
79+
"sourceMap": {
80+
"root": "../src",
81+
"url": "{file}.map"
82+
}
83+
}
84+
```
85+
- 11/Nov/2017 - Added support for the --config-file option
86+
- 11/Nov/2017 - Upgraded to uglify-js@3 and uglify-es@3
87+
- 27/Aug/2017 - Added support for the --pattern and --pseparator flags.
88+
- 06/Feb/2017 - Added support for the --harmony flag.
89+
- 28/Dec/2016 - Added support for sub folder output files.
90+
Example: `uglifyjs-folder test-folder -o newFolder/nested/all.min.js`
91+
- 01/Oct/2016 - Added the --extension flag
92+
- 12/Oct/2014 - Removes the extra files, organizes the code
93+
- 05/Jan/2014 - Initial release
94+
95+
## License
96+
Copyright (c) 2014 - 2020 Mihai Ionut Vilcu
97+
Licensed under the MIT license.
498

5-
Command to run uglifyjs on a folder and minify the result in a single file or a new folder.
6-
Uses the [terser](https://www.npmjs.com/package/terser) package to perform the minification.
7-
8-
## Getting Started
9-
Install the module with: `npm install uglifyjs-folder -g`
10-
11-
12-
## Documentation
13-
Usage
14-
uglifyjs-folder path [options]
15-
16-
options:
17-
-c --comments Add a comment with the file name.
18-
-o --output Specify a file/folder to write the minified code
19-
-e --each Minify each file independently
20-
-x --extension Minified file extension (default: .min.js)
21-
-p --pattern Specifies a comma separated glob patterns for the file selections. Default: **/*.js
22-
--pseparator Specifies the separator for the pattern input. Default: ,
23-
--version Prints the current version from package.json
24-
--config-file Specifies a json configuration file for the terser module
25-
--log-level Specifies the log level used when processing the files. Default: info
26-
-h --help Print this list and exit.
27-
## Examples
28-
$ uglifyjs-folder test-folder
29-
$ uglifyjs-folder test-folder --comments
30-
$ uglifyjs-folder test-folder -o all.min.js
31-
$ uglifyjs-folder test-folder --output all.min.js --pattern "**/*.js,!**/*min.js" # ignore minified files
32-
$ uglifyjs-folder test-folder -eo newFolder
33-
$ uglifyjs-folder test-folder -eo newFolder --log-level error
34-
$ uglifyjs-folder test-folder-es6 -o newFolder
35-
$ uglifyjs-folder test-folder -e -x .js -o test-folder # careful: overwrite all files in test-folder
36-
$ uglifyjs-folder test-folder --config-file "./uglify.json"
37-
where uglify.json contains
38-
{
39-
"keep_fnames": true
40-
}
41-
42-
## Contributing
43-
Pull requests are appreciated.
44-
45-
## Release History
46-
- 29/Dec/2022
47-
- Upgraded terser to 5.16.1
48-
49-
- 31/Oct/2022
50-
- Fixed the line ending during npm publish. Fixes #34
51-
52-
- 21/Aug/2022
53-
- Upgraded terser to 5.14.2
54-
55-
- 02/Apr/2022
56-
- Upgraded terser to 5.12.1
57-
- Upgraded the development dependencies to the latest version
58-
- Removed the testing on node v10 from travis ci
59-
- Fixes #32
60-
61-
- 21/Jun/2021
62-
- Upgraded terser to 5.7.0
63-
- Modified the package API from synchronous to async/await
64-
The cli interface remained the same.
65-
66-
- 23/Jul/2020
67-
- Released 2.0.0 with the terser minifier.
68-
- Removed uglify-js and uglify-es from the dependencies.
69-
- Upgraded all the dependencies to the latest version.
70-
- Adds snapshots testing to the existing testing suite
71-
- Adds the --log-level option
72-
- 20/Apr/2020 - Updated code to use promises for the mkdrip call.
73-
- 18/Apr/2020 - Updated the version for the mkdirp package #22
74-
- 25/Nov/2017 - Added support for sourcemaps via the uglifyjs config file
75-
Exmaple configuration:
76-
```
77-
{
78-
"sourceMap": {
79-
"root": "../src",
80-
"url": "{file}.map"
81-
}
82-
}
83-
```
84-
- 11/Nov/2017 - Added support for the --config-file option
85-
- 11/Nov/2017 - Upgraded to uglify-js@3 and uglify-es@3
86-
- 27/Aug/2017 - Added support for the --pattern and --pseparator flags.
87-
- 06/Feb/2017 - Added support for the --harmony flag.
88-
- 28/Dec/2016 - Added support for sub folder output files.
89-
Example: `uglifyjs-folder test-folder -o newFolder/nested/all.min.js`
90-
- 01/Oct/2016 - Added the --extension flag
91-
- 12/Oct/2014 - Removes the extra files, organizes the code
92-
- 05/Jan/2014 - Initial release
93-
94-
## License
95-
Copyright (c) 2014 - 2020 Mihai Ionut Vilcu
96-
Licensed under the MIT license.

0 commit comments

Comments
 (0)