mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-02-10 18:09:16 +00:00
exposed project as an NPM package
This commit is contained in:
parent
918aa3ac30
commit
ccd63ed9f6
2
.npmignore
Normal file
2
.npmignore
Normal file
@ -0,0 +1,2 @@
|
||||
test
|
||||
coverage
|
@ -1,6 +1,6 @@
|
||||
import Application from './lib/application';
|
||||
import Router from './lib/router';
|
||||
import Middleware from './lib/middleware';
|
||||
import Application from './application';
|
||||
import Router from './router';
|
||||
import Middleware from './middleware';
|
||||
|
||||
function frontexpress() {
|
||||
return new Application();
|
10
package.json
10
package.json
@ -2,13 +2,18 @@
|
||||
"name": "frontexpress",
|
||||
"version": "1.0.0",
|
||||
"description": "Minimalist front end router framework a la express",
|
||||
"main": "frontexpress.js",
|
||||
"main": "dits/frontexpress.js",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"only-test": "mocha --compilers js:babel-core/register",
|
||||
"test": "babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha"
|
||||
"test": "npm run lint && babel-node node_modules/.bin/babel-istanbul cover node_modules/.bin/_mocha",
|
||||
"prepublish": "rimraf dist && babel lib -d dist"
|
||||
},
|
||||
"author": "Camel Aissani <camel.aissani@gmail.com> (https://nuageprive.fr)",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"repository": "camelaissani/frontexpress",
|
||||
"keywords": [
|
||||
"front",
|
||||
@ -38,6 +43,7 @@
|
||||
"mocha": "^2.5.3",
|
||||
"mocha-jsdom": "^1.1.0",
|
||||
"rewire": "^2.5.1",
|
||||
"rimraf": "^2.5.2",
|
||||
"sinon": "^1.17.4"
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*eslint-env mocha*/
|
||||
import {assert} from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import frontexpress from '../frontexpress';
|
||||
import frontexpress from '../lib/frontexpress';
|
||||
import Requester from '../lib/requester';
|
||||
|
||||
describe('Application', () => {
|
||||
|
@ -1,7 +1,7 @@
|
||||
/*eslint-env mocha*/
|
||||
import {assert} from 'chai';
|
||||
import sinon from 'sinon';
|
||||
import frontexpress from '../frontexpress';
|
||||
import frontexpress from '../lib/frontexpress';
|
||||
import {HTTP_METHODS} from '../lib/requester';
|
||||
|
||||
describe('Router', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user