• This repository has been archived on 17/May/2019
  • Stars
    star
    140
  • Rank 261,423 (Top 6 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 7 years ago
  • Updated over 5 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Migrated to https://github.com/fusionjs/fusionjs

fusion-cli

Build status

The CLI interface for Fusion.js

The fusion-cli package is responsible for orchestrating compile-time configuration for server and browser bundles, as well as development, test and production variations. It provides a standardized Babel configuration that includes async/await support as well as stage 3+ Ecmascript features.

Due to the complexity involved in configuring many permutations of configurations, Fusion.js does not support custom webpack.config. This design decision allows Fusion.js to eventually move away from Webpack if faster and better bundlers become available. Additionally, it allows Fusion.js to make changes to the internal webpack configuration without the concern of breaking users customizations. If you run into a situation where you feel you need to make a webpack customization, please reach out to us on slack or create an issue describing your use case.

The CLI is also responsible for hot module reloading in development mode, and for running the web server.

Installation

yarn add fusion-cli

CLI API

The CLI API can be most easily run through the Yarn or NPX CLI, e.g. yarn fusion build or npx fusion build.

  • fusion build [dir] [--production] [--log-level] Builds your application assets

    This command generates transpiled javascript/source map files (aka assets, artifacts) for browser and server. By default it builds development assets, but can also build test and production assets, given the respective flags.

    Build artifacts are stored in the .fusion directory.

    • --production: Build production assets
    • --log-level: Log level to output to console [default: "info"]
  • fusion dev [dir] [--port] [--no-hmr] [--test] [--log-level] [--forceLegacyBuild] Builds development assets and runs the application in development mode

    Note that this command only builds browser artifacts in memory, and it doesn't save them to the filesystem. This allows hot module reloading to occur faster since there's no performance cost due to I/O access.

    • --port: The port on which the application runs [default: 3000]
    • --no-hmr: Run without hot modules replacement
    • --test: Run tests as well as application
    • --log-level: Log level to output to console [default: "info"]
    • --forceLegacyBuild: Force enable legacy build. By default not compiled in dev.
    • --perserve-names: Disable name mangling during script minification

Webpack stats.json file

Building an app generates a .fusion/stats.json file, which can be used with webpack-bundle-analyzer

More Repositories

1

fusionjs

Modern framework for fast, powerful React apps
TypeScript
1,537
star
2

fusion-core

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
631
star
3

fusionjs.github.io

Modern framework for fast, powerful React apps
JavaScript
52
star
4

create-fusion-app

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
23
star
5

fusion-plugin-apollo

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
16
star
6

fusion-react-async

JavaScript
12
star
7

fusion-plugin-apollo-server

DEPRECATED. Please use fusion-plugin-apollo instead
JavaScript
8
star
8

fusion-scaffolder

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
6
star
9

fusion-apollo-universal-client

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
6
star
10

fusion-plugin-font-loader-react

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
6
star
11

fusion-plugin-service-worker

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
6
star
12

browser-tests

Example app for cross-browser testing
JavaScript
6
star
13

fusion-tokens

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
5
star
14

fusion-test-utils

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
5
star
15

fusion-rpc-redux

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
4
star
16

fusion-plugin-jwt

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
4
star
17

fusion-plugin-rpc-redux-react

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
4
star
18

fusion-plugin-i18n-react

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
4
star
19

fusion-plugin-react-router

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
4
star
20

fusion-plugin-redux-action-emitter-enhancer

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
3
star
21

fusion-plugin-styletron-react

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
3
star
22

rfcs

Migrated to https://github.com/fusionjs/fusionjs
3
star
23

fusion-plugin-introspect

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
3
star
24

fusion-plugin-react-redux

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
3
star
25

publisher-app

Shell
2
star
26

fusion-plugin-i18n

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
2
star
27

fusion-plugin-connected-react-router

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
2
star
28

fusion-plugin-rpc

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
2
star
29

create-fusion-plugin

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
2
star
30

fusion-plugin-universal-events

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
2
star
31

eslint-config-fusion

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star
32

fusion-plugin-node-performance-emitter

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star
33

fusion-plugin-http-handler

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star
34

fusion-plugin-csrf-protection-react

JavaScript
1
star
35

fusion-plugin-react-helmet-async

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star
36

fusion-plugin-universal-logger

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star
37

probot-app-workflow

Probot app for repos in the fusionjs org
JavaScript
1
star
38

fusion-plugin-universal-events-react

Migrated to https://github.com/fusionjs/fusionjs
JavaScript
1
star