Changes to prepare for official NPM push (#11)
* fix header level * add notice file * exclude compiled javascript files from explorer * bump version and change location of test config
This commit is contained in:
Родитель
e489fe527f
Коммит
0d662da856
|
@ -1,3 +1,6 @@
|
|||
{
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib"
|
||||
}
|
||||
"typescript.tsdk": "node_modules\\typescript\\lib",
|
||||
"files.exclude": {
|
||||
"src/**/*.js": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,43 @@
|
|||
NOTICES AND INFORMATION
|
||||
Do Not Translate or Localize
|
||||
|
||||
This software incorporates material from third parties. Microsoft makes certain
|
||||
open source code available at http://3rdpartysource.microsoft.com, or you may
|
||||
send a check or money order for US $5.00, including the product name, the open
|
||||
source component name, and version number, to:
|
||||
|
||||
Source Code Compliance Team
|
||||
Microsoft Corporation
|
||||
One Microsoft Way
|
||||
Redmond, WA 98052
|
||||
USA
|
||||
|
||||
Notwithstanding any other terms, you may reverse engineer this software to the
|
||||
extent required to debug changes to any libraries licensed under the GNU Lesser
|
||||
General Public License.
|
||||
|
||||
%% grapheme-splitter NOTICES AND INFORMATION BEGIN HERE
|
||||
=========================================
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 Orlin Georgiev
|
||||
|
||||
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.
|
||||
=========================================
|
||||
END OF grapheme-splitter NOTICES AND INFORMATION
|
|
@ -10,11 +10,11 @@ A minimal example can be found in [example.ts](src/example.ts) which uses the `l
|
|||
|
||||
## Things to note
|
||||
|
||||
##### Language Specification
|
||||
### Language Specification
|
||||
|
||||
The Power Query/M language has an [official specification](https://docs.microsoft.com/en-us/powerquery-m/power-query-m-language-specification) which was used. A few differences were found between the specification used (October 2016) and by the internal parser. These differences are were marked down in [spec/notes.md](spec/notes.md)
|
||||
|
||||
##### Error Handling
|
||||
### Error Handling
|
||||
|
||||
The project tries avoiding using `try/catch` blocks. Instead it prefers to use the `Result` type to carry exceptions between boundaries, and `Option` for explicit nullability. This means library users should assume public functions won't throw an uncaught exception.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "powerquery-parser",
|
||||
"version": "0.0.10",
|
||||
"name": "@microsoft/powerquery-parser",
|
||||
"version": "0.1.0",
|
||||
"description": "A parser for the Power Query langauge.",
|
||||
"main": "lib/index.js",
|
||||
"types": "lib/index.d.ts",
|
||||
|
@ -39,7 +39,7 @@
|
|||
"build-webpack": "npm run-script build-webpack-prod & npm run-script build-webpack-dev",
|
||||
"build-webpack-prod": "webpack --config webpack/prod.config.js",
|
||||
"build-webpack-dev": "webpack --config webpack/dev.config.js",
|
||||
"test": "mocha --reporter mocha-multi-reporters --reporter-options configFile=mochaConfig.json -r ts-node/register src/test/**/*.ts"
|
||||
"test": "mocha --reporter mocha-multi-reporters --reporter-options configFile=src/test/mochaConfig.json -r ts-node/register src/test/**/*.ts"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
Загрузка…
Ссылка в новой задаче