@das-fed/cli 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commands/dev-helper/index.js +1 -1
- package/src/vite-plugins/das-fe-ui/core/style.js +1 -1
- package/src/vite-plugins/das-fe-web/core/das-fe-web.js +1 -0
- package/src/vite-plugins/das-fe-web/core/style.js +1 -0
- package/src/vite-plugins/das-fe-web/index.js +1 -1
- package/src/vite-plugins/index.js +1 -1
- package/src/commands/dev-helper/init-das-icons.js +0 -0
package/package.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
import{initGitignore}from"./init-git-ignore.js";import{initPublicConfig}from"./init-public-config.js";import{initWatchers}from"./watchers/index.js";import fs from"fs-extra";import{resolve}from"path";import{fileURLToPath}from"url";import{dirname}from"path";import{execSync}from"child_process";const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),runPackageScript=async(i,r)=>{var i=resolve(__dirname,"../../../../",i),e=resolve(i,r);await fs.exists(e)&&execSync("node "+r,{cwd:i})};export default{handle:async i=>{console.log("das-cli dev-helper running!");var r={cwd:process.cwd(),isDev:!0};initGitignore(r),initPublicConfig(r),initWatchers(r),runPackageScript("das-ui","scripts/utils/build-svg-icon.js")}};
|
1
|
+
import{initGitignore}from"./init-git-ignore.js";import{initPublicConfig}from"./init-public-config.js";import{initWatchers}from"./watchers/index.js";import fs from"fs-extra";import{resolve}from"path";import{fileURLToPath}from"url";import{dirname}from"path";import{execSync}from"child_process";const __filename=fileURLToPath(import.meta.url),__dirname=dirname(__filename),runPackageScript=async(i,r)=>{var i=resolve(__dirname,"../../../../",i),e=resolve(i,r);await fs.exists(e)&&execSync("node "+r,{cwd:i,stdio:"inherit"})};export default{handle:async i=>{console.log("das-cli dev-helper running!");var r={cwd:process.cwd(),isDev:!0};initGitignore(r),initPublicConfig(r),initWatchers(r),runPackageScript("das-ui","scripts/utils/build-svg-icon.js"),runPackageScript("das-ui","scripts/utils/gen-components-entry.js")}};
|
@@ -1 +1 @@
|
|
1
|
-
import{createStyleImportPlugin}from"vite-plugin-style-import";const UIStyleResolve=()=>({libraryName:"@das-fed/ui",base:"@das-fed/ui/style/index.css"}),businessUIStyleResolve=()=>({libraryName:"@das-fed/ui/packages/business",base:"@das-fed/ui/style/business.css"}),DasUIStyleImport=(e={})
|
1
|
+
import{createStyleImportPlugin}from"vite-plugin-style-import";const UIStyleResolve=()=>({libraryName:"@das-fed/ui",base:"@das-fed/ui/style/index.css"}),businessUIStyleResolve=()=>({libraryName:"@das-fed/ui/packages/business",base:"@das-fed/ui/style/business.css"}),DasUIStyleImport=(e={})=>e.styleResolve?createStyleImportPlugin({resolves:[UIStyleResolve(),businessUIStyleResolve()]}):null;export{DasUIStyleImport};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{resolve}from"path";const dasFeWeb=e=>{let r;return{name:"das-fe-web",config:(e,{})=>({resolve:{alias:{"@":resolve(process.cwd(),"src")}}}),configResolved(e){r=e},buildStart:async()=>{r.cwd=resolve(process.cwd())},transformIndexHtml:{order:"post",handler:()=>{let e="development"===r.mode?"/config.local.js":"/config.js";return[{tag:"script",attrs:{src:e}}]}}}};export{dasFeWeb};
|
@@ -0,0 +1 @@
|
|
1
|
+
import{createStyleImportPlugin}from"vite-plugin-style-import";const WebStyleResolve=()=>({libraryName:"@das-fed/web",base:"@das-fed/web/style.css"}),DasWebStyleImport=(e={})=>e.styleResolve?createStyleImportPlugin({resolves:[WebStyleResolve()]}):null;export{DasWebStyleImport};
|
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
export*from"./core/das-fe-web.js";export*from"./core/style.js";
|
@@ -1 +1 @@
|
|
1
|
-
import{dasFeWeb}from"./das-fe-web/index.js";import{DasUIStyleImport}from"./das-fe-ui/index.js";import{checkInLocalWorkspace}from"../utils/check-local-workspace.js";const dasFeWebVitePlugin=async(e={})=>{var{dasWeb:e={},dasUI:s={
|
1
|
+
import{dasFeWeb,DasWebStyleImport}from"./das-fe-web/index.js";import{DasUIStyleImport}from"./das-fe-ui/index.js";import{checkInLocalWorkspace}from"../utils/check-local-workspace.js";const dasFeWebVitePlugin=async(e={})=>{var{dasWeb:e={styleResolve:!0},dasUI:s={styleResolve:!0}}=e||{};return await checkInLocalWorkspace()&&(e.styleResolve=!1,s.styleResolve=!1),[dasFeWeb(e),DasWebStyleImport(e),DasUIStyleImport(s)]};export{dasFeWebVitePlugin};
|
File without changes
|