Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

theme-creator-cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theme-creator-cli - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0

11

lib/common/write-default-theme.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc