Skip to content

Commit

Permalink
Merge pull request reactioncommerce#5016 from reactioncommerce/releas…
Browse files Browse the repository at this point in the history
…e-v2.0.0-rc.10

Release v2.0.0 rc.10
  • Loading branch information
spencern authored Mar 7, 2019
2 parents cb6939d + e2f7a05 commit b7c6c20
Show file tree
Hide file tree
Showing 638 changed files with 15,589 additions and 10,019 deletions.
78 changes: 0 additions & 78 deletions .bithoundrc

This file was deleted.

4 changes: 2 additions & 2 deletions .meteor/packages
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ meteor-base@1.4.0 # Packages every Meteor app needs to have
mobile-experience@1.0.5 # Packages for a great mobile UX
blaze-html-templates@1.0.4 # Compile .html files into Meteor Blaze views
es5-shim@4.8.0 # ECMAScript 5 compatibility for older browsers.
ecmascript@0.12.0 # Enable ECMAScript2015+ syntax in app code
ecmascript@0.12.4 # Enable ECMAScript2015+ syntax in app code
audit-argument-checks@1.0.7 # ensure meteor method argument validation
browser-policy@1.1.0 # security-related policies enforced by newer browsers
juliancwirko:postcss@1.3.0 # CSS post-processing plugin (replaces standard-minifier-css)
session@1.1.8 # ReactiveDict whose contents are preserved across Hot Code Push
session@1.2.0 # ReactiveDict whose contents are preserved across Hot Code Push
tracker@1.2.0 # Meteor transparent reactive programming library
mongo@1.6.0
reactive-var@1.0.11
Expand Down
2 changes: 1 addition & 1 deletion .meteor/release
Original file line number Diff line number Diff line change
@@ -1 +1 @@
METEOR@1.8
METEOR@1.8.0.2
22 changes: 11 additions & 11 deletions .meteor/versions
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ aldeed:template-extension@4.1.0
allow-deny@1.1.0
audit-argument-checks@1.0.7
autoupdate@1.5.0
babel-compiler@7.2.1
babel-compiler@7.2.4
babel-runtime@1.3.0
base64@1.0.11
binary-heap@1.0.11
Expand All @@ -25,7 +25,7 @@ browser-policy@1.1.0
browser-policy-common@1.0.11
browser-policy-content@1.1.0
browser-policy-framing@1.1.0
caching-compiler@1.2.0
caching-compiler@1.2.1
caching-html-compiler@1.1.3
callback-hook@1.1.0
check@1.3.1
Expand All @@ -37,9 +37,9 @@ ddp-common@1.4.0
ddp-rate-limiter@1.0.7
ddp-server@2.2.0
deps@1.0.12
diff-sequence@1.1.0
diff-sequence@1.1.1
dynamic-import@0.5.0
ecmascript@0.12.1
ecmascript@0.12.4
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.8.0
ecmascript-runtime-server@0.7.1
Expand Down Expand Up @@ -76,12 +76,12 @@ meteorhacks:ssr@2.2.0
meteorhacks:subs-manager@1.6.4
meteortesting:browser-tests@0.2.0
meteortesting:mocha@0.6.0
minifier-css@1.4.0
minifier-css@1.4.1
minifier-js@2.4.0
minimongo@1.4.5
mobile-experience@1.0.5
mobile-status-bar@1.0.14
modern-browsers@0.1.2
modern-browsers@0.1.3
modules@0.13.0
modules-runtime@0.10.3
momentjs:moment@2.19.4
Expand All @@ -91,9 +91,9 @@ mongo-dev-server@1.1.0
mongo-id@1.0.7
npm-bcrypt@0.9.3
npm-mongo@3.1.1
oauth@1.2.4
oauth@1.2.6
oauth-encryption@1.3.1
oauth1@1.2.1
oauth1@1.2.2
oauth2@1.2.1
observe-sequence@1.0.16
ongoworks:security@2.1.0
Expand All @@ -103,7 +103,7 @@ percolate:migrations@0.9.8
practicalmeteor:chai@2.1.0_1
practicalmeteor:mocha-core@1.0.1
practicalmeteor:sinon@1.14.1_2
promise@0.11.1
promise@0.11.2
raix:eventemitter@0.1.3
random@1.1.0
rate-limit@1.0.9
Expand All @@ -113,7 +113,7 @@ reload@1.2.0
retry@1.1.0
routepolicy@1.1.0
service-configuration@1.0.11
session@1.1.8
session@1.2.0
sha@1.0.9
shell-server@0.4.0
socket-stream-client@0.2.2
Expand All @@ -133,5 +133,5 @@ twitter-oauth@1.2.0
ui@1.0.13
underscore@1.0.10
url@1.2.0
webapp@1.7.0
webapp@1.7.1
webapp-hashing@1.0.9
21 changes: 0 additions & 21 deletions .reaction/ci/build.sh

This file was deleted.

28 changes: 0 additions & 28 deletions .reaction/ci/config.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .reaction/run/fs.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import fs from 'fs';
import path from 'path';
import Log from './logger';

/**
* Synchronously check if a file or directory exists
* @param {String} searchPath - path to file or directory
* @return {Boolean} - returns true if file or directory exists
*/
export function exists(searchPath) {
try {
fs.statSync(searchPath);
return true;
} catch (e) {
return false;
}
}

/**
* Synchronously check if a file or directory is empty or doesn't exist
* @param {String} searchPath - path to file or directory
* @return {Boolean} returns true if file or directory is empty or missing
*/
export function isEmptyOrMissing(searchPath) {
let stat;
try {
stat = fs.statSync(searchPath);
} catch (e) {
return true;
}
if (stat.isDirectory()) {
const items = fs.readdirSync(searchPath);
return !items || !items.length;
}
const file = fs.readFileSync(searchPath);
return !file || !file.length;
}


/**
* Get an array of directory names in a given path
* @param {String} dir - path to a directory
* @return {Array} returns an array of directory names
*/
export function getDirectories(dir) {
try {
const files = fs.readdirSync(dir).filter((file) => {
return fs.statSync(path.join(dir, file)).isDirectory();
});
return files;
} catch(e) {
Log.error('Directory not found: ' + dir);
Log.error(e);
process.exit(1);
}
}
49 changes: 49 additions & 0 deletions .reaction/run/index.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
// Assumes Node 8.x
import _ from "lodash";
import childProcess from "child_process";
import Log from "./logger";
import loadPlugins from "./loadPlugins";
import loadStyles from "./loadStyles";
import provisionAssets from "./provisionAssets";

function run() {
let start, sec, ns;

start = process.hrtime();
Log.info("Setting up plugin imports...\n");
loadPlugins();
[sec, ns] = process.hrtime(start);
Log.info(`Setting up plugin imports took ${sec}s ${ns / 1000000}ms\n`);

start = process.hrtime();
Log.info("Setting up style imports...\n");
loadStyles();
[sec, ns] = process.hrtime(start);
Log.info(`Setting up style imports took ${sec}s ${ns / 1000000}ms\n`);

start = process.hrtime();
Log.info("Provisioning assets...\n");
provisionAssets();
[sec, ns] = process.hrtime(start);
Log.info(`Provisioning assets took ${sec}s ${ns / 1000000}ms\n`);

// Whatever debugging-related command line arguments were passed in to
// the first node process, forward them along through meteor
const inspect = process.argv
.filter((arg) => arg.startsWith("--inspect"))
.join(" ");
let cmd = `meteor run --no-lint --no-release-check --raw-logs ${inspect}`;

Log.info(`Running command: ${cmd}`);
cmd = `REACTION_METEOR_APP_COMMAND_START_TIME=${Date.now()} ${cmd}`;

try {
childProcess.execSync(cmd, { stdio: "inherit" });
} catch (err) {
Log.default(err);
Log.error("\nError: App failed to start");
process.exit(1);
}
}

run();
Loading

0 comments on commit b7c6c20

Please sign in to comment.