theme-creator-cli
Advanced tools
Comparing version 1.0.0-beta.1 to 1.0.0
@@ -27,4 +27,11 @@ "use strict"; | ||
}).then((dom) => { | ||
dom.window.document = set_dom_themes_1.setDomTheme(defaultTheme, dom.window.document); | ||
return outputFile(htmlFile, dom.serialize()); | ||
// fixed output empty html,when html file is occupied | ||
const bodyContent = dom.window.document.getElementsByTagName("body")[0].innerHTML; | ||
if (bodyContent.length === 0) { | ||
return Promise.reject(`This html file is occupied or empty:\n${htmlFile}`); | ||
} | ||
else { | ||
dom.window.document = set_dom_themes_1.setDomTheme(defaultTheme, dom.window.document); | ||
return outputFile(htmlFile, dom.serialize()); | ||
} | ||
}); | ||
@@ -31,0 +38,0 @@ }); |
110
package.json
{ | ||
"name": "theme-creator-cli", | ||
"version": "1.0.0-beta.1", | ||
"description": "theme creator cli", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"bin": { | ||
"theme-creator-cli": "./lib/index.js" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "https://github.com/huangshuwei", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/huangshuwei/theme-creator-cli.git" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "tsc --watch" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [ | ||
"theme", | ||
"themes", | ||
"switch", | ||
"creator" | ||
], | ||
"dependencies": { | ||
"@types/fs-extra": "^8.1.0", | ||
"@types/lodash": "^4.14.150", | ||
"autoprefixer": "^9.8.0", | ||
"chokidar": "^3.4.0", | ||
"commander": "^5.1.0", | ||
"consola": "^2.12.1", | ||
"jsdom": "^16.2.2", | ||
"less": "^3.11.1", | ||
"postcss": "^7.0.30", | ||
"postcss-discard-duplicates": "^4.0.2", | ||
"postcss-merge-rules": "^4.0.3", | ||
"sass": "^1.26.5", | ||
"uglifycss": "^0.0.29" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.9.6", | ||
"typescript": "^3.8.3" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/huangshuwei/theme-creator-cli/issues" | ||
}, | ||
"homepage": "https://github.com/huangshuwei/theme-creator-cli/blob/master/README.md" | ||
"name": "theme-creator-cli", | ||
"version": "1.0.0", | ||
"description": "theme creator cli", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"bin": { | ||
"theme-creator-cli": "./lib/index.js" | ||
}, | ||
"engines": { | ||
"node": ">=10" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"author": "https://github.com/huangshuwei", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/huangshuwei/theme-creator-cli.git" | ||
}, | ||
"license": "MIT", | ||
"scripts": { | ||
"dev": "tsc --watch" | ||
}, | ||
"files": [ | ||
"lib" | ||
], | ||
"keywords": [ | ||
"theme", | ||
"themes", | ||
"switch", | ||
"creator" | ||
], | ||
"dependencies": { | ||
"@types/fs-extra": "^8.1.0", | ||
"@types/lodash": "^4.14.150", | ||
"autoprefixer": "^9.8.0", | ||
"chokidar": "^3.4.0", | ||
"commander": "^5.1.0", | ||
"consola": "^2.12.1", | ||
"jsdom": "^16.2.2", | ||
"less": "^3.11.1", | ||
"postcss": "^7.0.30", | ||
"postcss-discard-duplicates": "^4.0.2", | ||
"postcss-merge-rules": "^4.0.3", | ||
"sass": "^1.26.5", | ||
"uglifycss": "^0.0.29" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.9.6", | ||
"typescript": "^3.8.3" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/huangshuwei/theme-creator-cli/issues" | ||
}, | ||
"homepage": "https://github.com/huangshuwei/theme-creator-cli/blob/master/README.md" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
31126
573
0