@airyrooms/catela
A front-end JavaScript framework for maximizing productivity
Last updated 6 months ago by andarias.silvanus .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @airyrooms/catela 
SYNC missed versions from official npm registry.

Catela is a JavaScript framework based on React and Redux pattern.

changelog

[v2.1.0] - 2018-11-08

  • (Optional) Add storing variables capability in __PROJECT__ variable on setup.
// To setup
{
    ...
    variables: {
      FOO: getProjectFoo(),
      BAR: getProjectBar(),
      // ...more variables
    }
}

// To get
__PROJECT__.variables['FOO'] // get value stored in FOO
__PROJECT__.variables['BAR'] // get value stored in BAR
  • Moved react and react-dom to dev and peer dependencies (prevent this)

[v1.23]

  • Restructure for asset serving support for more flexible usage now use
{
    assetHost: 'https://cloudfront.123123.net' // as the CDN url,
    artifactPath: '/artifact'// as the bundled assets path (S3 folder path),
    assetPath: '/' // as the images and other assets path (S3 images path [we suggest to use root S3 dir]),
    useBuildID: true|false // if you want to use build ID for long term caching (required if using CDN)  
}
  • Now you can use global variable called __ARTIFACT_PATH__ to access the proper artifact path. add this code to main page
callback(null, {
    ...,
    ARTIFACT_PATH: __ARTIFACT_PATH__
})

and use this on the main.html

<script type="text/javascript" src="${ARTIFACT_PATH}/commons.js"></script>
  • Upload to S3 script example, run this script after ./docker-build
#!/bin/bash
set -e

export APPLICATION_NAME=$1
export ENVIRONMENT=$2

if [ "$ENVIRONMENT" == "dev" ]
  then
    export TARGET_ENV="development"
elif [ "$ENVIRONMENT" == "stg" ]
  then
    export TARGET_ENV="staging"
elif [ "$ENVIRONMENT" == "prod" ]
  then
    export TARGET_ENV="production"
else
  export TARGET_ENV="development"
fi

# Get bucket's folder name
if [ "$APPLICATION_NAME" == "airyrooms-web" ]
    then
    export APP_NAME="airy-web"
    else export APP_NAME="airy-mobile-web"
fi

export BUILDDIR="applications/$APPLICATION_NAME/build/$TARGET_ENV"

export BUILD_ID=$( cat $BUILDDIR/BUILD_ID )

# Upload S3 CF
export TARGET_ASSETS_DIR="$BUILDDIR/client"
export TARGET_ARTIFACTS_DIR="$TARGET_ASSETS_DIR/$BUILD_ID"

export S3_ASSETS_DIR="s3://airy-assets/$APP_NAME"
export S3_ARTIFACTS_DIR="s3://airy-assets/$APP_NAME/assets/$BUILD_ID"

# if [ "$ENVIRONMENT" == "prod" ]
if [ "$ENVIRONMENT" == "stg" ]
  then
    echo "=================================================================================="
    echo ""
    echo "[$APPLICATION_NAME - $TARGET_ENV]"
    echo "Uploading Artifacts from [$TARGET_ARTIFACTS_DIR] to [$S3_ARTIFACTS_DIR]"
    echo ""
    echo "=================================================================================="
    # aws s3 sync $TARGET_ARTIFACTS_DIR $S3_ARTIFACTS_DIR --recursive --exclude "*" --include "main.js" --include "commons.js" --include "styles.css" --include "*.map" --include "webpack-assets.json" --acl public-read
    aws s3 sync $TARGET_ARTIFACTS_DIR $S3_ARTIFACTS_DIR --include "*" --acl public-read

    echo "=================================================================================="
    echo ""
    echo "[$APPLICATION_NAME - $TARGET_ENV]"
    echo "Uploading Assets from [$TARGET_ASSETS_DIR] to [$S3_ASSETS_DIR]"
    echo ""
    echo "=================================================================================="
    aws s3 sync $TARGET_ASSETS_DIR $S3_ASSETS_DIR --exclude "*.js" --exclude "*.css" --exclude "*.json" --exclude "*.map" --acl public-read
fi

[v1.22]

  • added CDN prefix and logger options support to use fluentd, winston, or fluentd & winston.
  • url-loader now use original image name for easier S3 reusability
  • If your app is already using kubernetes, in order to use CDN support, please remove :port from host options and set forceHttps on server to be false (due to redirecting envoy and pods issue) - Don't forget to add on your main.html the prefix to the file you want to put on CDN, such as main.js

Current Tags

  • 2.2.1                                ...           latest (6 months ago)

72 Versions

  • 2.2.1                                ...           6 months ago
  • 2.2.0                                ...           6 months ago
  • 2.1.0                                ...           9 months ago
  • 2.0.1-dev.A                                ...           9 months ago
  • 2.0.0-canary                                ...           10 months ago
  • 2.0.0-dev.E                                ...           10 months ago
  • 2.0.0-dev.D                                ...           10 months ago
  • 2.0.0-dev.C                                ...           10 months ago
  • 2.0.0-dev.B                                ...           10 months ago
  • 2.0.0-dev.A                                ...           10 months ago
  • 1.0.23                                ...           10 months ago
  • 1.0.2-2.dev-G                                ...           10 months ago
  • 1.0.2-2.dev-F                                ...           10 months ago
  • 1.0.2-2.dev-E                                ...           10 months ago
  • 1.0.2-2.dev-D                                ...           10 months ago
  • 1.0.2-2.dev-C                                ...           10 months ago
  • 1.0.2-2.dev-B                                ...           10 months ago
  • 1.0.2-2.dev-A                                ...           10 months ago
  • 1.0.22                                ...           a year ago
  • 1.0.2-1.dev-C                                ...           a year ago
  • 1.0.2-1.dev-B                                ...           a year ago
  • 1.0.2-1.dev-A                                ...           a year ago
  • 1.0.21                                ...           a year ago
  • 1.0.20                                ...           a year ago
  • 1.0.19                                ...           a year ago
  • 1.0.18-dev-g                                ...           a year ago
  • 1.0.18-dev-f                                ...           a year ago
  • 1.0.18-dev-e                                ...           a year ago
  • 1.0.18-dev-d                                ...           a year ago
  • 1.0.18-dev-b                                ...           a year ago
  • 1.0.17-dev-b                                ...           a year ago
  • 1.0.17-dev-a                                ...           a year ago
  • 1.0.17                                ...           a year ago
  • 1.0.16                                ...           a year ago
  • 1.0.15-wt                                ...           a year ago
  • 1.0.15                                ...           a year ago
  • 1.0.14-dev-a                                ...           a year ago
  • 1.0.14                                ...           a year ago
  • 1.0.13-dev-a                                ...           a year ago
  • 1.0.13                                ...           2 years ago
  • 1.0.12-dev-b                                ...           2 years ago
  • 1.0.12-dev-a                                ...           2 years ago
  • 1.0.12                                ...           2 years ago
  • 1.0.11-dev-a                                ...           2 years ago
  • 1.0.10-dev-a                                ...           2 years ago
  • 1.0.10                                ...           2 years ago
  • 1.0.9-dev-e                                ...           2 years ago
  • 1.0.9-dev-d                                ...           2 years ago
  • 1.0.9-dev-c                                ...           2 years ago
  • 1.0.9-dev-b                                ...           2 years ago
  • 1.0.9-dev-a                                ...           2 years ago
  • 1.0.9-dev                                ...           2 years ago
  • 1.0.9-a                                ...           2 years ago
  • 1.0.9                                ...           2 years ago
  • 1.0.8                                ...           2 years ago
  • 1.0.7                                ...           2 years ago
  • 1.0.6-c                                ...           2 years ago
  • 1.0.5-hf-d                                ...           2 years ago
  • 1.0.6                                ...           2 years ago
  • 1.0.5-hf-c                                ...           2 years ago
  • 1.0.5-hf-b                                ...           2 years ago
  • 1.0.5-hf-a                                ...           2 years ago
  • 1.0.5                                ...           2 years ago
  • 1.0.4-h                                ...           2 years ago
  • 1.0.4-g                                ...           2 years ago
  • 1.0.4-f                                ...           2 years ago
  • 1.0.4-e-beta                                ...           2 years ago
  • 1.0.4-d                                ...           2 years ago
  • 1.0.4-c                                ...           2 years ago
  • 1.0.4-b                                ...           2 years ago
  • 1.0.4-a                                ...           2 years ago
  • 1.0.4                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 291
Last Day 0
Last Week 147
Last Month 148
Dev Dependencies (11)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |