-
Notifications
You must be signed in to change notification settings - Fork 861
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
61 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# build your own modules | ||
|
||
KISSY 5 is a collection of independent modulex modules now, if you do not like all of its modules in KISSY 5, | ||
you can build your own modules, as a bonus, you can control each module's version. | ||
|
||
|
||
## create bower.json | ||
|
||
Create bower.json and fill its ``dependencies`` field with the specified versioned modules you what. | ||
|
||
For example: I only want to use loader and anim module | ||
|
||
```javascript | ||
{ | ||
"name":"my-kissy", | ||
"dependencies": { | ||
"modulex":"1.6.2", | ||
"modulex-anim":"1.0.2" | ||
} | ||
} | ||
``` | ||
|
||
## create package.json | ||
|
||
Require ``aggregate-bower`` modules | ||
|
||
For example: | ||
|
||
```javascript | ||
{ | ||
"name":"my-kissy", | ||
"dependencies": { | ||
"aggregate-bower": "^1.0.9" | ||
} | ||
} | ||
``` | ||
|
||
## create build.js | ||
|
||
Copy https://github.com/kissyteam/kissy/blob/master/build.js to your folder | ||
|
||
## build | ||
|
||
Run the following command: | ||
|
||
``` | ||
npm install | ||
bower install | ||
node build | ||
``` | ||
|
||
The files in ``build/`` folder is what you want, you can load ``build/seed.js`` and use your own custom kissy version. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters