Thanks for showing interest in contributing to VSCode CSS Snippets 💖
Valid snippets require below 4 details,
- Snippet Name - A unique name to differentiate from other snippets
- Prefix - Trigger word for IntelliSense
- Body - Actula snippet as array of strings, each one will be displayed in a new line
- Description - Brief info about the snippets
Example:
{
"container": {
"prefix": "container",
"body": [".container {", " width: 100%;", "}", ""],
"description": "A component for fixing an element's width to the current breakpoint."
}
}
Feel free to contact me via Twitter, if you need any help contributing.
If you are generous, consider helping me by following the docs from here.
-
Copy your favourite line/lines of CSS,
Example:
.grid-center {
display: grid;
place-items: center;
}
- Paste them in the Snippet Generator APP in
the
body
(Your snippet...), fill thedescription
(Desciption...) andprefix
(Tab trigger...) - Copy the snippet output from the app.
- Go the Github →
snippet.json
- Click
Edit this file
- pen icon. - Paste the copied snippet inside the curly braces.
- Submit by clicking
Propose changes
button in the bottom of the page. - This will create a fork of my repo to your repos, so you can create a pull request to my repo.
The following steps will get you setup to contribute changes to this repo:
-
Fork the repo (click the Fork button at the top right of this page)
-
Clone your fork locally
# in a terminal, cd to parent directory where you want your clone to be, then
git clone https://github.com/<your_github_username>/vscode-css-snippets.git
cd vscode-css-snippets
Uses yarn
mostly and lerna
just for github releases
- This folder contains all of the files necessary for your extension.
package.json
- this is the manifest file that defines the location of each snippet file and specifies the language of the snippetscontributes.snippets
.snippets/
- the folder containing all snippets.
- New snippets can be created by following the first 3 steps from here
- You can utilize snippet variables to enable interactivity within you snippets
- Check
snippets/breakpoints.json
- Press
F5
to open a new window with your extension loaded. - Create a new file with a file name suffix matching your language.
- Verify that your snippets are proposed on intellisense.
- You can relaunch the extension from the debug toolbar after making changes to the files listed above.
- You can also reload (
Ctrl+R
orCmd+R
on Mac) the VS Code window with your extension to load your changes.
🚨Proceed after testing your snippets inside debug window 🚨
Commits should comply with the commit conventions used in this repository.
Commit using yarn commit
, make sure to yarn install
before running this
command.
yarn commit
is powered by gacp which follows with Conventional Commits and Gitmoji.
When you create a commit we kindly ask you to follow the convention
category(scope or module): <emoji> message
in your commit message while using
one of the following categories:
Add new snippets under feat
category,
feat / feature
: all changes that introduce completely new code or new features
Rest can be used when needed,
fix
: changes that fix a bug (ideally you will addtionally reference an issue if present)refactor
: any code related change that is not a fix nor a featuredocs
: changing existing or creating new documentation (i.e. README, docs for usage of a lib or cli usage)build
: all changes regarding the build of the software, changes to dependencies or the addition of new dependenciesstyle
: changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)perf
: A code change that improves performancetest
: all changes regarding tests (adding new tests or changing existing ones)ci
: all changes regarding the configuration of continous integration (i.e. github actions, ci system)chore
: all changes to the repository that do not fit into any of the above categoriesrevert
: reverts a previous commit
If you are interested in the detailed specification you can visit Conventional Commits or check out the Angular Commit Message Guidelines
Pull requests will be merged by me(@navin-moorthy) once submitted.
- Create a new branch out of the
master
branch. - Commit your changes and push your branch with changes.
- Visit the repo to get a prompt to submit a PR or create a PR manually.
By contributing your code to the chakra-ui GitHub repository, you agree to license your contribution under the MIT license.