BVB Source Codes

angular-starter Show helpers.js Source code

Return Download angular-starter: download helpers.js Source code - Download angular-starter Source code - Type:.js
  1. /**
  2.  * @author: @AngularClass
  3.  */
  4. var path = require('path');
  5.  
  6. const EVENT = process.env.npm_lifecycle_event || '';
  7.  
  8. /**
  9.  * Helper functions.
  10.  */
  11. var ROOT = path.resolve(__dirname, '..');
  12.  
  13. function hasProcessFlag(flag) {
  14.   return process.argv.join('').indexOf(flag) > -1;
  15. }
  16.  
  17. function hasNpmFlag(flag) {
  18.   return EVENT.includes(flag);
  19. }
  20.  
  21. function isWebpackDevServer() {
  22.   return process.argv[1] && !! (/webpack-dev-server/.exec(process.argv[1]));
  23. }
  24.  
  25. var root = path.join.bind(path, ROOT);
  26.  
  27. exports.hasProcessFlag = hasProcessFlag;
  28. exports.hasNpmFlag = hasNpmFlag;
  29. exports.isWebpackDevServer = isWebpackDevServer;
  30. exports.root = root;
  31.  
downloadhelpers.js Source code - Download angular-starter Source code
Related Source Codes/Software:
django-rest-framework - Web APIs for Django. http:/... 2017-06-10
lectures - Oxford Deep NLP 2017 course 2017-06-10
algorithms - Minimal examples of data structures and algorithms... 2017-06-10
Awesome-Hacking - A collection of various awesome lists for hackers,... 2017-06-09
lottie-ios - An iOS library to natively render After Effects ve... 2017-06-09
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
angular-starter - 2017-06-10

 Back to top