https://github.com/julie-ng/cloudkube-ui
Shared CSS styles for demos to be imported by other projects with npm. Multi-repo example.
https://github.com/julie-ng/cloudkube-ui
Last synced: 7 months ago
JSON representation
Shared CSS styles for demos to be imported by other projects with npm. Multi-repo example.
- Host: GitHub
- URL: https://github.com/julie-ng/cloudkube-ui
- Owner: julie-ng
- License: mit
- Created: 2022-04-07T06:22:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-04-07T07:56:19.000Z (over 3 years ago)
- Last Synced: 2025-02-01T02:41:57.510Z (8 months ago)
- Language: SCSS
- Homepage:
- Size: 47.9 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cloudkube-ui
Shared CSS styles for various demos I build.
And example of how to share stylesheets across multiple projects for a unified look - while keeping CSS in its own repo here.
## Local Development
For local development, we'll leverage [npm-link](https://docs.npmjs.com/cli/v8/commands/npm-link)
#### Step 1 - Establish Link
First in _this repo_, run
```
npm link
```#### Step 2 - Use Link
In the repo that should _integrate_ this project, install via local path, e.g.
```
npm install ./../cloudkube-ui
```Then run
```
npm link @cloudkube/ui
```## Builds
Generates CSS file from all the Sass files.
### Dev Builds
Poll regularly for changes and re-build. See [`webpack.dev.js`](./webpack.dev.js)
```
npm run dev
```### Production Builds
Generates a minified CSS build. See [`webpack.config.js`](./webpack.config.js)
```
npm run build
```