@cley_faye/boilerplate 3.1.1 → 3.2.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/README.md CHANGED
@@ -27,7 +27,6 @@ For webapp building:
27
27
  - babel-plugin-transform-define
28
28
  - core-js
29
29
  - @babel/plugin-transform-runtime
30
- - @keeex/grunt-contrib-imagemin
31
30
  - grunt-contrib-pug
32
31
  - grunt-contrib-copy
33
32
  - grunt-contrib-watch
@@ -18,10 +18,10 @@ export interface ImageOptions extends BaseOptions {
18
18
  * Options for the image task configuration.
19
19
  *
20
20
  * @param [imageOptions.options]
21
- * Options to pass to grunt-contrib-imagemin.
21
+ * Options to pass to @cley_faye/imagemin-lite.
22
22
  *
23
23
  * @param [imageOptions.sourcePath]
24
- * Path where the pug templates can be found. Subdirectories will be searched.
24
+ * Path where the source images can be found. Subdirectories will be searched.
25
25
  * Default to "webres/<targetName>"
26
26
  *
27
27
  * @param [imageOptions.outputPath]
@@ -47,10 +47,10 @@ const handledExtensions = [
47
47
  * Options for the image task configuration.
48
48
  *
49
49
  * @param [imageOptions.options]
50
- * Options to pass to grunt-contrib-imagemin.
50
+ * Options to pass to @cley_faye/imagemin-lite.
51
51
  *
52
52
  * @param [imageOptions.sourcePath]
53
- * Path where the pug templates can be found. Subdirectories will be searched.
53
+ * Path where the source images can be found. Subdirectories will be searched.
54
54
  * Default to "webres/<targetName>"
55
55
  *
56
56
  * @param [imageOptions.outputPath]
@@ -63,6 +63,7 @@ const handledExtensions = [
63
63
  */
64
64
  const handle = (gruntConfig, targetName, imageOptions) => {
65
65
  const handledFiles = handledExtensions.map(ext => `**/*${ext}`);
66
+ // TODO use @cley_faye/imagemin-lite once it exists
66
67
  const newImageTask = {
67
68
  options: imageOptions.options,
68
69
  files: [
@@ -75,7 +76,7 @@ const handle = (gruntConfig, targetName, imageOptions) => {
75
76
  ],
76
77
  };
77
78
  const requiredTasks = [
78
- (0, util_js_1.insertTask)(gruntConfig, "imagemin", targetName, newImageTask),
79
+ (0, util_js_1.insertTask)(gruntConfig, "copy", `${targetName}_image`, newImageTask),
79
80
  ];
80
81
  const watchTasks = [
81
82
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cley_faye/boilerplate",
3
- "version": "3.1.1",
3
+ "version": "3.2.0",
4
4
  "description": "Boilerplate code generator for generic projects",
5
5
  "repository": {
6
6
  "type": "git",
@@ -41,7 +41,6 @@
41
41
  "@babel/plugin-transform-runtime": "7.x",
42
42
  "@babel/preset-env": "7.x",
43
43
  "@babel/preset-react": "7.x",
44
- "@keeex/grunt-contrib-imagemin": "4.x",
45
44
  "babel-loader": "8.x",
46
45
  "babel-plugin-transform-define": "2.x",
47
46
  "core-js": "3.x",
@@ -79,9 +78,6 @@
79
78
  "grunt-contrib-pug": {
80
79
  "optional": true
81
80
  },
82
- "grunt-contrib-imagemin": {
83
- "optional": true
84
- },
85
81
  "@babel/plugin-transform-runtime": {
86
82
  "optional": true
87
83
  },