Coder Social home page Coder Social logo

hydrogen.cljs.duct-template's People

Contributors

iarenaza avatar

Watchers

 avatar  avatar  avatar  avatar

hydrogen.cljs.duct-template's Issues

Generated project should have dev plugins included

In almost all our projects we use lint/eastwood and lein-cljfmt plugins. They are part of [:profiles :project/dev] configuration in project.clj.
Hydrogen should include them in result projects as well. However, as for today, Duct doesn't know how to do it. Thus this issue has three steps:\

  • Raise a ticket in Duct's github with a proposal[1] for this feature.
  • Perhaps implement it ourselves and make a PR.
  • Use this feature in Hydrogen.

[1] - Our recent contributions to Duct made it understand :dev-dependencies key. It makes it include a dependencies vector into result project.clj's [:profiles :project/dev :dependencies] path. For this reasons it seems only logical to develop an analogical feature - :dev-plugins.

Add loading component

In all our projects we use loading spinner. We need to extract common components into Hydrogen.

Decide whether this project should be renamed or refactored into more projects.

When this template was created it was supposed to inject our bread and butter cljs code into new applications. However now it seems to be doing a bit more:

  1. It changes Duct's default file structure / namespace organization (see this presentation).
  2. It introduces plugins we find useful in development.
  3. It modifies :repl-config in project.clj.

We need to decide which way we want to go with this. We have some options:

  1. Divide and conquer - we define specific functionalities and have one template (or one profile, as a template can have many) do just that.
    To tell the truth, we actually have something like that developed already - this template has core-profile that's supposed to be used always and also session-profile that can be used to enrich core by landing page, authentication-related dependencies etc. However, we found out that using many profiles is not that easy; :vars of profiles are mutually exclusive. Thus we need extra calculations to manage some of them (I'm looking at you :cascading-routes).
  2. Just rename this template to something more abstract (hydrogen.duct-template) and document functionalities carefully.

CI - Automate deployment process

If pushed commit is not -SNAPSHOT version, then deploy, and change the version to an incremented number with -SNAPSHOT edition.

Session :token missing in appdb

Resulting projects save session tokens in their appdbs only after successful login. If user is already logged in and goes straight to an access-restricted route, :token will not get saved unless he/she signs out and in again.

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.