generator-folklore 3.0.16 → 3.0.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/lib/generators/app/index.js +3 -18
  2. package/lib/generators/babel/index.js +0 -12
  3. package/lib/generators/browserslist/index.js +0 -7
  4. package/lib/generators/build/index.js +0 -17
  5. package/lib/generators/cli/index.js +0 -18
  6. package/lib/generators/docs/index.js +3 -32
  7. package/lib/generators/editorconfig/index.js +0 -6
  8. package/lib/generators/eslint/index.js +0 -11
  9. package/lib/generators/html-project/index.js +0 -30
  10. package/lib/generators/intl/index.js +0 -13
  11. package/lib/generators/laravel/index.js +3 -75
  12. package/lib/generators/laravel-auth/index.js +0 -25
  13. package/lib/generators/laravel-mediatheque/index.js +0 -28
  14. package/lib/generators/laravel-package/index.js +0 -33
  15. package/lib/generators/laravel-panneau/index.js +0 -49
  16. package/lib/generators/laravel-project/index.js +9 -76
  17. package/lib/generators/lerna-package/index.js +0 -36
  18. package/lib/generators/lerna-repository/index.js +0 -34
  19. package/lib/generators/node-project/index.js +0 -28
  20. package/lib/generators/npm-package/index.js +0 -36
  21. package/lib/generators/prettier/index.js +0 -11
  22. package/lib/generators/react-app/index.js +3 -28
  23. package/lib/generators/react-package/index.js +0 -33
  24. package/lib/generators/rollup/index.js +0 -13
  25. package/lib/generators/sass-lint/index.js +0 -9
  26. package/lib/generators/scss/index.js +0 -16
  27. package/lib/generators/server/index.js +0 -15
  28. package/lib/generators/storybook/index.js +0 -16
  29. package/lib/generators/stylelint/index.js +0 -11
  30. package/lib/generators/stylelint/templates/stylelintrc +2 -1
  31. package/lib/generators/test/index.js +0 -16
  32. package/lib/lib/generator.js +3 -22
  33. package/lib/lib/mysql.js +0 -10
  34. package/lib/lib/utils.js +0 -4
  35. package/package.json +2 -2
package/lib/lib/mysql.js CHANGED
@@ -8,56 +8,46 @@ module.exports = connection => {
8
8
  if (err) {
9
9
  return reject(err);
10
10
  }
11
-
12
11
  return resolve(rows);
13
12
  });
14
13
  });
15
14
  },
16
-
17
15
  createUser(user, password) {
18
16
  return new Promise((resolve, reject) => {
19
17
  connection.query(`CREATE USER "${user}"@"localhost" IDENTIFIED BY "${password}"`, (err, rows) => {
20
18
  if (err) {
21
19
  return reject(err);
22
20
  }
23
-
24
21
  return resolve(rows);
25
22
  });
26
23
  });
27
24
  },
28
-
29
25
  createDatabaseUser(database, user, password) {
30
26
  return new Promise((resolve, reject) => {
31
27
  connection.query(`GRANT ALL ON \`${database}\`.* TO "${user}"@"localhost" IDENTIFIED BY "${password}"`, (err, rows) => {
32
28
  if (err) {
33
29
  return reject(err);
34
30
  }
35
-
36
31
  return resolve(rows);
37
32
  });
38
33
  });
39
34
  },
40
-
41
35
  grantPrivileges(user, database) {
42
36
  return new Promise((resolve, reject) => {
43
37
  let newDatabase = database;
44
-
45
38
  if (typeof database !== 'undefined' && database && database.length) {
46
39
  newDatabase += '.*';
47
40
  } else {
48
41
  newDatabase = '*.*';
49
42
  }
50
-
51
43
  connection.query(`GRANT ALL PRIVILEGES ON ${newDatabase} TO "${user}"@"localhost" WITH GRANT OPTION`, (err, rows) => {
52
44
  if (err) {
53
45
  return reject(err);
54
46
  }
55
-
56
47
  return resolve(rows);
57
48
  });
58
49
  });
59
50
  }
60
-
61
51
  };
62
52
  return Mysql;
63
53
  };
package/lib/lib/utils.js CHANGED
@@ -4,13 +4,9 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.ensureLeadingDotSlash = ensureLeadingDotSlash;
7
-
8
7
  var _lodash = require("lodash");
9
-
10
8
  var _path = _interopRequireDefault(require("path"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  function ensureLeadingDotSlash(filePath) {
15
11
  return (0, _lodash.isString)(filePath) && !_path.default.isAbsolute(filePath) && filePath.match(/^\./) === null ? `./${filePath}` : filePath;
16
12
  ;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "generator-folklore",
3
- "version": "3.0.16",
3
+ "version": "3.0.17",
4
4
  "description": "Yeoman generator for projects at Folklore",
5
5
  "keywords": [
6
6
  "yeoman-generator"
@@ -40,5 +40,5 @@
40
40
  "yeoman-generator": "^5.7.0",
41
41
  "yeoman-remote": "^1.0.1"
42
42
  },
43
- "gitHead": "6ec0b30e81fd5508831e2b6f7b7337fa9b69e208"
43
+ "gitHead": "74bc16333dab2c70f94aad9439d6daf55388e96e"
44
44
  }