creative-patterns
v2.16.2
Published
Pattern library developed and maintained by cool people at creativestyle.
Downloads
7
Readme
creativepatterns
This is creativestyle's pattern library that will contain all of the awesome code written by our great developers.
Local installation
To install the local copy of the library:
- Make sure you have
node >=4.0.0
installed on your computer, you can runnode -v
in console to check it. - Clone the repository.
- Run
npm install
in project's root to install all of the needed dependencies. - Run
npm run serve
to build the library and start its website.
Essential commands
Since pattern library's build system is based on gulp, here are some most essential commands which are helpful when working with it.
npm run build
orgulp build
- Builds entire pattern library.npm run serve
orgulp serve
- Builds entire pattern library and fires up local dev server which let's you browse the files.npm run test
orgulp test
- Build scripts and runs unit tests.- Use
-w
or--watch
flag to rerun tests each time files change. - Use
-p package_path
or--package package_path
to run tests for single package wherepackage_path
is a path relative topackages
directory.
- Use
npm run lint
orgulp lint
- Lints scripts and styles according to our code style rules.
Adding new components
- Clone it!
- Run
npm install
in project's root to install all of the needed dependencies. - Run
npm run generator
to fire up component generator. - Follow generator instructions.
- Write your code in newly generated directory.
- Add documentation and tests.
- Follow Contributing guide since point 2.
Contributing
- Clone it!
- Create your feature branch:
git checkout -b feature-my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin feature/my-new-feature
- Submit a merge request :D