All Projects → nuxt → blueprints

nuxt / blueprints

Licence: MIT License
Module for Nuxt.js to create distributable micro-apps

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to blueprints

applicationinsights-module
Application Insights module for NuxtJS
Stars: ✭ 14 (-65%)
Mutual labels:  nuxt-module
nuxt-stripejs
💳 NuxtJS module for Stripe.js which loads only when required and w/ retry mechanism
Stars: ✭ 17 (-57.5%)
Mutual labels:  nuxt-module
nuxt-mail
Adds email sending capability to a Nuxt.js app. Adds a server route, an injected variable, and uses nodemailer to send emails.
Stars: ✭ 62 (+55%)
Mutual labels:  nuxt-module
nuxt-ghost
Easy Ghost content API integration with Nuxt.js.
Stars: ✭ 27 (-32.5%)
Mutual labels:  nuxt-module
nuxt-web3
🖖 Web3.js module integration for Nuxt 2 ( Nuxt 3 under development )
Stars: ✭ 38 (-5%)
Mutual labels:  nuxt-module
nuxt-jsonld
A Nuxt.js module to manage JSON-LD in Vue component.
Stars: ✭ 198 (+395%)
Mutual labels:  nuxt-module
nuxt-security
Module for Nuxt.js to configure security headers and more
Stars: ✭ 46 (+15%)
Mutual labels:  nuxt-module
yamlful
YAML-based HTTP client code generation
Stars: ✭ 77 (+92.5%)
Mutual labels:  nuxt-module
supabase
An easy way to integrate Supabase with NuxtJS
Stars: ✭ 39 (-2.5%)
Mutual labels:  nuxt-module
nuxt-prune-html
🔌⚡ Nuxt module to prune html before sending it to the browser (it removes elements matching CSS selector(s)), useful for boosting performance showing a different HTML for bots/audits by removing all the scripts with dynamic rendering
Stars: ✭ 69 (+72.5%)
Mutual labels:  nuxt-module
nuxt-modules
AX2's Nuxt modules
Stars: ✭ 30 (-25%)
Mutual labels:  nuxt-module
nuxt-humans-txt
🧑🏻👩🏻 "We are people, not machines" - An initiative to know the creators of a website. Contains the information about humans to the web building - A Nuxt Module to statically integrate and generate a humans.txt author file - Based on the HumansTxt Project.
Stars: ✭ 27 (-32.5%)
Mutual labels:  nuxt-module
nuxt-stencil
Easy Stencil.js component library integration with Nuxt.js.
Stars: ✭ 16 (-60%)
Mutual labels:  nuxt-module
nuxt-speedkit
nuxt-speedkit will help you to improve the lighthouse performance score (100/100) of your website.
Stars: ✭ 401 (+902.5%)
Mutual labels:  nuxt-module
nuxt-winston-log
Nuxt module for logging SSR errors using winston
Stars: ✭ 41 (+2.5%)
Mutual labels:  nuxt-module
nuxt-custom-elements
Publish your components as a custom-element standalone build.
Stars: ✭ 48 (+20%)
Mutual labels:  nuxt-module
nuxt-sanity
Easily integrate Sanity in your Nuxt.js project.
Stars: ✭ 14 (-65%)
Mutual labels:  nuxt-module
date-fns-module
Modern JavaScript date utility library - date-fns for Nuxt.js
Stars: ✭ 68 (+70%)
Mutual labels:  nuxt-module
nuxt-facebook-pixel-module
Inject Facebook pixel code
Stars: ✭ 82 (+105%)
Mutual labels:  nuxt-module
nuxtjs-drupal-ce
A Nuxt.js module to easily connect Drupal via custom elements.
Stars: ✭ 14 (-65%)
Mutual labels:  nuxt-module

@nuxt/blueprints

Module for Nuxt.js to create distributable micro-apps

npm version npm downloads Circle CI Codecov License

🚧 WIP

This module is considered experimental and a work-in-progress.

Examples

Check the example for a simple blueprint example.

If you are looking for a more advanced example, have a look at the NuxtPress repository which is also build using blueprints.

Node v12.4 required

If you wish to run the example from this repo, you need to use at least Node v12.4.0 due to the use of static class features. Those are transpiled on release using @babel/plugin-proposal-class-properties, but the example runs from source.

Quick Docs

The blueprint module is a supercharged module container which supports autodiscovery of folders and resolving of templates/files.

Features:

  • Define a template by adding the template identifiers tmpl or template to the name (the template identifier is removed before Nuxt.js will build the files)
  • Files which are not templates are just copied if needed (small performance improvement)
  • Prefix template identifiers with a $ to replace the identifier with the blueprint instance id (instead of removing the template identifier)

Main methods

  • autodiscover(<rootDir>, { validate(<path>), filter(<parsed path>) }) Filter and validate callbacks are more or less the same, validate runs during walking the fs and receives the full path as string argument . Filter runs when the fs walking has finished and passes the result of path.parse as argument.

It returns the found files by type, where type is the name of the first level folder

  • resolveFiles(<files>, <pathPrefix>)

This method simply checks if a add<capitalize(type)> method exists. Eg if you have a first level folder plugins then it will call the addPlugins method with the list of files. If the corresponding method doesnt exists then its assumed it are just generic files (or templates) which need to be copied. The pathPrefix argument is the folder in buildDir into which the files will be copied (i.e. if you set this to 'my-id' then all the blueprint files/templates are copied into .nuxt/my-id)

It returns a mapping of the src to dst for all files

Development

  1. Clone this repository
  2. Install dependencies using yarn install or npm install
  3. Start development server using npm run dev

License

MIT License

Copyright (c) Nuxt.js Team

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].