0.0.54 • Published 2 years ago

nextia v0.0.54

Weekly downloads
-
License
MIT
Repository
gitlab
Last release
2 years ago

nextia

Create fast web application :)

  • webpack
  • babel
  • sass
  • react
  • useFunction
  • Image version
  • i18n
  • Build environment (dev, beta and main)
  • Gitlab CI/CD
Install
npm i -g nextia
Create new webapp

Open http://localhost:3000 to view it in the browser.

nextia webapp

cd webapp
npm i
npm start # or npm run now
Create new serverless

Open http://localhost:4000 to view it in the browser.

nextia-serverless api

cd api
npm i
npm start # or npm run now
nextia commands
# start web application in localhost with "git branch dev"
npm start
# start web application
npm run now

# clean project
npm run clean

# Create new page or component
npm run page PageName
npm run component ComponentName

# Create environemnt in dist directory
npm run dev
npm run beta
npm run main

# Gitlab CI/CD
npm run gitlab-ci
nextia ports
nameport
api4000
webpage3000
webapp3001
portal3002
sandbox3003
Environment
import { env } from 'nextia'
console.info(env)
Image version
import { Img } from "nextia"

<Img src="logo.svg" />
// to html
<img src="assets/img/logo.svg?<VERSION>" />
background: img('logo.svg') no-repeat fixed center;
/* to css */
background: url('assets/img/logo.svg?<VERSION>') no-repeat fixed center;
Use Internal IP in env.yml
localhost:
  myIp: ${MY_IP}
i18n (Internationalization and localization)
# i18n.yml
locales:
  - EN
  - ES
default: EN

page:
  name:
    - My name is {0} {1} {2}
    - Mi nombre es {0} {1} {2}
import { I18n, i18n } from 'nextia'

// jsx
<I18n value="page.name" args={['Sinuhe', 'Maceda', 'Bouchan']} />
// js
i18n('page.name', ['Sinuhe', 'Maceda', 'Bouchan'])
Build environment

Webpack develop and debug

npm run start
npm run dev
npm run beta

Webpack production and optimized

npm run main
To start Gitlab CI
npm run gitlab-ci
CI / CD Settings : Group variables
Key : CLOUD
Value :
CLOUD=AWS
# CLOUD=GCP

DOMAIN=nextia.dev

CLOUDFLARE_EMAIL=sinuhe.dev@gmail.com
CLOUDFLARE_GLOBAL_API_KEY=
CLOUDFLARE_ZONE_ID=

TELEGRAM_TOKEN=
TELEGRAM_CHAT_ID="12346789 12345679 ... "
Key : AWS_DEVELOPMENT
Value :
AWS_DEFAULT_REGION=us-east-1
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

AWS_S3_WEB=sinuhe-development-web
AWS_S3_API=sinuhe-development-api

AWS_CLOUDFRONT_DEV_WEB=
AWS_CLOUDFRONT_DEV_API=

AWS_CLOUDFRONT_BETA_WEB=
AWS_CLOUDFRONT_BETA_API=
Key : AWS_PRODUCTION
Value :
AWS_DEFAULT_REGION=us-east-1
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=

AWS_S3_WEB=sinuhe-production-web
AWS_S3_API=sinuhe-production-api

AWS_CLOUDFRONT_WEB=
AWS_CLOUDFRONT_API=
Key : API_DEVELOPMENT
Value :
variables: &variables
  globalVars: vars

dev:
  <<: *variables
  cdn: dev-cdn.nextia.dev

beta:
  <<: *variables
  cdn: beta-cdn.nextia.dev
Key : API_PRODUCTION
Value :
variables: &variables
  globalVars: vars

main:
  <<: *variables
  cdn: dev-cdn.nextia.dev
Type : File

Flags
 ProtectVariable : False
 MaskVariable : False

npm.io

0.0.52

2 years ago

0.0.53

2 years ago

0.0.54

2 years ago

0.0.50

2 years ago

0.0.49

2 years ago

0.0.43

3 years ago

0.0.44

3 years ago

0.0.45

3 years ago

0.0.46

3 years ago

0.0.47

3 years ago

0.0.48

3 years ago

0.0.41

3 years ago

0.0.42

3 years ago

0.0.40

3 years ago

0.0.37

3 years ago

0.0.38

3 years ago

0.0.39

3 years ago

0.0.34

3 years ago

0.0.35

3 years ago

0.0.36

3 years ago

0.0.23

3 years ago

0.0.24

3 years ago

0.0.25

3 years ago

0.0.30

3 years ago

0.0.31

3 years ago

0.0.26

3 years ago

0.0.27

3 years ago

0.0.28

3 years ago

0.0.29

3 years ago

0.0.21

3 years ago

0.0.22

3 years ago

0.0.20-dev

3 years ago

0.0.19-dev

3 years ago

0.0.18-dev

3 years ago

0.0.16-dev

3 years ago

0.0.12-dev

3 years ago

0.0.15-dev

3 years ago

0.0.11-dev

3 years ago

0.0.10-dev

3 years ago

0.0.14-dev

3 years ago

0.0.13-dev

3 years ago

0.0.7-dev

3 years ago

0.0.9-dev

3 years ago

0.0.8-dev

3 years ago

0.0.6

3 years ago

0.0.14-next

3 years ago

0.0.3

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.12-next

3 years ago

0.0.13-next

3 years ago

0.0.10-next

3 years ago

0.0.9-next

3 years ago

0.0.7-next

3 years ago

0.0.8-next

3 years ago

0.0.6-next

3 years ago

0.0.5-next

3 years ago

0.0.4-next

3 years ago

0.0.3-next

3 years ago

0.0.2-next

3 years ago

0.0.1

3 years ago

0.0.2

3 years ago

0.0.0

3 years ago