Registry / web-framework / pine2e

pine2e

JSON →
library0.3.0jsnpmunverified

Pinetwo's pluggable web stack for twelve-factor apps based on Express.js and PostgreSQL. Current stable version 0.3.0, under development with no regular release cadence. Designed for Heroku deployment, integrates Express 3.x, PostgreSQL, Grunt tasks, ES6 transpilation, and LESS compilation. Differentiated by its opinionated structure but lacks widespread adoption and has not been updated in years.

npm install pine2e
INSTALL
IMPORT
SIG · PINE2E
P
pine2e
web-frameworkjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

initializeRootApp
const pine2e = require('pine2e'); module.exports = pine2e.initializeRootApp(__dirname);
import { initializeRootApp } from 'pine2e'; // ESM not supported, CJS only
CJS-only module; no ESM exports available.
configureApp / configureRootApp
exports.configureApp = function(app) { }; exports.configureRootApp = function(app) { };
module.exports = { configureApp: function(app) {} }; // Must use exports, not module.exports
Defined in config.js, exported via exports; module.exports will break detection.
startServer
require('./app').startServer();
const app = require('pine2e'); app.startServer(); // startServer is on the initialized app, not on pine2e module
startServer is a method of the app returned by initializeRootApp.

Shows how to initialize a pine2e app, define a route, and start the server.

// Initialize a new pine2e app const pine2e = require('pine2e'); const app = pine2e.initializeRootApp(__dirname); // Define routes app.get('/', (req, res) => { res.render('home'); }); // Start server (port from env or default 5000) app.startServer();
pine2e --version
Debug
Known issues
deprecatedPackage is abandoned: no updates since 2014, depends on deprecated Express 3.x and Grunt.
fix
Migrate to a modern framework like Express 4.x with separate middleware.
affects: >=0.0.0
breakingRequires Grunt ~0.4.1 as peer dependency; modern npm may warn or fail.
fix
If using npm v3+, install grunt explicitly: npm install grunt@~0.4.1
affects: >=0.0.0
gotchaConfig functions must be CommonJS exports, not module.exports.
fix
Use exports.configureApp = function(app) {...};
affects: >=0.0.0
gotchaES6 transpiler tasks: files from src/ -> lib/, assets/js6/ -> assets/js/; if directories missing, tasks fail silently.
fix
Ensure source directories exist before running grunt.
affects: >=0.0.0
Errors
Common errors & fixes
Error: Cannot find module 'grunt'
Missing peer dependency grunt
fix
npm install grunt@~0.4.1 --save-dev
TypeError: app.startServer is not a function
Trying to call startServer on the pine2e module instead of the app instance
fix
Initialize app with pine2e.initializeRootApp(__dirname) then call app.startServer()
ReferenceError: jQuery is not defined
ES6 transpiler options missing jQuery globals
fix
Add 'jQuery': false to es6transpiler.client.options.globals in Gruntfile
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies
gruntrequiredPeer dependency required for task runner integration
Agent activity
2 hits · last 30 days
node
2
Resources
pine2e — npm install pine2e · libregistry