New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@globalbrain/sefirot

Package Overview
Dependencies
Maintainers
1
Versions
283
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@globalbrain/sefirot - npm Package Compare versions

Comparing version 0.6.1 to 0.6.2

lib/assets/styles/bootstrap.css

30

package.json
{
"name": "@globalbrain/sefirot",
"version": "0.6.1",
"version": "0.6.2",
"description": "Vue Components for Global Brain Design System.",

@@ -26,3 +26,3 @@ "files": [

],
"author": "Kia Ishii",
"author": "Kia Ishii <ka.ishii@globalbrains.com>",
"license": "MIT",

@@ -34,3 +34,3 @@ "bugs": {

"@babel/core": "^7.5.5",
"@nuxtjs/dotenv": "^1.3.0",
"@nuxtjs/dotenv": "^1.4.0",
"@nuxtjs/google-analytics": "^2.2.0",

@@ -40,18 +40,16 @@ "@nuxtjs/markdownit": "^1.2.6",

"babel-core": "^6.26.3",
"babel-eslint": "^10.0.2",
"babel-jest": "^24.8.0",
"babel-loader": "^8.0.6",
"babel-eslint": "^10.0.3",
"babel-jest": "^24.9.0",
"babel-preset-env": "^1.7.0",
"codecov": "^3.5.0",
"css-loader": "^2.1.1",
"dayjs": "^1.8.15",
"eslint": "^5.16.0",
"eslint-loader": "^2.2.1",
"eslint-loader": "^3.0.0",
"eslint-plugin-vue": "^5.2.3",
"jest": "^24.8.0",
"jest": "^24.9.0",
"jest-serializer-vue": "^2.0.2",
"markdown-it-highlight": "^0.2.0",
"normalize.css": "^8.0.1",
"nuxt": "^2.8.1",
"portal-vue": "^2.1.5",
"nuxt": "^2.9.1",
"portal-vue": "^2.1.6",
"postcss-css-variables": "^0.13.0",

@@ -63,10 +61,7 @@ "postcss-nested": "^4.1.2",

"vue-jest": "^3.0.4",
"vue-loader": "^15.7.1",
"vue-router": "^3.0.7",
"vue-router": "^3.1.2",
"vue-server-renderer": "^2.6.10",
"vue-template-compiler": "^2.6.10",
"vue-thin-modal": "^1.3.0",
"vuelidate": "^0.7.4",
"webpack": "^4.36.1",
"webpack-dev-server": "^3.7.2"
"vuelidate": "^0.7.4"
},

@@ -92,3 +87,6 @@ "jest": {

]
},
"dependencies": {
"webpack": "^4.39.2"
}
}

@@ -21,15 +21,23 @@ <p align="center">

The project is currently heavily under development and may drastically change while in progress.
Note that Sefirot is focused on being used in Global Brain's ecosystem. Hence the design—UI/UX—of components is quite fixed, and customization capability is limited. In exchange for customizability, we can create components that are more robust, dynamic, and clean.
That's being said, feel free to leverage any component within this project. You may customize them however you want, and if maybe, some component might be valuable to you. Any suggestion, request, or questions are welcome.
## Documentation
You can check out the documentation for Sefirot at https://sefirot.globalbrains.com.
## Getting Started
Install Sefirot via npm or yarn.
At first, install Sefirot via npm or yarn.
```bash
# Via NPM.
$ npm install @globalbrain/sefirot
# Via Yarn.
$ yarn add @globalbrain/sefirot
```
Now you may import components under `lib` directly and use them in your Vue Component.
To begin using the components, you should directly import them from `lib` directory under the Sefirot package.

@@ -54,4 +62,12 @@ ```vue

When compiling your project, don't forget to transpile the code. For example, in Nuxt, you should define the following settings at `nuxt.config.js`.
By design, Sefirot doesn't ship with pre-built files, so you must compile the code in your project. Please follow the following instruction to set up your build system.
Sefirot assumes you have your CSS placed at `@/assets/styles` directory. Make sure to copy styles to your project on the same location. To copy CSS files, simply run the following command. The destination directly (`@`) should depend on your project setup.
```bash
$ cp ./node_modules/@globalbrain/sefirot/lib/assets/styles ./assets/
```
To compile Vue Components, you must have appropriate build settings. For example, in [Nuxt.js](https://nuxtjs.org/), you should define the following settings at `nuxt.config.js`. In addition, Sefirot uses postcss plugins, `postcss-nested` and `postcss-css-variables`. Make sure to define them in your postcss config as well. And the last thing, don't forget to include base bootstrapping global CSS as well.
```js

@@ -62,5 +78,14 @@ export default {

build: {
transpile: ['@globalbrain/sefirot']
}
transpile: ['@globalbrain/sefirot'],
postcss: {
plugins: {
'postcss-nested': {},
'postcss-css-variables': {},
}
}
},
css: ['@/assets/styles/bootstrap']
// ...

@@ -70,4 +95,6 @@ }

Also, Sefirot assumes you have your CSS variables defined at `@/assets/styles/variables`. Make sure to copy styles to your project on the same location. In addition, Sefirot uses postcss plugins, `postcss-nested` and `postcss-css-variables`. Make sure to define them in your postcss config. Again for Nuxt, you should define:
## Easier Component Import
If you think importing components from `@globalbrain/sefirot/lib` is too long to type, you can set up an alias to reduce the boilerplate. Again, this is an example set up on `nuxt.config.js`.
```js

@@ -78,2 +105,7 @@ export default {

build: {
// Alias the package path.
extend (config) {
config.resolve.alias['sefirot'] = '@globalbrain/sefirot/lib'
},
transpile: ['@globalbrain/sefirot'],

@@ -86,3 +118,5 @@

}
}
},
extractCSS: process.env.NODE_ENV === 'production'
}

@@ -94,2 +128,22 @@

With the above setting, you can import components from `sefirot`.
```vue
<template>
<div>
<SButton label="BUTTON" />
</div>
</template>
<script>
import SButton from 'sefirot/components/buttons/SButton'
export default {
components: {
SButton
}
}
</script>
```
## Contribution

@@ -96,0 +150,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc