开源软件名称(OpenSource Name):alistapart/pattern-library开源软件地址(OpenSource Url):https://github.com/alistapart/pattern-library开源编程语言(OpenSource Language):HTML 51.1%开源软件介绍(OpenSource Introduction):pattern-libraryThe ALA Pattern Library. Contribution GuideLet’s build stuff, you guys. Getting StartedRunning the ProjectWe're using Node.js, NPM (Node Package Manager), and Grunt.js to manage the code in this repo. To preview code locally, you'll need to install Node and NPM, then run the following commands from a terminal window, in the repo directory: $ npm install
$ grunt Those commands do the following:
Once run, you can preview the site by pointing a web server at the We have set up a $ grunt && grunt watch Setting up Your Dev EnvironmentUsing MAMP or Apache or what-have-you, you’ll want to create a virtualhost that points at Adding PatternsAll patterns are separate HTML files that live in /patterns. Ideally, the file name should be the same as the pattern's main class name. Add a file to see it in the library. If you'd like to add usage notes to a pattern, add a .txt file with the same name as the .html file and it'll get pulled into the right place. Reporting IssuesIf you encounter a bug, please report it in the issue tracker. Before opening a new issue, have a quick look to see whether a similar issue already has already been reported—if so, better to comment on that thread. When submitting an issue, do your best to include the following:
Feature RequestsIf you have an idea for a new feature or a suggestion how to improve an existing feature, let us know! Open a new issue to describe your request. SubmittingWhen submitting a pull request for review there are a few important steps you can take to ensure that it gets reviewed quickly and increase the chances that it will be merged (in order of descending importance):
RebasingOften times when working on a feature or bug fix branch it's useful to pull in the latest from the parent branch. If you're doing this before submitting a pull request it's best to use git's rebase to apply your commits onto the latest from the parent branch. For example, working on git checkout new-feature
git pull --rebase upstream master
## You may have to resolve some conflicts here. You can now push to your own fork to both update it and add your commit(s), then submit your pull request. Keep in mind that it’s only a good idea to do this if you haven't already submitted a pull request, unless you want to create a new one. Have a look at Pro Git’s chapter on rebasing to learn more. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论