-
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.
Migrate from KastenHQ/website archive
Signed-off-by: Mark <[email protected]>
- Loading branch information
Showing
11 changed files
with
17,343 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
kanister.io | ||
node_modules | ||
package-lock.json | ||
# TODO: better sources? | ||
app/src |
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 @@ | ||
18.16.1 |
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,50 @@ | ||
|
||
# Kanister.io web site | ||
|
||
## Getting started | ||
### Make sure you have node/npm installed | ||
Node is the Javascript runtime and includes NPM, the Node Package Manager, which installs all the JS dependencies. | ||
|
||
If you have a Mac and use Homebrew, you can install with `brew install node`. Otherwise, see these instructions: https://docs.npmjs.com/getting-started/installing-node. | ||
|
||
#### OPTIONAL: [anyenv](https://anyenv.github.io/) and nodenv for virtual node environments | ||
|
||
Visit https://nodejs.org/en and find the LTS release, at the time of this writing it was: 18.17.0, the latest was: 20.4.0 | ||
|
||
```bash | ||
# the following are directory independent | ||
brew install anyenv | ||
# add to your shell startup file: ~/.*rc: eval "$(anyenv init -)" | ||
exec $SHELL -l # reload your shell | ||
|
||
yes | anyenv install --init \ | ||
&& anyenv install --list | ||
|
||
anyenv install nodenv && exec $SHELL -l | ||
nodenv install --list | grep ^18 # 18.16.1 | ||
nodenv install 18.16.1 && nodenv local $_ && nodenv local # confirm version | ||
|
||
# OPTIONAL: update npm and dependencies to latest | ||
npm --version && npm install -g npm@latest && npm --version | ||
npm outdated -g --depth=0 && npm update -g corepack | ||
node --version && npm --version && npx --version # confirm versions | ||
|
||
# OPTIONAL: to reset to a clean environment | ||
npm cache clean --force && rm -rf node_modules package-lock.json kanister.io | ||
``` | ||
|
||
### Install Node package dependencies | ||
```shell | ||
npm install | ||
``` | ||
|
||
## Making changes to the web site | ||
The website is built from source by a build process called [Gulp](https://gulpjs.com/docs/en/getting-started/quick-start). The default build target is `build-kanister`. | ||
|
||
```bash | ||
npx gulp # executes default target in gulpfile.js | ||
|
||
# OPTIONAL: to allow `gulp build` | ||
npm install gulp-cli | ||
``` | ||
|
Oops, something went wrong.