Skip to content

a test project, that combines clojurescript shadow-cljs with fulcro and the UI library - Framework 7

Notifications You must be signed in to change notification settings

bastiion/fulcro-shadow-cljs-framework7

Repository files navigation

My App

Framework7 CLI Options

Framework7 app created with following options:

{
  "type": [
    "web"
  ],
  "name": "My App",
  "framework": "react",
  "template": "single-view",
  "cssPreProcessor": false,
  "bundler": "webpack",
  "webpack": {
    "developmentSourceMap": true,
    "productionSourceMap": true,
    "hashAssets": false,
    "preserveAssetsPaths": false,
    "inlineAssets": true
  },
  "theming": {
    "customColor": false,
    "color": "#007aff",
    "darkTheme": false,
    "iconFonts": true,
    "fillBars": false
  },
  "customBuild": false
}

NPM Scripts

  • 🔥 start - run development server
  • 🔧 dev - run development server
  • 🔧 build-dev - build web app using development mode (faster build without minification and optimization)
  • 🔧 build-prod - build web app for production

Shadow CLJS build

Two builds will finally compile the clojure-script and combine the output with the transpiled js code produced in the webpack build stage.

The variant not working, because framework-7 is not initialized

npx shadow-cljs watch :direct-no-webpack

The variant which is working, because of external initialization of framework7

npx shadow-cljs watch :direct

WebPack

There is a webpack bundler setup. It compiles and bundles all "front-end" resources. You should work only with files located in /src folder. Webpack config located in build/webpack.config.js.

Webpack has specific way of handling static assets (CSS files, images, audios). You can learn more about correct way of doing things on official webpack documentation.

Assets

Assets (icons, splash screens) source images located in assets-src folder. To generate your own icons and splash screen images, you will need to replace all assets in this directory with your own images (pay attention to image size and format), and run the following command in the project directory:

framework7 generate-assets

Or launch UI where you will be able to change icons and splash screens:

framework7 generate-assets --ui

Documentation & Resources

Support Framework7

Love Framework7? Support project by donating or pledging on patreon: https://patreon.com/vladimirkharlampidi

About

a test project, that combines clojurescript shadow-cljs with fulcro and the UI library - Framework 7

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published