Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: better frameworks like cli #115

Merged
merged 44 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
a78b815
better cli
vasucp1207 Aug 3, 2023
abc2096
playground
vasucp1207 Aug 3, 2023
04cdc5c
build project
vasucp1207 Aug 3, 2023
c81c506
build project
vasucp1207 Aug 3, 2023
78551d2
remove esbuild templates
vasucp1207 Aug 4, 2023
51df8a4
remove esbuild templates
vasucp1207 Aug 4, 2023
1bdaba8
update test
vasucp1207 Aug 4, 2023
1d36e1e
trying building the package
vasucp1207 Aug 5, 2023
c387dcd
trying building the package
vasucp1207 Aug 5, 2023
82cd7ac
move files to scr/ folder
vasucp1207 Aug 6, 2023
5459f1b
move files to scr/ folder
vasucp1207 Aug 6, 2023
0499830
deepMerge fix
vasucp1207 Aug 6, 2023
2884f69
adding file to package.json
vasucp1207 Aug 6, 2023
26cb8db
adding template/ to package
vasucp1207 Aug 7, 2023
a0e0890
build change
vasucp1207 Aug 7, 2023
58b4e46
remove emptyDir and renderDir
vasucp1207 Aug 8, 2023
91da4bf
replace with cross-spawn
vasucp1207 Aug 9, 2023
ac5536a
replace with cross-spawn
vasucp1207 Aug 9, 2023
c375ed7
remove cross-spawn
vasucp1207 Aug 10, 2023
f027c6c
remove cross-spawn
vasucp1207 Aug 10, 2023
e01c429
Update contrib/create-waku/src/cli.ts
vasucp1207 Aug 12, 2023
c8e8b96
Update contrib/create-waku/src/cli.ts
vasucp1207 Aug 12, 2023
5ffbd5e
Update contrib/create-waku/src/cli.ts
vasucp1207 Aug 12, 2023
0713dc4
relative to the script location
vasucp1207 Aug 14, 2023
045d405
remove test file
vasucp1207 Aug 16, 2023
6cffde3
Update contrib/create-waku/src/cli.ts
vasucp1207 Aug 16, 2023
2a98e6a
Update contrib/create-waku/src/cli.ts
vasucp1207 Aug 16, 2023
2fc635b
refactor
vasucp1207 Aug 16, 2023
5fa654c
packageJson write
vasucp1207 Aug 16, 2023
00bc21f
packageJson write
vasucp1207 Aug 16, 2023
ef34f61
remove render
vasucp1207 Aug 17, 2023
6b1ede3
remove render
vasucp1207 Aug 17, 2023
c65f424
rebase
vasucp1207 Aug 30, 2023
9dff783
new monorepo structure
vasucp1207 Aug 30, 2023
b7f030c
new monorepo structure
vasucp1207 Aug 30, 2023
f025623
update dir structure
vasucp1207 Aug 30, 2023
6b990b3
Update package.json
vasucp1207 Aug 30, 2023
472d830
update pnpm yaml
vasucp1207 Sep 2, 2023
31792f0
Update packages/create-waku/package.json
dai-shi Sep 3, 2023
2a52aac
types for fs-extra
vasucp1207 Sep 3, 2023
81a54d0
Update types.d.ts
vasucp1207 Sep 3, 2023
016f005
fix prettier issue
vasucp1207 Sep 4, 2023
47e71fa
Update .gitignore
vasucp1207 Sep 5, 2023
4c549d9
Update packages/create-waku/src/cli.ts
dai-shi Sep 5, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 0 additions & 46 deletions contrib/create-waku/cli.js

This file was deleted.

288 changes: 288 additions & 0 deletions contrib/create-waku/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 25 additions & 1 deletion contrib/create-waku/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
{
"name": "create-waku",
"version": "0.4.10",
"bin": "./cli.js"
"bin": "dist/cli.js",
"files": [
"src",
"dist",
"template"
],
"type": "commonjs",
dai-shi marked this conversation as resolved.
Show resolved Hide resolved
"scripts": {
dai-shi marked this conversation as resolved.
Show resolved Hide resolved
"start": "node dist/cli.js",
"template": "cp -r ../../examples template/",
"test": "node dist/generateTemplates.test.js",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How and when do I use this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy templates with npm run template before publishing the package, npm run start is just for running the cli locally.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we run npm test after npm run template?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would still like to learn it.

"build:esbuild": "esbuild src/* --bundle --platform=node --outdir=dist"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"build:esbuild": "esbuild src/* --bundle --platform=node --outdir=dist"
"build": "esbuild src/* --bundle --platform=node --outdir=dist"

},
"dependencies": {
"cross-spawn": "^7.0.3",
"kolorist": "^1.8.0",
"prompts": "^2.4.2"
},
"devDependencies": {
"@types/cross-spawn": "^6.0.2",
"@types/node": "^20.4.7",
"@types/prompts": "^2.4.4",
"esbuild": "0.18.17",
"typescript": "^5.1.6"
}
}
Loading