-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
1,359 additions
and
818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ rules: | |
- 2 | ||
- 2 | ||
- | ||
SwitchCase: 1 | ||
VariableDeclarator: | ||
var: 2 | ||
let: 2 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "magento2-frontools", | ||
"version": "1.10.0", | ||
"version": "1.11.0", | ||
"author": { | ||
"name": "Bartek Igielski", | ||
"email": "[email protected]" | ||
|
@@ -12,12 +12,12 @@ | |
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/core": "^7.11.6", | ||
"@babel/preset-env": "^7.11.5", | ||
"@babel/core": "^7.12.3", | ||
"@babel/preset-env": "^7.12.1", | ||
"ansi-colors": "^4.1.1", | ||
"autoprefixer": "^9.7.3", | ||
"browser-sync": "^2.26.12", | ||
"chokidar": "^3.4.2", | ||
"browser-sync": "^2.26.13", | ||
"chokidar": "^3.4.3", | ||
"cssnano": "^4.1.10", | ||
"esm": "^3.2.25", | ||
"fancy-log": "^1.3.3", | ||
|
@@ -42,14 +42,15 @@ | |
"gulp-svg-sprite": "^1.5.0", | ||
"gulp-uglify": "^3.0.2", | ||
"js-yaml": "^3.14.0", | ||
"marked": "^1.1.1", | ||
"magepack": "^2.4.0", | ||
"marked": "^1.2.2", | ||
"marked-terminal": "^4.1.0", | ||
"merge-stream": "^2.0.0", | ||
"minimist": "^1.2.5", | ||
"node-sass": "^5.0.0", | ||
"postcss-reporter": "^6.0.1", | ||
"run-sequence": "^2.2.1", | ||
"sass": "^1.27.0", | ||
"sass": "^1.28.0", | ||
"stylelint": "^11.1.1", | ||
"stylelint-config-standard": "^19.0.0" | ||
}, | ||
|
@@ -66,6 +67,8 @@ | |
"emailfix": "gulp emailfix", | ||
"eslint": "gulp eslint", | ||
"inheritance": "gulp inheritance", | ||
"magepackBundle": "gulp magepackBundle", | ||
"magepackGenerate": "gulp magepackGenerate", | ||
"sasslint": "gulp sasslint", | ||
"setup": "gulp setup", | ||
"styles": "gulp styles", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import bundle from 'magepack/lib/bundle' | ||
|
||
import getThemes from '../helpers/get-themes' | ||
import { env, projectPath, themes } from '../helpers/config' | ||
|
||
function getThemesGlobPattern() { | ||
const themesNames = getThemes() | ||
|
||
if (themesNames.length === 1) { | ||
return `${projectPath}${themes[themesNames[0]].dest}/*` | ||
} | ||
|
||
return `${projectPath}{${themesNames.map(name => themes[name].dest).join(',')}}/*` | ||
} | ||
|
||
export default async function() { | ||
const configPath = env.c || env.config | ||
const themesGlobPattern = getThemesGlobPattern() | ||
await bundle(configPath, themesGlobPattern) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import generate from 'magepack/lib/generate' | ||
|
||
import { env } from '../helpers/config' | ||
|
||
export default async function() { | ||
const config = { | ||
cmsUrl: env['cms-url'], | ||
categoryUrl: env['category-url'], | ||
productUrl: env['product-url'], | ||
authUsername: env.u || env['auth-username'], | ||
authPassword: env.p || env['auth-password'], | ||
debug: env.d || env.debug || false | ||
} | ||
|
||
await generate(config) | ||
} |
Oops, something went wrong.