-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #263 from robertcheramy/update-weblibs
Update weblibs, dependencies & webui
- Loading branch information
Showing
66 changed files
with
53,596 additions
and
2,499 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
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
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
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,64 @@ | ||
# How to run / develop oxidized-web from git | ||
## Using the latest oxidized package | ||
When you develop oxidized-web, it is quite simple to run it from git. As it depends on oxidized, | ||
oxidized will be included in `bundle install`, and you just have to run `bundle exec oxidized`. | ||
You need bundler, if not installed yet. On debian-based systems, you can run `sudo apt install ruby-bundler` to install it. | ||
|
||
All steps in one to copy & pase: | ||
```shell | ||
git clone [email protected]:ytti/oxidized-web.git | ||
cd oxidized-web | ||
bundle config set --local path 'vendor/bundle' | ||
bundle install | ||
bundle exec oxidized | ||
``` | ||
|
||
Changes to haml templates are reloaded on the fly. For changes to the ruby | ||
scripts, you have to stop an restart `bundle exec oxidized`. | ||
|
||
## Paralell development between oxidized and oxidized-web | ||
You may need to make some changes in oxidized **and** oxidized-web. For this, | ||
git clone oxidized and oxidized-web in a common root directory, add the direct | ||
dependency to ../oxidized-web in oxidized and run oxidized from the oxidized | ||
repo: | ||
|
||
```shell | ||
git clone [email protected]:ytti/oxidized-web.git | ||
git clone [email protected]:ytti/oxidized.git | ||
cd oxidized | ||
bundle config set --local path 'vendor/bundle' | ||
echo "gem 'oxidized-web', path: '../oxidized-web'" >> Gemfile | ||
bundle install | ||
bundle exec bin/oxidized | ||
``` | ||
|
||
Be careful when commiting your work in oxidized *NOT* to include the changes to | ||
Gemfile, as this is a local change for development. I (@robertcheramy) didn't | ||
find a better way to do this, better ideas are welcome :-) | ||
|
||
If your changes to oxidized **AND** oxidzed-web are dependent from another, make | ||
sure you document this in the respectives CHANGELOG.md, so that everyone is | ||
informed at the next release. | ||
|
||
# Update the weblibs | ||
The weblibs are beeing downloaded and maintained by `npm`. | ||
|
||
Run `npm install` to download the weblibs. They will be stored under | ||
`node_modules`. | ||
The file `package-lock.json` (wich is tracked in git) ensures that every | ||
developer gets the same versions. | ||
|
||
Run `npm outdated` to get a list of new releases: | ||
|
||
```shell | ||
oxidized-web$ npm outdated | ||
Package Current Wanted Latest Location Depended by | ||
datatables.net-bs5 2.0.7 2.0.8 2.0.8 node_modules/datatables.net-bs5 oxidized-web | ||
``` | ||
|
||
Run `npm update` to get the latest releases. They still are not used | ||
oxidzed-web. Run `rake weblibs` to sync `node_modules` with | ||
`lib/oxidized/web/public/weblibs`. | ||
|
||
Test, and commit the changes to the weblibs **and** package-lock.json. Don't | ||
forget to document your changes in CHANGELOG.md. |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.