mirror of
https://gitlab.silvrtree.co.uk/martind2000/frontexpress.git
synced 2025-02-14 07:29:21 +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 Application from './application';
|
||||||
import Router from './lib/router';
|
import Router from './router';
|
||||||
import Middleware from './lib/middleware';
|
import Middleware from './middleware';
|
||||||
|
|
||||||
function frontexpress() {
|
function frontexpress() {
|
||||||
return new Application();
|
return new Application();
|
10
package.json
10
package.json
@ -2,13 +2,18 @@
|
|||||||
"name": "frontexpress",
|
"name": "frontexpress",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Minimalist front end router framework a la express",
|
"description": "Minimalist front end router framework a la express",
|
||||||
"main": "frontexpress.js",
|
"main": "dits/frontexpress.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"lint": "eslint .",
|
||||||
"only-test": "mocha --compilers js:babel-core/register",
|
"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)",
|
"author": "Camel Aissani <camel.aissani@gmail.com> (https://nuageprive.fr)",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=0.10.0"
|
||||||
|
},
|
||||||
"repository": "camelaissani/frontexpress",
|
"repository": "camelaissani/frontexpress",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"front",
|
"front",
|
||||||
@ -38,6 +43,7 @@
|
|||||||
"mocha": "^2.5.3",
|
"mocha": "^2.5.3",
|
||||||
"mocha-jsdom": "^1.1.0",
|
"mocha-jsdom": "^1.1.0",
|
||||||
"rewire": "^2.5.1",
|
"rewire": "^2.5.1",
|
||||||
|
"rimraf": "^2.5.2",
|
||||||
"sinon": "^1.17.4"
|
"sinon": "^1.17.4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*eslint-env mocha*/
|
/*eslint-env mocha*/
|
||||||
import {assert} from 'chai';
|
import {assert} from 'chai';
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import frontexpress from '../frontexpress';
|
import frontexpress from '../lib/frontexpress';
|
||||||
import Requester from '../lib/requester';
|
import Requester from '../lib/requester';
|
||||||
|
|
||||||
describe('Application', () => {
|
describe('Application', () => {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/*eslint-env mocha*/
|
/*eslint-env mocha*/
|
||||||
import {assert} from 'chai';
|
import {assert} from 'chai';
|
||||||
import sinon from 'sinon';
|
import sinon from 'sinon';
|
||||||
import frontexpress from '../frontexpress';
|
import frontexpress from '../lib/frontexpress';
|
||||||
import {HTTP_METHODS} from '../lib/requester';
|
import {HTTP_METHODS} from '../lib/requester';
|
||||||
|
|
||||||
describe('Router', () => {
|
describe('Router', () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user