Giter Club home page Giter Club logo

create-ecma-app's Introduction

Version Build Status Code Climate codecov HitCount

Create Ecma App

This project is like a create-react-app. Everybody knows that install and configure Babel is boring.

This boilerplate uses the last version of babel and create a small vanilla project using Ecma features.

create ecma app command

Create your own project

To create your project you only must run:

  $ npx create-ecma-app my-app-name
  $ cd my-app-name

And now you have a node with ecma features working.

Options to create your project

The create-ecma-app will generate the project with default params, but you can set passing params in terminal.

Usage: create-ecma-app <project-name> [options]

Options:
  -V, --version                    output the version number
  -v, --verbose                    print additional logs
  -d, --description [description]  description to project
  -a, --author [author]            author of the project
  --ask-me                         the create-ecma-app will ask about props
                                   in generation
  -h, --help                       output usage information
    Only <project-name> is required.

Commands in project generated

In your project you have the commands:

Command Description
start Start the project in production mode (must build before)
build Build the project in dist folder
build:web Build the project in dist folder to run in browser
dev Run in development mode with watcher
exec Run the code in src folder once without build
lint Run lint validator using Airbnb lint pattern
lint:fix Run lint validator and fix some bugs if exists
test Run tests using jest
test:coverage Run tests using jest and return the coverage code
validate Run tests and lint (ideal to CI)

You can run with npm run or yarn. Ps: If yarn exists in your machine, the installation will use instead of npm

create-ecma-app's People

Contributors

dependabot[bot] avatar renatocassino avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

create-ecma-app's Issues

Add command to run once

Currently the command to run in dev mode (with watcher) uses nodemon and in each file update, the code runs again.

Create a command using babel-node to run once.

Add jsonconfig.json file

Something like this:

{
  "compilerOptions": {
    "module": "commonjs",
    "target": "ES6",
    "baseUrl": "src",
    "rootDirs": [
      "src"
    ]
  },
  "exclude": ["dist"]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.