This repository holds yet another JavaScript dev environment, ready for you to check out and be awesome with.
- EditorConfig for consistent coding styles
- NPM as package manager
- Security Scanning using nsp check configured on start
- Express Server
- Localtunnel for easy work sharing
- NPM Scripts for automation (Grunt and Gulp is so yesterday)
- Babel for transpiling
- Webpack for bundling
- Source map set to inline
- ESLint for linting, dedicated config file, receommended ruleset plus ES6 import errors and warnings
- ES Watch configured on start
- Mocha for testing, configured upon start and watch.
- Added Travis as the Continious Integration server
- Added Fetch support for APIs, using polyfill for older browsers.
- For mocking declare Schema with JSON Schema Faker, Generate Random Data (faker.js, chance.js, randexp.js) and Serve data via API with JSON Server
I am not actively maintaining it so if it is broken you are on your own buddy.
Clone this repo into new project folder (e.g., my-proj
).
git clone https://github.com/Sarel-Esterhuizen/yet-another-js-dev-env my-proj
cd my-proj
Assume I have no intention of updating the source on Sarel-Esterhuizen/yet-another-js-dev-env
.
Discard the .git
folder..
rm -rf .git # OS/X (bash)
rd .git /S/Q # windows
You can quickly delete the non-essential files that concern testing and QuickStart repository maintenance
(including all git-related artifacts such as the .git
folder and .gitignore
!)
by entering the following commands while in the project folder:
xargs rm -rf < non-essential-files.osx.txt
rm src/app/*.spec*.ts
rm non-essential-files.osx.txt
for /f %i in (non-essential-files.txt) do del %i /F /S /Q
rd .git /s /q
You could start writing code now and throw it all away when you're done. If you'd rather preserve your work under source control, consider taking the following steps.
Initialize this project as a local git repo and make the first commit:
git init
git add .
git commit -m "Initial commit"
Recover the deleted
.gitignore
from the yet-another-js-dev-env repository if you lost it in the Delete non-essential files step.
Create a remote repository for this project on the service of your choice.
Grab its address (e.g. https://github.com/<my-org>/my-proj.git
) and push the local repo to the remote.
git remote add origin <repo-address>
git push -u origin master
Install the npm packages described in the package.json
and verify that it works:
npm install
npm start