Skip to content

Repo to log and store current work with JS. This includes source folders, src and lib. Lib containing ES5 generated using the JavaScript transcompiler Babel.

License

Notifications You must be signed in to change notification settings

calindoran/Simple_JavaScript_Projects

Repository files navigation

Some Simple JS Projects

  • My repo to log and store my current work with JS. This includes two source folders, one containing ES6 called src, and the other called lib containing ES5 generated using the JavaScript transcompiler Babel.

  • Directory src/work includes interview prep questions in ES6.

Running the webapp

If you would like to see how compatable our ES6 to Babel's ES5 is, you can simple run the index.html file with an extension like Live Server for VS Code.

QUICK TIPS!

For future reference, here is a list of the steps needed to set up the project for transpilation:

  1. Initialize your project using npm init and create a directory called src

  2. Install babel dependencies by running

npm install babel-cli -D
npm install babel-preset-env -D
  1. Create a .babelrc file inside your project and add the following code inside it:
{
  "presets": ["env"]
}
  1. Add the following script to your scripts object in package.json:
"build": "babel src -d lib"
  1. Run npm run build whenever you want to transpile your code from your src to lib directories.

About

Repo to log and store current work with JS. This includes source folders, src and lib. Lib containing ES5 generated using the JavaScript transcompiler Babel.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published