从@abearxiong/config拷贝过来
This commit is contained in:
		
							
								
								
									
										16
									
								
								demo/package.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								demo/package.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "demo",
 | 
			
		||||
  "version": "0.0.1",
 | 
			
		||||
  "description": "",
 | 
			
		||||
  "main": "index.js",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "echo \"Error: no test specified\" && exit 1"
 | 
			
		||||
  },
 | 
			
		||||
  "keywords": [],
 | 
			
		||||
  "author": "abearxiong <xiongxiao@xiongxiao.me>",
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "type": "module",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@kevisual/user-config": "link:.."
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										5
									
								
								demo/src/app/a.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								demo/src/app/a.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,5 @@
 | 
			
		||||
import { getApps } from '@kevisual/user-config/pkgs';
 | 
			
		||||
 | 
			
		||||
const apps = getApps();
 | 
			
		||||
 | 
			
		||||
// apps.micro
 | 
			
		||||
							
								
								
									
										4
									
								
								demo/src/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								demo/src/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,4 @@
 | 
			
		||||
import { useConfig } from '@kevisual/user-config';
 | 
			
		||||
 | 
			
		||||
// console.log(useConfig);
 | 
			
		||||
console.log(useConfig());
 | 
			
		||||
		Reference in New Issue
	
	Block a user