forked from fusioninventory/fusioninventory-for-glpi
-
Notifications
You must be signed in to change notification settings - Fork 0
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
125 changed files
with
1,477 additions
and
519 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,13 @@ | ||
sudo: false | ||
|
||
language: node_js | ||
|
||
node_js: | ||
- "0.10" | ||
- "0.12" | ||
- 4 | ||
- 6 | ||
- 7 | ||
|
||
install: | ||
- npm install |
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,53 @@ | ||
Running the tests | ||
----------------- | ||
|
||
Lazy.js has a bunch of tests. They run in Node as well as the browser. To test against Node: | ||
|
||
``` | ||
npm test | ||
``` | ||
|
||
To test against the browser, the easiest method is to just build the site and open it up. | ||
|
||
How to build the site | ||
--------------------- | ||
|
||
The build process for the site is horrendously complicated right now. I'm going to do something about that some day, but today is not that day. In the meantime, here are at least some instructions for how to do it (this is mainly for myself, so that I don't have to job my memory every time I do this). | ||
|
||
First: | ||
|
||
``` | ||
cd site | ||
``` | ||
|
||
Install requirements (if necessary): | ||
|
||
``` | ||
npm install -g deft | ||
bundle install | ||
``` | ||
|
||
Pull in front-end dependencies using deft: | ||
|
||
``` | ||
deft | ||
``` | ||
|
||
Now build the site using middleman: | ||
|
||
``` | ||
middleman build | ||
``` | ||
|
||
(At this point I hand-delete the bower package and npm package badges in the resulting site/build/index.html file. Yes, seriously. Don't judge me.) | ||
|
||
*Now*, head back to the lazy.js root directory, create symlinks, and generate the API docs: | ||
|
||
``` | ||
rake symlinks | ||
rake generate_docs | ||
``` | ||
|
||
Finally, to publish the new site, tar up everything in the build folder, run `git checkout gh-pages`, extract the archive, and push the changes up. | ||
|
||
It's *that* simple. |
File renamed without changes.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Copyright (c) 2014 Dan Tao | ||
Copyright (c) 2014—2018 Dan Tao | ||
|
||
MIT License | ||
|
||
|
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
File renamed without changes.
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
File renamed without changes.
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
File renamed without changes.
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
Oops, something went wrong.