Giter Site home page Giter Site logo

bkwld / cloak-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 346 KB

Modules that setup standard Cloak conventions.

Home Page: https://cloak-boilerplate.netlify.app/

License: MIT License

JavaScript 95.49% Handlebars 3.97% Stylus 0.54%
cloak-package nuxt

cloak-boilerplate's People

Contributors

weotch avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

cloak-boilerplate's Issues

Migrate @bkwld/cloak

  • Auto-load all modules rather than hardcode an array using node filesystem listing to build the array
  • Conditionally enable object fit polyfill
  • Conditionally enable general polyfill.io
    • Thinking it starts out empty and is populated by create-cloak-app explicitly
  • Finish porting helpers to JS and this repo
    • I think I'll make a special key for lodash methods that get directly injected. Like lodash.memoize or lodash/memoize
  • BKWLD/cloak-craft#1
  • BKWLD/cloak-craft#2

Closes: BKWLD/cloak#33

Automatically disable dynamic route components from handling index routes

For instance, we don't want /pages/products/_product/_variant.vue to handle /products. I think this is a sane default, I can't think of many instances where the detail component also handles the listing view.

We currently handle this with something like:

# nuxt.config.coffee
export default

	# Customize the routes
	router: extendRoutes: (routes) ->

		# Make the slug required on these routes so the listing pages can
		# be towers
		detailRoutes = [ 'articles-article', 'recipes-recipe' ]
		for route in routes
			if route.name in detailRoutes
			then route.path = route.path.slice(0, -1)

I think this functionality gets added to https://github.com/BKWLD/cloak-boilerplate/blob/master/modules/routing.js and it just removes the ? at the end of all routes except _tower.vue so that dynamic parts are never optional.

Update Node version to 16

  • Update .nvmrc
  • Add this to Netlify.toml to be explicit
# Set Node version (Netlify doesn't respect monorepo's .nvmrc)
[build.environment]
	NODE_VERSION = '16'

Add codesandbox creation line

Like to spin up a new codesandbox project from this is a template, for quicking demos.

  • Add vscode config for code sandbox
  • Run internalUrls through nonEmpty
    • Why didn't override work from codesandbox?

Find solution for options set in boilerplate modules replacing project options

For instance, this line...

https://github.com/BKWLD/vue-ssr-carousel/blob/921cf88917e627e8a20e72fc14b613375df6778c/demo/nuxt.config.js#L19-L21

never did anything because this line is always applied after

// Don't use Nuxt 2.13 Crawler since we're explicitly creating all the
// routes we care about and don't want to generate dead links.
this.options.generate.crawler = false

To fix this project, I'm excluding boilerplate's generate module whole hog, which isn't ideal.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.