How to use bedrock - 8 common examples

To help you get started, we’ve selected a few bedrock examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
/*!
 * Credentials polyfill test configuration.
 *
 * Copyright (c) 2015 The Open Payments Foundation. All rights reserved.
 *
 * @author Omar Malik
 * @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
    name: 'credentials-polyfill-test',
    moduleType: 'amd',
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
*
 * Copyright (c) 2015 The Open Payments Foundation. All rights reserved.
 *
 * @author Omar Malik
 * @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
    name: 'credentials-polyfill-test',
    moduleType: 'amd',
    main: './main.js',
    dependencies: {
      angular: '~1.3.0'
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
/*!
 * Credentials polyfill test configuration.
 *
 * Copyright (c) 2015 The Open Payments Foundation. All rights reserved.
 *
 * @author Omar Malik
 * @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
/*!
 * Credentials polyfill test configuration.
 *
 * Copyright (c) 2015 The Open Payments Foundation. All rights reserved.
 *
 * @author Omar Malik
 * @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
    name: 'credentials-polyfill-test',
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
* @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
    name: 'credentials-polyfill-test',
    moduleType: 'amd',
    main: './main.js',
    dependencies: {
      angular: '~1.3.0'
    }
  }
});
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
});
config.requirejs.bower.packages.push({
  path: path.join(__dirname, 'components'),
  manifest: {
    name: 'credentials-polyfill-test',
    moduleType: 'amd',
    main: './main.js',
    dependencies: {
      angular: '~1.3.0'
    }
  }
});
github Spec-Ops / credentials-polyfill / tests / config.js View on Github external
/*!
 * Credentials polyfill test configuration.
 *
 * Copyright (c) 2015 The Open Payments Foundation. All rights reserved.
 *
 * @author Omar Malik
 * @author Dave Longley
 */
var config = require('bedrock').config;
var fs = require('fs');
var path = require('path');

config.server.port = 18444;
config.server.httpPort = 18081;
if(config.server.port !== 443) {
  config.server.host += ':' + config.server.port;
}
config.server.baseUri = 'https://' + config.server.host;

// add pseudo bower packages
var rootPath = path.join(__dirname, '..');
config.requirejs.bower.packages.push({
  path: rootPath,
  manifest: JSON.parse(fs.readFileSync(
    path.join(rootPath, 'bower.json'), {encoding: 'utf8'}))
github Spec-Ops / credentials-polyfill / tests / index.js View on Github external
*
 * @author Omar Malik
 * @author Dave Longley
 */
var bedrock = require('bedrock');

// modules
require('bedrock-express');

// frontend configuration
require('bedrock-requirejs');
require('bedrock-server');
require('bedrock-views');
require('./config.js');

bedrock.start();

bedrock

A core foundation for rich Web applications.

Apache-2.0
Latest version published 3 years ago

Package Health Score

52 / 100
Full package analysis