2.1.16 • Published 1 year ago

lmr-brandplatform v2.1.16

Weekly downloads
187
License
MIT
Repository
bitbucket
Last release
1 year ago

Little Miss Robot - Brandplatform (Core)

This repository contains the brandplatform npm package. The package defines the core functionality of every deployed branplatform. This package works very well with the Little Miss robot brandplatform boilerplate.

Installation

  1. Clone repository through an IDE or your terminal.
  2. Run npm install in your terminal to install dependencies.
  3. Run npm run start to start the development environment.
  4. The project is accessible at localhost:9000.

Simulate styleguide

const COMPONENT = button;
  1. Create the folder styleguide in /src
  2. Add folder components to /src/styleguide
  3. Add folder COMPONENT to /src/styleguide/components
  4. Create a file COMPONENT-page.njk within /src/styleguide/components/COMPONENT

Simulate component

const COMPONENT = button;
  1. Add a COMPONENT to /src/styleguide/components
  2. Create a file COMPONENT-page.njk within /src/styleguide/components/COMPONENT
  3. Pase this content into COMPONENT-page.njk

    {# ========================================================================== #}
    {# :: Info #}
    {# ========================================================================== #}
    {# {% set info %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: Modifiers #}
    {# ========================================================================== #}
    {# {% set modifiers %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: States #}
    {# ========================================================================== #}
    {# {% set states %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: JavaScript #}
    {# ========================================================================== #}
    {# {% set javascript %}
    
    {% endset %} #}
  4. Create a file COMPONENT-macros.njk within /src/styleguide/components/COMPONENT

  5. Paste this content into COMPONENT-macros.njk

    {# ========================================================================== #}
    {# :: Imports #}
    {# ========================================================================== #}
    
    {# ========================================================================== #}
    {# :: Default #}
    {# ========================================================================== #}
    {% macro default(classes, data) %}
    
    {% endmacro %}
  6. Create a file _COMPONENT-default.njk within /src/styleguide/components/COMPONENT

  7. Paste this content into _COMPONENT-macros.njk

    {# ========================================================================== #}
    {# :: Imports #}
    {# ========================================================================== #}
    {% import "components/COMPONENT/COMPONENT-macros.njk" as COMPONENT %}
    
    {# ========================================================================== #}
    {# :: Settings #}
    {# ========================================================================== #}
    {% set params = {
    	isFullWidth: false,
    	styleVendors: [],
    	scriptVendors: [],
    	order: 1,
    	scope: ""
    } %}
    
    {# ========================================================================== #}
    {# :: Info #}
    {# ========================================================================== #}
    {# {% set info %}
    
    {% endset %} #}
    
    {# ========================================================================== #}
    {# :: Preview #}
    {# ========================================================================== #}
    {% set preview %}
    
    	{{COMPONENT.default("", {})}}
    
    {% endset %}
    
    {# ========================================================================== #}
    {# :: Code #}
    {# ========================================================================== #}
    {# {% set code %}
    
    {% endset %} #}

Simulate Page - files

  1. Add folder pages to /src/styleguide
  2. Add file home.njk to /src/styleguide/pages

Simulate Page - folders

  1. Add folder pages to /src/styleguide
  2. Add folder home to /src/styleguide/pages
  3. Add file home-1.njk to /src/styleguide/pages/home
  4. Add file home-2.njk to /src/styleguide/pages/home

Scripts

  • npm run start: Start the development environment.
  • npm run build and npm run build:dev: Start building for development into ./dist folder.
  • npm run build:prod: Start building for production in to ./dist folder.
  • npm run server: Start nodemon server.

Publish

  1. npm run build make sure that the dist folder contains the latest build
  2. npm whoami should show you are logged in as littlemissrobot. These credentials can be found in our big vault in 1Password. Only employees of Little Miss Robot should have access. If this is not the case: good job, you hacked us!
  3. Update the package.json version number by choosing:
    • npm version major
    • npm version minor
    • npm version patch
  4. npm publish to publish the new version of the package to NPM.
  5. Good job! you are done, go get some fruit as a reward.

Contact

If there are any questions concerning this repo, you can always contact the lovely people mentioned below in chronological order:

  • Wouter Vandersyppe (DO NOT CALL BEFORE 11:00)

    	* Project Manager, Technical lead, 24/7 Grumpy cat
    	* `wouter@littlemissrobot.com`
  • Jan Van Lysebettens

    	* Design lead, Content manager, Master Climber
    	* `jan@littlemissrobot.com`
  • Collin Van der Vorst

    	* Back-end Developer, beetje Front-end Developer, Craft wizard
    	* `collin@littlemissrobot.com`
  • Nele De Bruycker

    	* Visual Design, Front-end Developer, Pull Request Master
    	* `nele@littlemissrobot.com`
  • Benoit Bosschaert

    	* Creative/Front-end developer, Craft apprentice, Code Jedi
    	* `benoit@littlemissrobot.com`
  • Sébastien Henau

    	* Creative/Front-end developer, beetje Motion Design, wannabe Developer
    	* `sebastien@littlemissrobot.com`
2.1.16

1 year ago

2.1.14

1 year ago

2.1.15

1 year ago

2.1.13

1 year ago

2.1.9

2 years ago

2.1.12

2 years ago

2.1.11

2 years ago

2.1.2

2 years ago

2.1.1

2 years ago

2.1.4

2 years ago

2.1.3

2 years ago

2.1.6

2 years ago

2.1.5

2 years ago

2.1.8

2 years ago

2.1.7

2 years ago

2.1.0

2 years ago

2.0.53

3 years ago

2.0.52

3 years ago

2.0.51

3 years ago

2.0.50

3 years ago

2.0.49

3 years ago

2.0.48

3 years ago

2.0.47

3 years ago

2.0.46

3 years ago

2.0.44

4 years ago

2.0.45

4 years ago

2.0.42

4 years ago

2.0.43

4 years ago

2.0.41

4 years ago

2.0.40

4 years ago

2.0.39

4 years ago

2.0.38

4 years ago

2.0.37

4 years ago

2.0.35

4 years ago

2.0.36

4 years ago

2.0.34

4 years ago

2.0.33

4 years ago

2.0.32

4 years ago

2.0.30

4 years ago

2.0.28

4 years ago

2.0.29

4 years ago

2.0.27

4 years ago

2.0.26

4 years ago

2.0.25

4 years ago

2.0.24

4 years ago

2.0.23

4 years ago

2.0.22

4 years ago

2.0.21

4 years ago

2.0.20

4 years ago

2.0.19

4 years ago

2.0.18

4 years ago

2.0.17

4 years ago

2.0.16

4 years ago

2.0.15

4 years ago

2.0.14

4 years ago

2.0.13

4 years ago

2.0.12

5 years ago

2.0.11

5 years ago

2.0.10

5 years ago

2.0.9

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.1.33

5 years ago

1.1.32

5 years ago

1.1.31

5 years ago

1.1.30

5 years ago

1.1.29

5 years ago

1.1.28

5 years ago

1.1.27

5 years ago

1.1.26

5 years ago

1.1.25

5 years ago

1.1.24

5 years ago

1.1.23

5 years ago

1.1.22

5 years ago

1.1.21

5 years ago

1.1.20

5 years ago

1.1.19

5 years ago

1.1.18

5 years ago

1.1.17

5 years ago

1.1.16

5 years ago

1.1.15

5 years ago

1.1.14

5 years ago

1.1.11

5 years ago

1.1.10

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.105

5 years ago

1.0.104

5 years ago

1.0.103

5 years ago

1.0.102

5 years ago

1.0.101

5 years ago

1.0.100

5 years ago

1.0.99

5 years ago

1.0.98

5 years ago

1.0.97

5 years ago

1.0.96

5 years ago

1.0.95

5 years ago

1.0.94

5 years ago

1.0.93

5 years ago

1.0.92

5 years ago

1.0.91

5 years ago

1.0.90

5 years ago

1.0.89

5 years ago

1.0.88

5 years ago

1.0.87

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.84

5 years ago

1.0.83

5 years ago

1.0.82

5 years ago

1.0.81

5 years ago

1.0.80

5 years ago

1.0.79

5 years ago

1.0.78

5 years ago

1.0.77

5 years ago

1.0.76

5 years ago

1.0.75

5 years ago

1.0.74

5 years ago

1.0.73

5 years ago

1.0.72

5 years ago

1.0.71

5 years ago

1.0.70

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.67

5 years ago

1.0.66

5 years ago

1.0.65

5 years ago

1.0.64

5 years ago

1.0.63

5 years ago

1.0.62

5 years ago

1.0.61

5 years ago

1.0.60

5 years ago

1.0.59

5 years ago

1.0.58

5 years ago

1.0.57

5 years ago

1.0.56

5 years ago

1.0.55

5 years ago

1.0.54

5 years ago

1.0.53

5 years ago

1.0.52

5 years ago

1.0.51

5 years ago

1.0.50

5 years ago

1.0.49

5 years ago

1.0.48

5 years ago

1.0.47

5 years ago

1.0.46

5 years ago

1.0.45

5 years ago

1.0.44

5 years ago

1.0.43

5 years ago

1.0.42

5 years ago

1.0.41

5 years ago

1.0.40

5 years ago

1.0.39

5 years ago

1.0.38

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.35

5 years ago

1.0.34

5 years ago

1.0.33

5 years ago

1.0.32

5 years ago

1.0.31

5 years ago

1.0.30

5 years ago

1.0.29

5 years ago

1.0.28

5 years ago

1.0.27

5 years ago

1.0.26

5 years ago

1.0.25

5 years ago

1.0.24

5 years ago

1.0.23

5 years ago

1.0.22

5 years ago

1.0.21

5 years ago

1.0.20

5 years ago

1.0.19

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago