Requirements

  • Node version >6.0.0 (You can use nvm to run multiple version of node)
  • Understanding ES6 syntax- Specifically Import and Export

5 Minute setup

  • Create a new directory for a project
  • Create a package.json file, it should look like this:
  • 
    {
      "name": "PROJECT_NAME",
      "version": "0.0.0",
      "description": "Example usage of the reusable webpack configuration",
      "scripts" : {
        "init" : "npm install && node node_modules/jarb/setup.js"
      },
      "devDependencies": {
        "jarb": "0.0.0"
      }
    }
            
  • Change the PROJECT_NAME in package.json to your component's name
  • PROJECT_NAME MUST begin with an
  • Install npm run init
  • Verify your file system looks as expected
  • 
    ROOT
    - __tests__
    -- runner.js
    - src
    -- index.js
    -- develop.js
    -- index.html
    - .babelrc
    - .editorconfig
    - .release.json
    - .gitignore
    - .package.json
    - jestConfig.json
    - readme.md
    - jsdocs.conf.json
                
  • Next tutorial : {@tutorial developersWritingFirstComponent}