generator-folklore 2.2.50 → 2.2.54

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. package/lib/generators/app/index.js +2 -2
  2. package/lib/generators/build/index.js +6 -5
  3. package/lib/generators/docs/index.js +3 -3
  4. package/lib/generators/js/templates/src/components/App.jsx +1 -1
  5. package/lib/generators/laravel/index.js +3 -3
  6. package/lib/generators/lerna-package/templates/gitignore +0 -1
  7. package/package.json +2 -2
  8. package/lib/generators/build/templates/.DS_Store +0 -0
  9. package/lib/generators/html/templates/.DS_Store +0 -0
  10. package/lib/generators/js/templates/.DS_Store +0 -0
  11. package/lib/generators/js/templates/src/.DS_Store +0 -0
  12. package/lib/generators/js/templates/src/components/.DS_Store +0 -0
  13. package/lib/generators/laravel/templates/.DS_Store +0 -0
  14. package/lib/generators/laravel/templates/laravel/.DS_Store +0 -0
  15. package/lib/generators/laravel/templates/laravel/public/.DS_Store +0 -0
  16. package/lib/generators/laravel/templates/laravel/resources/.DS_Store +0 -0
  17. package/lib/generators/laravel/templates/laravel/resources/lang/.DS_Store +0 -0
  18. package/lib/generators/laravel/templates/laravel/routes/.DS_Store +0 -0
  19. package/lib/generators/laravel-auth/templates/.DS_Store +0 -0
  20. package/lib/generators/laravel-auth/templates/app/Notifications/.DS_Store +0 -0
  21. package/lib/generators/laravel-auth/templates/resources/.DS_Store +0 -0
  22. package/lib/generators/laravel-auth/templates/resources/assets/js/components/fields/.DS_Store +0 -0
  23. package/lib/generators/laravel-auth/templates/resources/assets/styles/.DS_Store +0 -0
  24. package/lib/generators/laravel-auth/templates/resources/lang/.DS_Store +0 -0
  25. package/lib/generators/laravel-panneau/templates/.DS_Store +0 -0
  26. package/lib/generators/lerna-repository/templates/.DS_Store +0 -0
  27. package/lib/generators/test/templates/.DS_Store +0 -0
@@ -6,9 +6,9 @@ var _generator = _interopRequireDefault(require("../../lib/generator"));
6
6
 
7
7
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
8
 
9
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
10
10
 
11
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
12
 
13
13
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
14
 
@@ -10,9 +10,9 @@ var _generator = _interopRequireDefault(require("../../lib/generator"));
10
10
 
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
 
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
14
 
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
16
 
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
 
@@ -247,8 +247,8 @@ module.exports = class AppGenerator extends _generator.default {
247
247
  const destPath = this.destinationPath('package.json');
248
248
  const currentData = this.fs.exists(destPath) ? this.fs.readJSON(destPath) : {};
249
249
 
250
- const newData = _objectSpread({}, currentData, {
251
- scripts: _objectSpread({}, currentData.scripts || null, {}, scripts)
250
+ const newData = _objectSpread(_objectSpread({}, currentData), {}, {
251
+ scripts: _objectSpread(_objectSpread({}, currentData.scripts || null), scripts)
252
252
  });
253
253
 
254
254
  this.fs.writeJSON(destPath, newData);
@@ -267,7 +267,8 @@ module.exports = class AppGenerator extends _generator.default {
267
267
  const devDependencies = [// Loaders
268
268
  'babel-loader@latest', 'css-loader@latest', 'eslint-loader@latest', 'file-loader@latest', 'postcss-loader@latest', 'sass-loader@latest', 'style-loader@latest', 'url-loader@latest', // Plugins
269
269
  'html-webpack-plugin@^4.0.0-alpha.2', 'webpack-manifest-plugin@latest', 'case-sensitive-paths-webpack-plugin@latest', 'postcss-preset-env@latest', 'postcss-safe-parser@latest', 'postcss-flexbugs-fixes@latest', 'pnp-webpack-plugin@latest', 'babel-preset-react-app@^6.1.0', 'babel-plugin-named-asset-import@latest', 'terser-webpack-plugin@latest', 'mini-css-extract-plugin@latest', 'optimize-css-assets-webpack-plugin@latest', 'workbox-webpack-plugin@latest', // Others
270
- 'autoprefixer@latest', 'cssnano@latest', 'chalk@latest', 'dotenv@latest', 'dotenv-expand@latest', 'node-sass@latest', 'fs-extra@latest', 'glob@latest', 'pretty-bytes@latest', 'react-dev-utils@^10.0.0', 'webpack@^4.0'];
270
+ 'autoprefixer@latest', 'cssnano@latest', 'chalk@latest', 'dotenv@latest', 'dotenv-expand@latest', 'node-sass@latest', 'fs-extra@latest', 'glob@latest', 'pretty-bytes@latest', 'react-dev-utils@^10.0.0', 'webpack@^4.0' // TODO: update webpack 4
271
+ ];
271
272
  const dependencies = ['whatwg-fetch', 'core-js@^2.4.0', 'promise', 'raf', 'lodash@latest', 'object-assign'];
272
273
 
273
274
  if (this.options.server) {
@@ -10,9 +10,9 @@ var _generator = _interopRequireDefault(require("../../lib/generator"));
10
10
 
11
11
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
12
12
 
13
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
13
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
14
14
 
15
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
15
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
16
16
 
17
17
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
18
18
 
@@ -128,7 +128,7 @@ module.exports = class DocsGenerator extends _generator.default {
128
128
  };
129
129
  const destPath = this.destinationPath('package.json');
130
130
  const packageJSON = this.fs.exists(destPath) ? this.fs.readJSON(destPath) : {};
131
- packageJSON.scripts = _objectSpread({}, packageJSON.scripts, {}, scripts);
131
+ packageJSON.scripts = _objectSpread(_objectSpread({}, packageJSON.scripts), scripts);
132
132
  this.fs.writeJSON(destPath, packageJSON);
133
133
  }
134
134
 
@@ -4,7 +4,7 @@ import { connect } from 'react-redux';
4
4
  import { Route, Switch, useHistory } from 'react-router';
5
5
  import { useUrlGenerator } from '@folklore/react-container';
6
6
 
7
- import * as AppPropTypes from '../lib/PropTypes';
7
+ // import * as AppPropTypes from '../lib/PropTypes';
8
8
  import { resetRequest as resetRequestAction } from '../actions/SiteActions';
9
9
  import MainLayout from './layouts/Main';
10
10
  import HomePage from './pages/Home';
@@ -16,9 +16,9 @@ var _generator = _interopRequireDefault(require("../../lib/generator"));
16
16
 
17
17
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
18
 
19
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
19
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
20
20
 
21
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
21
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
22
22
 
23
23
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
24
24
 
@@ -376,7 +376,7 @@ module.exports = class LaravelGenerator extends _generator.default {
376
376
  url: urlLocal
377
377
  };
378
378
 
379
- const prodTemplateData = _objectSpread({}, templateData, {
379
+ const prodTemplateData = _objectSpread(_objectSpread({}, templateData), {}, {
380
380
  url,
381
381
  db_username: this.options['db-name']
382
382
  });
@@ -34,4 +34,3 @@ publish
34
34
  /lib
35
35
  /es
36
36
  /dist
37
- /package-lock.json
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-folklore",
3
- "version": "2.2.50",
3
+ "version": "2.2.54",
4
4
  "description": "Yeoman generator for projects at Folklore",
5
5
  "keywords": [
6
6
  "yeoman-generator"
@@ -39,5 +39,5 @@
39
39
  "yeoman-generator": "^2.0.3",
40
40
  "yeoman-remote": "^1.0.1"
41
41
  },
42
- "gitHead": "8e793761cef846b76ff63db995dd6be466de9f79"
42
+ "gitHead": "03cdca76413a59fe6bf04ca04e12db6f9e3aad5e"
43
43
  }