generator-folklore 2.2.55 → 3.0.0-alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/generators/app/index.js +2 -2
- package/lib/generators/browserslist/index.js +36 -0
- package/lib/generators/browserslist/templates/browserslistrc +9 -0
- package/lib/generators/build/index.js +2 -2
- package/lib/generators/docs/index.js +2 -2
- package/lib/generators/eslint/index.js +1 -1
- package/lib/generators/eslint/templates/eslintrc +29 -3
- package/lib/generators/laravel/index.js +2 -2
- package/lib/generators/stylelint/index.js +1 -1
- package/lib/generators/stylelint/templates/stylelintrc +6 -2
- package/package.json +9 -9
@@ -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);
|
9
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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]
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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
|
|
@@ -0,0 +1,36 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _chalk = _interopRequireDefault(require("chalk"));
|
4
|
+
|
5
|
+
var _generator = _interopRequireDefault(require("../../lib/generator"));
|
6
|
+
|
7
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
8
|
+
|
9
|
+
module.exports = class BrowsersListGenerator extends _generator.default {
|
10
|
+
get prompting() {
|
11
|
+
return {
|
12
|
+
welcome() {
|
13
|
+
if (this.options.quiet) {
|
14
|
+
return;
|
15
|
+
}
|
16
|
+
|
17
|
+
console.log(_chalk.default.yellow('\n----------------------'));
|
18
|
+
console.log('Browsers list Generator');
|
19
|
+
console.log(_chalk.default.yellow('----------------------\n'));
|
20
|
+
}
|
21
|
+
|
22
|
+
};
|
23
|
+
}
|
24
|
+
|
25
|
+
get writing() {
|
26
|
+
return {
|
27
|
+
editorconfig() {
|
28
|
+
const srcPath = this.templatePath('browserslistrc');
|
29
|
+
const destPath = this.destinationPath('.browserslistrc');
|
30
|
+
this.fs.copy(srcPath, destPath);
|
31
|
+
}
|
32
|
+
|
33
|
+
};
|
34
|
+
}
|
35
|
+
|
36
|
+
};
|
@@ -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);
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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]
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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
|
|
@@ -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);
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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]
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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
|
|
@@ -50,7 +50,7 @@ module.exports = class EslintGenerator extends _generator.default {
|
|
50
50
|
return;
|
51
51
|
}
|
52
52
|
|
53
|
-
this.npmInstall(['babel-preset-airbnb@latest', 'babel-
|
53
|
+
this.npmInstall(['babel-preset-airbnb@latest', '@babel/eslint-parser@latest', 'eslint@latest', 'eslint-config-airbnb@latest', 'eslint-config-prettier@latest', 'eslint-plugin-prettier@latest', 'eslint-plugin-import', 'eslint-plugin-jsx-a11y', 'eslint-plugin-react', 'eslint-plugin-formatjs'], {
|
54
54
|
'save-dev': true
|
55
55
|
});
|
56
56
|
}
|
@@ -1,6 +1,14 @@
|
|
1
1
|
{
|
2
|
-
"extends": ["airbnb", "prettier"
|
3
|
-
"
|
2
|
+
"extends": ["airbnb", "prettier"],
|
3
|
+
"plugins": ["formatjs"],
|
4
|
+
"parser": "@babel/eslint-parser",
|
5
|
+
"parserOptions": {
|
6
|
+
"ecmaVersion": "latest",
|
7
|
+
"requireConfigFile": false,
|
8
|
+
"babelOptions": {
|
9
|
+
"presets": ["@babel/preset-react"]
|
10
|
+
}
|
11
|
+
},
|
4
12
|
"env": {
|
5
13
|
"browser": true,
|
6
14
|
"node": true,
|
@@ -10,7 +18,25 @@
|
|
10
18
|
"rules": {
|
11
19
|
"react/jsx-indent": ["error", 4],
|
12
20
|
"react/jsx-indent-props": ["error", 4],
|
13
|
-
"
|
21
|
+
"react/function-component-definition": [
|
22
|
+
"error",
|
23
|
+
{
|
24
|
+
"namedComponents": [
|
25
|
+
"arrow-function",
|
26
|
+
"function-declaration",
|
27
|
+
"function-expression"
|
28
|
+
],
|
29
|
+
"unnamedComponents": "function-expression"
|
30
|
+
}
|
31
|
+
],
|
32
|
+
"no-console": [
|
33
|
+
"error",
|
34
|
+
{
|
35
|
+
"allow": ["warn", "error"]
|
36
|
+
}
|
37
|
+
],
|
38
|
+
"formatjs/enforce-default-message": ["error", "literal"],
|
39
|
+
"formatjs/no-camel-case": ["error"]
|
14
40
|
},
|
15
41
|
"globals": {
|
16
42
|
"__DEV__": true
|
@@ -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);
|
19
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); 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]
|
21
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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
|
|
@@ -49,7 +49,7 @@ module.exports = class StylelintGenerator extends _generator.default {
|
|
49
49
|
return;
|
50
50
|
}
|
51
51
|
|
52
|
-
this.npmInstall(['stylelint', 'stylelint-config-
|
52
|
+
this.npmInstall(['stylelint', 'stylelint-config-standard-scss', 'stylelint-config-idiomatic-order', 'stylelint-config-prettier'], {
|
53
53
|
'save-dev': true
|
54
54
|
});
|
55
55
|
}
|
@@ -1,8 +1,12 @@
|
|
1
1
|
{
|
2
|
-
"extends": [
|
2
|
+
"extends": [
|
3
|
+
"stylelint-config-standard-scss",
|
4
|
+
"stylelint-config-idiomatic-order",
|
5
|
+
"stylelint-config-prettier"
|
6
|
+
],
|
3
7
|
"rules": {
|
4
8
|
"indentation": 4,
|
5
|
-
"
|
9
|
+
"alpha-value-notation": "number",<% if (camelCase) {%>
|
6
10
|
"selector-class-pattern": [
|
7
11
|
"^[a-z][a-z0-9A-Z]+$",
|
8
12
|
{
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "generator-folklore",
|
3
|
-
"version": "
|
3
|
+
"version": "3.0.0-alpha.0",
|
4
4
|
"description": "Yeoman generator for projects at Folklore",
|
5
5
|
"keywords": [
|
6
6
|
"yeoman-generator"
|
@@ -29,15 +29,15 @@
|
|
29
29
|
},
|
30
30
|
"homepage": "https://github.com/folkloreinc/folklore-js/tree/master/packages/generator-folklore#readme",
|
31
31
|
"dependencies": {
|
32
|
-
"chalk": "^
|
33
|
-
"change-case": "^
|
34
|
-
"glob": "^7.
|
35
|
-
"immutable": "^
|
32
|
+
"chalk": "^4.0.0",
|
33
|
+
"change-case": "^4.1.2",
|
34
|
+
"glob": "^7.2.0",
|
35
|
+
"immutable": "^4.0.0",
|
36
36
|
"is-utf8": "^0.2.1",
|
37
|
-
"lodash": "^4.17.
|
38
|
-
"password-generator": "^2.
|
39
|
-
"yeoman-generator": "^
|
37
|
+
"lodash": "^4.17.21",
|
38
|
+
"password-generator": "^2.3.2",
|
39
|
+
"yeoman-generator": "^5.6.1",
|
40
40
|
"yeoman-remote": "^1.0.1"
|
41
41
|
},
|
42
|
-
"gitHead": "
|
42
|
+
"gitHead": "5bdcf501c865ab0ec3bb655d7d1cf88dab6ff5b6"
|
43
43
|
}
|