As noted in our docs on The Simplest Plugin, if you've never set up a TS/node package before, we greatly recommend using aqu!
yarndlxaqucreatelearn-card-example-plugin? Pick package manager: yarn? Specify package description:() # Describe your plugin!?Packageauthor:# Who are you?? Git repository (onlyforpackage.jsoninformation): ? Pick license: MIT # See https://choosealicense.com/? Pick template: typescriptcdlearn-card-example-plugin
pnpmdlxaqucreatelearn-card-example-plugin? Pick package manager: pnpm? Specify package description:() # Describe your plugin!?Packageauthor:# Who are you?? Git repository (onlyforpackage.jsoninformation): ? Pick license: MIT # See https://choosealicense.com/? Pick template: typescriptcdlearn-card-example-plugin
npxaqucreatelearn-card-example-plugin? Pick package manager: npm? Specify package description:() # Describe your plugin!?Packageauthor:# Who are you?? Git repository (onlyforpackage.jsoninformation): ? Pick license: MIT # See https://choosealicense.com/? Pick template: typescriptcdlearn-card-example-plugin
Create a Github Repo
If you've selected an open source license (such as MIT or ISC), please make a Github Repo containing the code to your plugin! If you've never done this before, we recommend using the Github CLI.
First, create a Github Account, then install and login with the CLI. This is usually done with the following command:
ghauthlogin
After getting all setup, initialize and create the repo with the following commands:
gitinitecho"node_modules/">>.gitignoreecho"dist/">>.gitignoregitadd.gitcommit-m"Initial Commit"ghrepocreate? What would you like to do? Push an existing local repository to GitHub? Path to local repository .? Repository name learn-card-example-plugin? Description Example LearnCard Plugin!?VisibilityPublic✓Createdrepository{REPOSITORY_NAME}onGitHub? Add a remote? Yes? What should the new remote be called? origin✓Addedremote{REPOSITORY_URL}? Would you like to push commits from the current branch to "origin"? Yes✓Pushedcommitsto{REPOSITORY_URL}
After getting a repo up, it's a good idea to add the URL (shown above as {REPOSITORY_URL}) to the package.json!