1.6.3 • Published 11 months ago

fin-serve v1.6.3

Weekly downloads
160
License
ISC
Repository
github
Last release
11 months ago

FIN-SERVE

published on npm!

FIN SERVE IS DEPRECATED

It had a very good run, and got much further than it had any right to. It is time it was put to rest. Please do not use this. There are a zillion other solutions out there that weren't made by a junior at the beginning of his career and pushed well beyond their means.

It will no longer be receiving patches. Thank you for all the downloads.

OLD README

Purpose:

Fin-Serve is a very simple http server. Written in node with few deps, it aims to simply serve up compiled frontend assets without regards to routing. It will look in /dist for compiled assets. You should compile them before trying to run this.

Setup:

npm install will install the two deps (serve-static and finalhandler), as well as the dev deps used for testing.

Use:

npm install fin-serve to add the package to your project. After compiling assets, NODE_ENV=production npm start after configuring your webpack to listen to this middleware will launch a server looking at the static assets in ./dist/.

TODO: explain how to add it to the babel config.

Extra:

You may pass fin-serve additional env vars that will show up in the header to be parsed by the application later. All you need to do is append META_TAG_ to the front of whatever env var you'd like to appear as a parsable header, using a query to grab it like: document.queryselector('meta[name="YOUR_ENV_VAR"]').

Testing:

Run npm test after install dev dependencies.

1.6.3

11 months ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

4 years ago

1.5.0-beta.2

5 years ago

1.5.0-beta.1

5 years ago

1.4.2

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.4

8 years ago

1.0.3

9 years ago

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago