ccommand 0.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/README.md ADDED
@@ -0,0 +1,82 @@
1
+ <p align='center'>
2
+ <img src='https://user-images.githubusercontent.com/11247099/111864893-a457fd00-899e-11eb-9f05-f4b88987541d.png' alt='Vitesse - Opinionated Vite Starter Template' width='600'/>
3
+ </p>
4
+
5
+ <h6 align='center'>
6
+ <a href="https://vitesse-lite.netlify.app/">Live Demo</a>
7
+ </h6>
8
+
9
+ <h5 align='center'>
10
+ <b>Lightweight version of <a href="https://github.com/antfu/vitesse">Vitesse</a></b>
11
+ </h5>
12
+
13
+ <br>
14
+
15
+ ## Features
16
+
17
+ - ⚑️ [Vue 3](https://github.com/vuejs/vue-next), [Vite 2](https://github.com/vitejs/vite), [pnpm](https://pnpm.js.org/), [ESBuild](https://github.com/evanw/esbuild) - born with fastness
18
+
19
+ - πŸ—‚ [File based routing](./src/pages)
20
+
21
+ - πŸ“¦ [Components auto importing](./src/components)
22
+
23
+ - 🎨 [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine.
24
+
25
+ - πŸ˜ƒ Use icons from any icon sets in [Pure CSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
26
+
27
+ - πŸ”₯ Use the [new `<script setup>` style](https://github.com/vuejs/rfcs/pull/227)
28
+
29
+ - βœ… Use [Vitest](http://vitest.dev/) for unit and components testing
30
+
31
+ - 🦾 TypeScript, of course
32
+
33
+ - ☁️ Deploy on Netlify, zero-config
34
+
35
+
36
+ <br>
37
+
38
+ See [Vitesse](https://github.com/antfu/vitesse) for full featureset.
39
+
40
+
41
+ ## Dropped Features from [Vitesse](https://github.com/antfu/vitesse)
42
+
43
+ - ~~i18n~~
44
+ - ~~Layouts~~
45
+ - ~~SSG~~
46
+ - ~~PWA~~
47
+ - ~~Markdown~~
48
+
49
+ ## Pre-packed
50
+
51
+ ### UI Frameworks
52
+
53
+ - [UnoCSS](https://github.com/antfu/unocss) - The instant on-demand atomic CSS engine.
54
+
55
+ ### Icons
56
+
57
+ - [Iconify](https://iconify.design) - use icons from any icon sets [πŸ”IcΓ΄nes](https://icones.netlify.app/)
58
+ - [Pure CSS Icons via UnoCSS](https://github.com/antfu/unocss/tree/main/packages/preset-icons)
59
+
60
+ ### Plugins
61
+
62
+ - [Vue Router](https://github.com/vuejs/vue-router)
63
+ - [`vite-plugin-pages`](https://github.com/hannoeru/vite-plugin-pages) - file system based routing
64
+ - [`unplugin-auto-import`](https://github.com/antfu/unplugin-auto-import) - Directly use Vue Composition API and others without importing
65
+ - [`unplugin-vue-components`](https://github.com/antfu/unplugin-vue-components) - components auto import
66
+ - [VueUse](https://github.com/antfu/vueuse) - collection of useful composition APIs
67
+
68
+ ## Try it now!
69
+
70
+ ### GitHub Template
71
+
72
+ [Create a repo from this template on GitHub](https://github.com/Simon-He95/vitesse-lite/generate).
73
+
74
+ ### Clone to local
75
+
76
+ If you prefer to do it manually with the cleaner git history
77
+
78
+ ```bash
79
+ npx degit Simon-He95/vitesse-lite my-vitesse-app
80
+ cd my-vitesse-app
81
+ pnpm i # If you don't have pnpm installed, run: npm install -g pnpm
82
+ ```
@@ -0,0 +1,3 @@
1
+ declare function ccommand(): Promise<void>;
2
+
3
+ export { ccommand };
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var u=require("child_process"),a=require("simon-js-tool");function l(e){return e&&typeof e=="object"&&"default"in e?e:{default:e}}var c=l(u);async function o(){const{scripts:e}=await a.getPkg("./package.json"),r=c.default.spawnSync(`gum choose ${Object.keys(e).reduce((t,n)=>{const i=e[n];return t+=`"${n}: ${i}" `,t},"")}`,{shell:!0,stdio:["inherit","pipe","inherit"],encoding:"utf8"}).output[1];c.default.spawnSync(`npm run ${s(r)}`,{shell:!0,stdio:"inherit"});function s(t){return t.slice(0,t.lastIndexOf(":"))}}o(),exports.ccommand=o;
package/dist/index.mjs ADDED
@@ -0,0 +1,2 @@
1
+ #!/usr/bin/env node
2
+ import c from"child_process";import{getPkg as p}from"simon-js-tool";async function o(){const{scripts:t}=await p("./package.json"),i=c.spawnSync(`gum choose ${Object.keys(t).reduce((n,e)=>{const s=t[e];return n+=`"${e}: ${s}" `,n},"")}`,{shell:!0,stdio:["inherit","pipe","inherit"],encoding:"utf8"}).output[1];c.spawnSync(`npm run ${r(i)}`,{shell:!0,stdio:"inherit"});function r(n){return n.slice(0,n.lastIndexOf(":"))}}o();export{o as ccommand};
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "ccommand",
3
+ "version": "0.0.2",
4
+ "packageManager": "pnpm@6.32.3",
5
+ "description": "ccommand",
6
+ "author": "Simon He",
7
+ "license": "MIT",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git + git@github.com:Simon-He95/ccommand.git"
11
+ },
12
+ "bugs": {
13
+ "url": "https://github.com/Simon-He95/ccommand/issues"
14
+ },
15
+ "keywords": [
16
+ "ccommand",
17
+ "terminal"
18
+ ],
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "require": "./dist/index.js",
23
+ "import": "./dist/index.mjs"
24
+ }
25
+ },
26
+ "main": "./dist/index.js",
27
+ "module": "./dist/index.mjs",
28
+ "types": "./dist/index.d.ts",
29
+ "bin": {
30
+ "ccommand": "dist/index.mjs"
31
+ },
32
+ "files": [
33
+ "dist"
34
+ ],
35
+ "scripts": {
36
+ "build": "pkgroll --minify",
37
+ "dev": "pkgroll --watch",
38
+ "play": "pnpm run -C playground dev",
39
+ "play:build": "pnpm run -C playground build",
40
+ "lint": "eslint .",
41
+ "lint:fix": "eslint . --fix",
42
+ "typecheck": "vue-tsc --noEmit",
43
+ "test": "vitest --dir test -u",
44
+ "ptest": "pnpm run -C playground test -u",
45
+ "preview": "pnpm run -C playground preview",
46
+ "test:e2e": "cypress open",
47
+ "prepublishOnly": "nr build",
48
+ "release": "bumpp --commit --tag --push && git push origin --tags -f && npm publish"
49
+ },
50
+ "dependencies": {
51
+ "@vueuse/core": "^8.1.1",
52
+ "simon-js-tool": "^4.0.23",
53
+ "vue": "^3.2.36"
54
+ },
55
+ "devDependencies": {
56
+ "@antfu/eslint-config": "^0.25.2",
57
+ "@types/node": "^17.0.38",
58
+ "@vitejs/plugin-vue": "^3.0.1",
59
+ "bumpp": "^7.1.1",
60
+ "eslint": "^8.16.0",
61
+ "eslint-plugin-n": "^15.2.1",
62
+ "pkgroll": "^1.3.1",
63
+ "typescript": "^4.7.2",
64
+ "vite": "^3.0.2",
65
+ "vitest": "^0.13.1"
66
+ },
67
+ "eslintConfig": {
68
+ "extends": "@antfu"
69
+ }
70
+ }