-
Notifications
You must be signed in to change notification settings - Fork 375
Installation and Usage
Garth Braithwaite edited this page Apr 23, 2018
·
1 revision
- Click the download link at topcoat.io or clone the repo
- Reference the
/css
<link rel="stylesheet" type="text/css" href="css/topcoat-mobile-light.min.css">
*Open the [styleguide](http://topcoat.io/topcoat/) for usage examples
- Holy smokes there is no step three!
- Fork http://github.com/Topcoat/Topcoat
- Install Node and run
npm install -g grunt-cli && npm install .
- Modify
package.json
to point to only the controls you need - Run
grunt
to generate your custom build - Fork (or write your own) controls and modify
package.json
point to them
So you want to install a component that is not yet in the npm registry or a newer version (nightly) that has not yet landed in the release. Here is how you can do it.
####1. Installing from Github
You can change the package.json dependencies
"dependencies": {
"<component-name>": "git://github.com/topcoat/<component-name>"
}
####2. Install using npm (link)
If you have the component repository already cloned these are the steps (lets use range-input as an example) :
- (Make sure the component is up to date)
- In the component folder
$ npm link
- In the Topcoat folder (or another folder where the component is specified as a dependency)
$ npm link <component-name>
More about npm link . What you should know is that is uses the local version of the component in the node_modules
folder.
- Fork http://github.com/Topcoat/theme
- Modify various variables files (we are going to simplify this further!)
- Modify
./topcoat-X.X.X/package.json
to point to your theme and rungrunt
"theme": {
"YOUR_GITHUB_ACCOUNT/theme": "TAG_VERSION"
}
- make sure you push a new tag when you make modifications