neutrino-preset-infl

2.2.0 • Public • Published

neutrino-preset-infl

This is our base dependency for Front End applications (pluginated)

Creating a new Project;

  • mkdir project-name
  • cd project-name
  • npm-init
  • npm install --save neutrino neutrino-preset-infl (neutrino@6.x.x)
  • the starter application uses react so please install @influitive/runtime-deps if you plan to use our standard runtime packages
  • ./node_modules/.bin/infl init
  • select first three options for a new web application project
  • select the npm build option if you wish to also publish an npm module

you will now have a generated application structure

  • change DEV_PORT in your .env file to the port you wish to serve from
  • echo DEV_PORT > ~/.puma-dev/HOSTNAME
    • example: for the app named hedwig-fe, that runs on port 3999
    • echo 3999 > ~/.puma-dev/hedwig-fe.infl

DEV_PORT defaults to 3000 and hostname by default should be your packages name + .infl

please add an entry to your puma-dev or pow that matches the env variable DEV_PORT

please add an entry to the HUB repo at scripts/pluginate.rb if this app is pluginated into HUB

Running a neutrino based project:

Setup:

from hub directory

  • bundle exec rails runner ./scripts/pluginate.rb

make sure you have puma dev entry matching the pluginater hostname in your ~/.puma-dev folder (see above) (npi will attempt to do this for you whenever it's started)

  • echo DEV_PORT > ~/.puma-dev/HOSTNAME

Running Local:

start local dev server:

  • npm start

start local test watcher:

  • npm test

Deployment

gitlab deployment settings have been setup for you:

  • to deploy to qa: push development
  • to deploy to staging: push master
  • to deploy to production:
    • create a new release via ./node_modules/.bin/infl release

Info

Packages included for you:

please refer to a specific packages documentation for use.

linting rules handled by @influitive/eslint-config

testing handled by jest via neutrino-preset-jest

to create a test, place a file with the suffix .test.js anywhere in your src folder

Dependencies (23)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i neutrino-preset-infl

    Weekly Downloads

    1

    Version

    2.2.0

    License

    MIT

    Unpacked Size

    21.4 kB

    Total Files

    24

    Last publish

    Collaborators

    • seethruhead