@zumerbox/build 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ #### [v0.5.0](https://github.com/zumerlab/zumerbox-build/compare/v0.4.0...v0.5.0)
6
+
7
+ > 20 July 2024
8
+
9
+ - Create LICENSE [`56587ef`](https://github.com/zumerlab/zumerbox-build/commit/56587efbe4808a050ee2d4a2fbd11a0c500ce8d7)
10
+ - fix package.json path [`7073add`](https://github.com/zumerlab/zumerbox-build/commit/7073add3c7fc6cb02ba5baeabc04c6043fe9d1a7)
11
+ - Bumped version [`ee97aa4`](https://github.com/zumerlab/zumerbox-build/commit/ee97aa4d176f400dd05576e05c9b7ac39e3d4e57)
12
+
5
13
  #### [v0.4.0](https://github.com/zumerlab/zumerbox-build/compare/v0.3.0...v0.4.0)
6
14
 
7
15
  > 4 April 2024
package/bin/index.js CHANGED
@@ -41,11 +41,18 @@ const argv = yargs
41
41
  type: 'string',
42
42
  default: 'browser'
43
43
  })
44
+ .option('comments', {
45
+ alias: 'c',
46
+ describe: 'Keep comments',
47
+ type: 'boolean',
48
+ default: false
49
+ })
44
50
  .help('h')
45
51
  .alias('h', 'help').argv;
46
52
 
53
+
47
54
  // Read package.json from project directory
48
- const packageJsonPath = './package.json';
55
+ const packageJsonPath = path.resolve(process.cwd(), './package.json');
49
56
  const pkg = require(packageJsonPath);
50
57
 
51
58
  // Use package name from package.json if no name provided
@@ -79,7 +86,7 @@ const options = {
79
86
  css: setBanner()
80
87
  },
81
88
  outdir: argv.outdir,
82
- metafile: true,
89
+ legalComments: argv.comments ? 'inline' : 'none',
83
90
  plugins: [sassPlugin()],
84
91
  platform: argv.platform
85
92
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zumerbox/build",
3
- "version": "0.4.0",
3
+ "version": "0.5.0",
4
4
  "description": "",
5
5
  "author": "Juan Martin Muda",
6
6
  "license": "MIT",