create-vee
v0.0.14
Published
A collection of vue-laravel templates with login and registration features on the go. Powered by vue, laravel, vite/webpack, vuetify, pinia and crypto-js that is updated, ready for deployment and fully customizable.
Downloads
11
Maintainers
Readme
Turn into .TS
Install
ts-node and typescript
npm install --save-dev ts-node typescript
Test
ts-node script.ts
Update
package.json
"main": "index.js",
"scripts": {
"v-kit": "ts-node index.ts",
"build": "tsc"
},
"bin": {
"create-v-kit": "ts-node index.ts"
},
run function
npm run v-kit
Error Encountered
ts-node wasn't supported by node v21^
Resolve
- remove "type": "module",
- switch back to v16
chalk 4.1.2^ up are not commonjs compatible
Resolve
- npm install [email protected] --save
make a file executable for nodejs
- add this line
#!/usr/bin/env node
no such file or directory
- const sourcePath = path.join(__dirname, 'tmp/v-kit')