Setting NODE_ENV=production causes these libraries and tools to behave as follows:
npm:
installwill not install devDependenciesshrinkwrapwill not install devDependenciesprunewill remove devDependencies
yarn:
| <!-- JSFiddle: http://jsfiddle.net/antishok/pDc7L/2/ --> | |
| <input id="i" data-bind="ipAddress: ip" /> | |
| <br> | |
| <input data-bind="value: ip"> |
| (function($, undefined) { | |
| $.extend($.support, { | |
| orientation: "orientation" in window && "onorientationchange" in window | |
| }); | |
| }(jQuery)); | |
| // throttled resize event | |
| (function($) { | |
| $.event.special.throttledresize = { |
| beforeShowDay: function(date) { | |
| var enabled = disabledDates.every(function(disabledDate){ | |
| var from = new Date(disabledDate['from']); | |
| var to = new Date(disabledDate['to']); | |
| from.setHours(0); | |
| from.setMinutes(0); | |
| from.setSeconds(0); | |
| to.setHours(23); |
| var stream = require('stream'); | |
| var bhttp = require('bhttp'); | |
| var Promise = require('bluebird'); | |
| Promise.try(function() { | |
| return bhttp.get('http://www.pdf995.com/samples/pdf.pdf'); | |
| }).then(function(response) { | |
| var bufferStream = new stream.PassThrough(); | |
| bufferStream.end(response.body); | |
| var data = { |
| Listening on port 3000 | |
| express:router dispatching GET /increment +6s | |
| express:router query : /increment +3ms | |
| express:router expressInit : /increment +1ms | |
| express:router session : /increment +2ms | |
| express-session fetching 9uxMmBYUXEWSBRlZH2f8j0X3IH4eYFyb +5ms | |
| express-session session found +8ms | |
| express-session saving 9uxMmBYUXEWSBRlZH2f8j0X3IH4eYFyb +8ms | |
| express-session split response +1ms | |
| express:router dispatching GET / +9ms |
| <!doctype html> | |
| <html> | |
| <head><title>Log-In</title></head> | |
| <script> | |
| if (window.opener) { | |
| window.opener.postMessage("popup-done", "*"); | |
| setTimeout(function() { window.close() }, 0); | |
| } | |
| </script> | |
| </head> |
Setting NODE_ENV=production causes these libraries and tools to behave as follows:
npm:
install will not install devDependenciesshrinkwrap will not install devDependenciesprune will remove devDependenciesyarn:
tf.constant(3.0)tf.add(node1, node2) or node1 + node23 # a rank 0 tensor; this is a scalar with shape []| import sys | |
| import numpy as np | |
| from keras.models import Sequential, load_model | |
| from keras.layers import Dense, Activation, Dropout, LSTM, Embedding, Lambda | |
| from keras import optimizers | |
| from keras import backend as K | |
| from keras.callbacks import ModelCheckpoint | |
| filepath = 'input.txt' | |
| seq_len = 80 |
| <html> | |
| ... | |
| <script> | |
| fetch('/ping') | |
| .then((response) => response.json()) | |
| .then((data) => { | |
| console.log('pong', data); | |
| }); | |
| </script> |