2.1.28 • Published 5 months ago

@rbc-dsse/framework-library-vue v2.1.28

Weekly downloads
110
License
ISC
Repository
-
Last release
5 months ago

RBC Wealth Management UI Library Vue.js base code

Project setup

The Vue.js version of library is the main base which the library relies on. The Angular and React libraries are translations of the Vue.js one.

Combined with the style repository and the testing repository, this creates the full ecosystem for the UI library of components for the Design System of RBC Wealth Management.

ProjectDescription
@rbc-dsse/framework-library-angularComponent library in Angular.
@rbc-dsse/framework-library-reactComponent library in React.
@rbc-dsse/framework-library-vueComponent library in Vue.js.
@rbc-dsse/framework-library-cssBase and component styles using SCSS.
@rbc-dsse/framework-library-specsComponent tests using Cypress.

Architecture

v2/
├── framework-library-specs
├── framework-library-css
├── framework-library(-vue)
├── framework-library-angular
└── framework-library-react

Folder structure

/_templates/ 							# contains the Hygen generator templates (https://www.hygen.io/).
/public/ 								# contains the example site.
/tests/ 								# contains configuration for Cypress and E2E testing.
/src/ 									# contains the source code.
├── components/ 						# contains the source code for the components and modules. 
│   └── NameOfComponent
│       ├── index.js 					# for deployment purposes.
│       ├── NameOfComponent.example.vue	# contains the example of the component.
│       ├── NameOfComponent.props.js 	# contains component props.
│       ├── NameOfComponent.specs.js 	# contains component tests.
│       └── NameOfComponent.vue 		# contains the main Vue component.
├── mixins/ 							# contains mixins shared among the components.
├── utils/ 								# contains utilities exported for the library.
└── views/ 								# contains pages for the example site.

Getting started

Install dependencies

npm install

Writing tests

In order to write new test cases or use tests from dev within the framework-library-specs repo, the specs repo must be linked:

cd framework-library-specs
npm link
cd ../framework-library(-vue)
npm link @rbc-dsse/framework-library-specs

To unlink:

cd framework-library(-vue)
npm unlink @rbc-dsse/framework-library-specs
cd ../framework-library-specs
npm unlink

Working with CSS

To add and preview new CSS within the library or to use the latest CSS from dev within the framework-library-css repo, the CSS repo must be linked:

cd framework-library-css
git checkout dev
npm link
cd ../framework-library(-vue)
npm link @rbc-dsse/framework-library-css

If the framework-library-css repo is placed at the same root as the framework-library JS repo, this will enable the npm run dev:css command, which allows the CSS to be viewed and updated alongside the JS library. Otherwise, simply run the npm run dev command in the CSS repo to preview the styles.

To unlink:

cd framework-library(-vue)
npm unlink @rbc-dsse/framework-library-css
cd ../framework-library-css
npm unlink

Contributing

Branching model

The branching model being used is a standard approach. The production code is stored in the master branch and the development code is stored in the dev branch.

All development work should be made on the dev branch, making sure to always pull the latest code before contributing.

  • master : production branch
  • dev : development branch
  • feature/{name of feature} : to branch out and create a feature branch.
  • fix/{name of fix} : to branch out and create a fix branch.

Working with us

You can create a pull request from dev back into dev. If it is an approved feature or fix, a reviewer will approve the changes and merge it into dev.

Working

Compile and hot-reload for development

npm run serve

Compile and minify for production

npm run build

Lint and fix files

npm run lint

Lint and fix CSS

npm run lint:css

Run end-to-end tests

npm run test:e2e

Create a component

npm run component
npm run component {{Name}}

Create a mixin

npm run mixin
npm run mixin {{Name}}
3.0.0-alpha.5

5 months ago

3.0.0-alpha.4

7 months ago

2.1.28

7 months ago

2.1.27

11 months ago

3.0.0-alpha.3

1 year ago

3.0.0-alpha.2

1 year ago

2.1.25

1 year ago

2.1.26

1 year ago

3.0.0-alpha.1

1 year ago

3.0.0-alpha.0

2 years ago

2.1.25-alpha

2 years ago

2.1.24

2 years ago

2.1.23

2 years ago

2.1.22

2 years ago

2.1.19

2 years ago

2.1.21

2 years ago

2.1.20

2 years ago

2.1.18

3 years ago

2.1.17

3 years ago

2.1.16

3 years ago

2.1.15

3 years ago

2.1.14

3 years ago

2.1.13

3 years ago

2.1.12

3 years ago

2.1.10

3 years ago

2.1.11

3 years ago

2.1.9

3 years ago

2.1.8

3 years ago

2.1.7

3 years ago

2.1.6

3 years ago

2.1.5

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.10

3 years ago

2.0.9

3 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.0.18

4 years ago

0.0.17

4 years ago

0.0.16

4 years ago

0.0.15

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.12

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago