Commit 6b2ac015 authored by Juha's avatar Juha

First version of the service based in the Article #1

parents

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

node_modules
npm-debug.log
.git
.gitignore
# See https://help.github.com/ignore-files/ for more about ignoring files.
# dependencies
/node_modules
# test and coverage reports
/shippable
# misc
.DS_Store
.env
npm-debug.log*
yarn-debug.log*
yarn-error.log*
{
"extends": "airbnb",
"rules": {
"func-names": ["error", "never"],
"no-console": ["error", { allow: ["log", "warn", "error"] }],
"comma-dangle": ["error", {
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}]
},
"env": {
"jest": true
}
}
FROM node:6.10.2-alpine
# Create app directory
RUN mkdir /src
# Install app dependencies
ADD package.json npm-shrinkwrap.json /src/
# Install app dependencies
RUN cd /src && npm install --loglevel warn
WORKDIR /src
# Define an open port for the container
EXPOSE 3100
# Defined in package.json
CMD [ "npm", "run", "start:dev" ]
const restify = require('restify');
const SERVER_PORT = 3100;
const server = restify.createServer({ name: 'Auth Service' });
server.listen(SERVER_PORT, function () {
console.log(`Server running on: ${JSON.stringify(server.address(), undefined, 2)}`);
});
../acorn/bin/acorn
\ No newline at end of file
../bunyan/bin/bunyan
\ No newline at end of file
../cardinal/bin/cdl.js
\ No newline at end of file
../dateformat/bin/cli.js
\ No newline at end of file
../eslint/bin/eslint.js
\ No newline at end of file
../esprima/bin/esparse.js
\ No newline at end of file
../esprima/bin/esvalidate.js
\ No newline at end of file
../js-yaml/bin/js-yaml.js
\ No newline at end of file
../marked/bin/marked
\ No newline at end of file
../mime/cli.js
\ No newline at end of file
../mkdirp/bin/cmd.js
\ No newline at end of file
../ncp/bin/ncp
\ No newline at end of file
../node-dev/bin/node-dev
\ No newline at end of file
../node-notifier/bin.js
\ No newline at end of file
../restify/bin/report-latency
\ No newline at end of file
../rimraf/bin.js
\ No newline at end of file
../semver/bin/semver
\ No newline at end of file
../shelljs/bin/shjs
\ No newline at end of file
../strip-indent/cli.js
\ No newline at end of file
../node-uuid/bin/uuid
\ No newline at end of file
../which/bin/which
\ No newline at end of file
Copyright (C) 2012-2014 by Ingvar Stepanyan
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
# Acorn-JSX
[![Build Status](https://travis-ci.org/RReverser/acorn-jsx.svg?branch=master)](https://travis-ci.org/RReverser/acorn-jsx)
[![NPM version](https://img.shields.io/npm/v/acorn-jsx.svg)](https://www.npmjs.org/package/acorn-jsx)
This is plugin for [Acorn](http://marijnhaverbeke.nl/acorn/) - a tiny, fast JavaScript parser, written completely in JavaScript.
It was created as an experimental alternative, faster [React.js JSX](http://facebook.github.io/react/docs/jsx-in-depth.html) parser.
According to [benchmarks](https://github.com/RReverser/acorn-jsx/blob/master/test/bench.html), Acorn-JSX is 2x faster than official [Esprima-based parser](https://github.com/facebook/esprima) when location tracking is turned on in both (call it "source maps enabled mode"). At the same time, it consumes all the ES6+JSX syntax that can be consumed by Esprima-FB (this is proved by [official tests](https://github.com/RReverser/acorn-jsx/blob/master/test/tests-jsx.js)).
**UPDATE [14-Apr-2015]**: Facebook implementation started [deprecation process](https://github.com/facebook/esprima/issues/111) in favor of Acorn + Acorn-JSX + Babel for parsing and transpiling JSX syntax.
## Transpiler
Please note that this tool only parses source code to JSX AST, which is useful for various language tools and services. If you want to transpile your code to regular ES5-compliant JavaScript with source map, check out the [babel transpiler](https://babeljs.io/) which uses `acorn-jsx` under the hood.
## Usage
You can use module directly in order to get Acorn instance with plugin installed:
```javascript
var acorn = require('acorn-jsx');
```
Or you can use `inject.js` for injecting plugin into your own version of Acorn like following:
```javascript
var acorn = require('acorn-jsx/inject')(require('./custom-acorn'));
```
Then, use `plugins` option whenever you need to support JSX while parsing:
```javascript
var ast = acorn.parse(code, {
plugins: { jsx: true }
});
```
Note that official spec doesn't support mix of XML namespaces and object-style access in tag names (#27) like in `<namespace:Object.Property />`, so it was deprecated in `acorn-jsx@3.0`. If you still want to opt-in to support of such constructions, you can pass the following option:
```javascript
var ast = acorn.parse(code, {
plugins: {
jsx: { allowNamespacedObjects: true }
}
});
```
Also, since most apps use pure React transformer, a new option was introduced that allows to prohibit namespaces completely:
```javascript
var ast = acorn.parse(code, {
plugins: {
jsx: { allowNamespaces: false }
}
});
```
Note that by default `allowNamespaces` is enabled for spec compliancy.
## License
This plugin is issued under the [MIT license](./LICENSE).
'use strict';
module.exports = require('./inject')(require('acorn'));
This diff is collapsed.
../acorn/bin/acorn
\ No newline at end of file
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
{
"plugins": {
"node": true,
"es_modules": true
}
}
\ No newline at end of file
language: node_js
sudo: false
node_js: