├── .gitignore ├── README.md ├── acceptance-test.sh ├── compiler ├── bin │ ├── kotlinc │ ├── kotlinc-js │ └── kotlinc-js.bat ├── build.txt ├── kotlin-compiler.js ├── lib │ ├── kotlin-compiler.jar │ ├── kotlin-jslib.jar │ ├── kotlin-preloader.jar │ ├── kotlin-reflect.jar │ ├── kotlin-runtime.jar │ ├── kotlin-script-runtime.jar │ └── kotlin-stdlib-js.jar └── license │ ├── LICENSE.txt │ ├── NOTICE.txt │ └── third_party │ ├── args4j_LICENSE.txt │ ├── asm_license.txt │ ├── closure-compiler_LICENSE.txt │ ├── dart_LICENSE.txt │ ├── jshashtable_license.txt │ ├── json_LICENSE.txt │ ├── maven_LICENSE.txt │ ├── pcollections_LICENSE.txt │ ├── prototype_license.txt │ ├── rhino_LICENSE.txt │ └── scala_license.txt ├── examples └── simple │ ├── compiled-reference.js │ ├── entry.js │ ├── second-test-file.kt │ ├── test-file.kt │ └── webpack.config.js ├── loader.js └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | npm-debug.log 4 | dist 5 | _compiled-tmp.* -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # kotlin-loader [Deprecated] 2 | 3 | ## Please use [kotlin-webpack-plugin](https://www.npmjs.com/package/kotlin-webpack-plugin) instead 4 | 5 | 6 | #### Kotlin webpack loader that allows importing Kotlin package into your JS 7 | 8 | #### Please note that this loader is not production ready, it's still under development. 9 | 10 | It uses kotlinc-js compiler to convert Kotlin code to JavaScript. Note that Kotlin codebase is not file-based, but package-based. So it's impossible to compile file-to-file at the moment, so you should import your kotlin entry point once. 11 | 12 | See [build example](https://github.com/huston007/kotlin-loader/tree/master/examples/simple), [app example](https://github.com/huston007/kotlin-loader-example). 13 | 14 | Usage: 15 | 16 | ```sh 17 | npm i webpack-kotlin-loader --save-dev 18 | ``` 19 | 20 | Do not forget to install kotlin runtime: 21 | ```sh 22 | npm i kotlin --save 23 | ``` 24 | 25 | Usage (for webpack 2): 26 | `webpack.config.js` 27 | ```js 28 | var path = require('path'); 29 | var webpack = require('webpack'); 30 | 31 | module.exports = { 32 | context: __dirname, 33 | devtool: 'source-map', 34 | entry: { 35 | main: './entry' 36 | }, 37 | output: { 38 | path: __dirname + '/dist', 39 | filename: 'build.js' 40 | }, 41 | module: { 42 | rules: [ 43 | { 44 | test: /\.kt$/, 45 | use: [ 46 | { 47 | loader: 'webpack-kotlin-loader', 48 | options: { 49 | srcRoot: path.resolve(__dirname, './') 50 | } 51 | } 52 | ] 53 | } 54 | ] 55 | } 56 | }; 57 | 58 | ``` 59 | Where `srcRoot` should be set to root directory which contains your kotlin sources. 60 | 61 | Then you could import your kotlin entry point somewhere: 62 | ```js 63 | require('./app/app.kt'); 64 | ``` 65 | -------------------------------------------------------------------------------- /acceptance-test.sh: -------------------------------------------------------------------------------- 1 | # Simple test 2 | npm run compile-simple 3 | 4 | cmp examples/simple/compiled-reference.js examples/simple/dist/build.js && echo 'Simple test passed' || exit 123 5 | -------------------------------------------------------------------------------- /compiler/bin/kotlinc: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | # 3 | ############################################################################## 4 | # Copyright 2002-2011, LAMP/EPFL 5 | # Copyright 2011-2015, JetBrains 6 | # 7 | # This is free software; see the distribution for copying conditions. 8 | # There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A 9 | # PARTICULAR PURPOSE. 10 | ############################################################################## 11 | 12 | cygwin=false; 13 | case "`uname`" in 14 | CYGWIN*) cygwin=true ;; 15 | esac 16 | 17 | # Based on findScalaHome() from scalac script 18 | findKotlinHome() { 19 | local source="${BASH_SOURCE[0]}" 20 | while [ -h "$source" ] ; do 21 | local linked="$(readlink "$source")" 22 | local dir="$(cd -P $(dirname "$source") && cd -P $(dirname "$linked") && pwd)" 23 | source="$dir/$(basename "$linked")" 24 | done 25 | (cd -P "$(dirname "$source")/.." && pwd) 26 | } 27 | 28 | KOTLIN_HOME="$(findKotlinHome)" 29 | 30 | if $cygwin; then 31 | # Remove spaces from KOTLIN_HOME on windows 32 | KOTLIN_HOME=`cygpath --windows --short-name "$KOTLIN_HOME"` 33 | fi 34 | 35 | [ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M" 36 | 37 | declare -a java_args 38 | declare -a kotlin_args 39 | 40 | while [ $# -gt 0 ]; do 41 | case "$1" in 42 | -D*) 43 | java_args=("${java_args[@]}" "$1") 44 | shift 45 | ;; 46 | -J*) 47 | java_args=("${java_args[@]}" "${1:2}") 48 | shift 49 | ;; 50 | *) 51 | kotlin_args=("${kotlin_args[@]}" "$1") 52 | shift 53 | ;; 54 | esac 55 | done 56 | 57 | if [ -z "$JAVACMD" -a -n "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ]; then 58 | JAVACMD="$JAVA_HOME/bin/java" 59 | fi 60 | 61 | declare -a kotlin_app 62 | 63 | if [ -n "$KOTLIN_RUNNER" ]; 64 | then 65 | java_args=("${java_args[@]}" "-Dkotlin.home=${KOTLIN_HOME}") 66 | kotlin_app=("${KOTLIN_HOME}/lib/kotlin-runner.jar" "org.jetbrains.kotlin.runner.Main") 67 | else 68 | [ -n "$KOTLIN_COMPILER" ] || KOTLIN_COMPILER=org.jetbrains.kotlin.cli.jvm.K2JVMCompiler 69 | java_args=("${java_args[@]}" "-noverify") 70 | kotlin_app=("${KOTLIN_HOME}/lib/kotlin-preloader.jar" "org.jetbrains.kotlin.preloading.Preloader" "-cp" "${KOTLIN_HOME}/lib/kotlin-compiler.jar" $KOTLIN_COMPILER) 71 | fi 72 | 73 | "${JAVACMD:=java}" $JAVA_OPTS "${java_args[@]}" -cp "${kotlin_app[@]}" "${kotlin_args[@]}" 74 | -------------------------------------------------------------------------------- /compiler/bin/kotlinc-js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | # Copyright 2010-2015 JetBrains s.r.o. 4 | # 5 | # Licensed under the Apache License, Version 2.0 (the "License"); 6 | # you may not use this file except in compliance with the License. 7 | # You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | 17 | export KOTLIN_COMPILER=org.jetbrains.kotlin.cli.js.K2JSCompiler 18 | 19 | DIR="${BASH_SOURCE[0]%/*}" 20 | : ${DIR:="."} 21 | 22 | "${DIR}"/kotlinc "$@" 23 | -------------------------------------------------------------------------------- /compiler/bin/kotlinc-js.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | 3 | rem Copyright 2010-2015 JetBrains s.r.o. 4 | rem 5 | rem Licensed under the Apache License, Version 2.0 (the "License"); 6 | rem you may not use this file except in compliance with the License. 7 | rem You may obtain a copy of the License at 8 | rem 9 | rem http://www.apache.org/licenses/LICENSE-2.0 10 | rem 11 | rem Unless required by applicable law or agreed to in writing, software 12 | rem distributed under the License is distributed on an "AS IS" BASIS, 13 | rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | rem See the License for the specific language governing permissions and 15 | rem limitations under the License. 16 | 17 | setlocal 18 | set _KOTLIN_COMPILER=org.jetbrains.kotlin.cli.js.K2JSCompiler 19 | 20 | call %~dps0kotlinc.bat %* 21 | -------------------------------------------------------------------------------- /compiler/build.txt: -------------------------------------------------------------------------------- 1 | 1.1.0 -------------------------------------------------------------------------------- /compiler/kotlin-compiler.js: -------------------------------------------------------------------------------- 1 | const spawn = require('child_process').spawn; 2 | const fs = require('fs'); 3 | 4 | const TMP_FILE_NAME = `${__dirname}/_compiled-tmp.js`; 5 | const TMP_SOURCE_MAP_FILE_NAME = `${TMP_FILE_NAME}.map`; 6 | const FILE_PROTO_PREFIX = 'file://'; 7 | 8 | const TURN_ON_RED_COLOR = '\033[31m'; 9 | const RESET_COLOR = '\033[0m'; 10 | 11 | function dropFilePrefixFromSourceUrls(sources) { 12 | return sources.map(path => { 13 | if (path.indexOf(FILE_PROTO_PREFIX) === 0) { 14 | return path.split(FILE_PROTO_PREFIX)[1]; 15 | } 16 | return path; 17 | }); 18 | } 19 | 20 | function onCompilationFinish() { 21 | return new Promise((resolve, reject) => { 22 | 23 | fs.readFile(TMP_SOURCE_MAP_FILE_NAME, (err, sourceMapBuffer) => { 24 | fs.readFile(TMP_FILE_NAME, (err, compiledSourceBuffer) => { 25 | if (err) { 26 | return reject(err); 27 | } 28 | const compiledSource = compiledSourceBuffer.toString(); 29 | const sourceMap = JSON.parse(sourceMapBuffer.toString()); 30 | 31 | sourceMap.sources = dropFilePrefixFromSourceUrls(sourceMap.sources); 32 | 33 | resolve({sourceMap, compiledSource}); 34 | }); 35 | }); 36 | }); 37 | 38 | } 39 | 40 | function convertOptionsIntoArguments(options) { 41 | var argumentsList = [ 42 | '-output', 43 | TMP_FILE_NAME, 44 | options.sourceMaps ? '-source-map' : null, 45 | options.noStdlib ? '-no-stdlib ' : null, 46 | options.metaInfo ? '-meta-info' : null, 47 | options.kjsm ? '-kjsm' : null, 48 | options.noWarn ? '-nowarn' : null, 49 | options.verbose ? '-verbose' : null 50 | ]; 51 | 52 | if (options.main) { 53 | argumentsList = argumentsList.concat('-main', options.main); 54 | } 55 | 56 | if (options.moduleKind) { 57 | argumentsList = argumentsList.concat('-module-kind', options.moduleKind); 58 | } 59 | 60 | if (options.libraries && options.libraries.length) { 61 | argumentsList = argumentsList.concat('-libraries', options.libraries.join(',')) 62 | } 63 | 64 | argumentsList = argumentsList.concat(options.sources) 65 | 66 | return argumentsList.filter(arg => !!arg); 67 | } 68 | 69 | function compile(options) { 70 | return new Promise((resolve, reject) => { 71 | var compilation = spawn(__dirname + `/bin/kotlinc-js`, 72 | convertOptionsIntoArguments(options), 73 | {stdio: [process.stdin, process.stdout, 'pipe']} 74 | ); 75 | var hasErrors = false; 76 | var errors = ''; 77 | 78 | compilation.stderr.on('data', (data) => { 79 | hasErrors = true; 80 | errors += data.toString(); 81 | }); 82 | 83 | compilation.on('error', (err) => { 84 | hasErrors = true; 85 | errors += 'kotlin-js failed. do you have kotlin installed?'; 86 | errors += JSON.stringify(err); 87 | }); 88 | 89 | compilation.on('close', () => { 90 | if (hasErrors === false) { 91 | resolve(onCompilationFinish()); 92 | } else { 93 | console.error(TURN_ON_RED_COLOR, '\n kotlin-js compilation failed. \n', errors, RESET_COLOR); 94 | reject(errors); 95 | } 96 | }); 97 | }); 98 | } 99 | 100 | module.exports = { 101 | compile: compile 102 | }; -------------------------------------------------------------------------------- /compiler/lib/kotlin-compiler.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-compiler.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-jslib.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-jslib.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-preloader.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-preloader.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-reflect.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-reflect.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-runtime.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-runtime.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-script-runtime.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-script-runtime.jar -------------------------------------------------------------------------------- /compiler/lib/kotlin-stdlib-js.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/andrey-skl/kotlin-loader/cf22daffcc135a5f47dd636fd1108a52a76c76ce/compiler/lib/kotlin-stdlib-js.jar -------------------------------------------------------------------------------- /compiler/license/LICENSE.txt: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2010-2017 JetBrains s.r.o. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ 16 | -------------------------------------------------------------------------------- /compiler/license/NOTICE.txt: -------------------------------------------------------------------------------- 1 | ========================================================================= 2 | == NOTICE file corresponding to the section 4 d of == 3 | == the Apache License, Version 2.0, == 4 | == in this case for the Kotlin Compiler distribution. == 5 | ========================================================================= 6 | 7 | Kotlin Compiler 8 | Copyright 2010-2015 JetBrains s.r.o and respective authors and developers 9 | -------------------------------------------------------------------------------- /compiler/license/third_party/args4j_LICENSE.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | 3 | Copyright (c) 2003, Kohsuke Kawaguchi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. 22 | -------------------------------------------------------------------------------- /compiler/license/third_party/asm_license.txt: -------------------------------------------------------------------------------- 1 | 2 | ASM: a very small and fast Java bytecode manipulation framework 3 | Copyright (c) 2000-2005 INRIA, France Telecom 4 | All rights reserved. 5 | 6 | Redistribution and use in source and binary forms, with or without 7 | modification, are permitted provided that the following conditions 8 | are met: 9 | 1. Redistributions of source code must retain the above copyright 10 | notice, this list of conditions and the following disclaimer. 11 | 2. Redistributions in binary form must reproduce the above copyright 12 | notice, this list of conditions and the following disclaimer in the 13 | documentation and/or other materials provided with the distribution. 14 | 3. Neither the name of the copyright holders nor the names of its 15 | contributors may be used to endorse or promote products derived from 16 | this software without specific prior written permission. 17 | 18 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 19 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 20 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 21 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 22 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 25 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 27 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 28 | THE POSSIBILITY OF SUCH DAMAGE. 29 | -------------------------------------------------------------------------------- /compiler/license/third_party/closure-compiler_LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /compiler/license/third_party/dart_LICENSE.txt: -------------------------------------------------------------------------------- 1 | This license applies to all parts of Dart that are not externally 2 | maintained libraries. The external maintained libraries used by 3 | Dart are: 4 | 5 | 7-Zip - in third_party/7zip 6 | JSCRE - in runtime/third_party/jscre 7 | Ant - in third_party/apache_ant 8 | args4j - in third_party/args4j 9 | bzip2 - in third_party/bzip2 10 | dromaeo - in samples/third_party/dromaeo 11 | Eclipse - in third_party/eclipse 12 | gsutil = in third_party/gsutil 13 | Guava - in third_party/guava 14 | hamcrest - in third_party/hamcrest 15 | Httplib2 - in samples/third_party/httplib2 16 | JSON - in third_party/json 17 | JUnit - in third_party/junit 18 | Oauth - in samples/third_party/oauth2client 19 | Rhino - in third_party/rhino 20 | weberknecht - in third_party/weberknecht 21 | 22 | The libraries may have their own licenses; we recommend you read them, 23 | as their terms may differ from the terms below. 24 | 25 | Copyright 2012, the Dart project authors. All rights reserved. 26 | Redistribution and use in source and binary forms, with or without 27 | modification, are permitted provided that the following conditions are 28 | met: 29 | * Redistributions of source code must retain the above copyright 30 | notice, this list of conditions and the following disclaimer. 31 | * Redistributions in binary form must reproduce the above 32 | copyright notice, this list of conditions and the following 33 | disclaimer in the documentation and/or other materials provided 34 | with the distribution. 35 | * Neither the name of Google Inc. nor the names of its 36 | contributors may be used to endorse or promote products derived 37 | from this software without specific prior written permission. 38 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 39 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 40 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 41 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 42 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 43 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 44 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 45 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 46 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 47 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 48 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 49 | -------------------------------------------------------------------------------- /compiler/license/third_party/jshashtable_license.txt: -------------------------------------------------------------------------------- 1 | /** 2 | * Copyright 2010 Tim Down. 3 | * 4 | * Licensed under the Apache License, Version 2.0 (the "License"); 5 | * you may not use this file except in compliance with the License. 6 | * You may obtain a copy of the License at 7 | * 8 | * http://www.apache.org/licenses/LICENSE-2.0 9 | * 10 | * Unless required by applicable law or agreed to in writing, software 11 | * distributed under the License is distributed on an "AS IS" BASIS, 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | * See the License for the specific language governing permissions and 14 | * limitations under the License. 15 | */ -------------------------------------------------------------------------------- /compiler/license/third_party/json_LICENSE.txt: -------------------------------------------------------------------------------- 1 | JSON 2 | 3 | Copyright (c) 2002 JSON.org 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | The Software shall be used for Good, not Evil. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /compiler/license/third_party/maven_LICENSE.txt: -------------------------------------------------------------------------------- 1 | 2 | Apache License 3 | Version 2.0, January 2004 4 | http://www.apache.org/licenses/ 5 | 6 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 7 | 8 | 1. Definitions. 9 | 10 | "License" shall mean the terms and conditions for use, reproduction, 11 | and distribution as defined by Sections 1 through 9 of this document. 12 | 13 | "Licensor" shall mean the copyright owner or entity authorized by 14 | the copyright owner that is granting the License. 15 | 16 | "Legal Entity" shall mean the union of the acting entity and all 17 | other entities that control, are controlled by, or are under common 18 | control with that entity. For the purposes of this definition, 19 | "control" means (i) the power, direct or indirect, to cause the 20 | direction or management of such entity, whether by contract or 21 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 22 | outstanding shares, or (iii) beneficial ownership of such entity. 23 | 24 | "You" (or "Your") shall mean an individual or Legal Entity 25 | exercising permissions granted by this License. 26 | 27 | "Source" form shall mean the preferred form for making modifications, 28 | including but not limited to software source code, documentation 29 | source, and configuration files. 30 | 31 | "Object" form shall mean any form resulting from mechanical 32 | transformation or translation of a Source form, including but 33 | not limited to compiled object code, generated documentation, 34 | and conversions to other media types. 35 | 36 | "Work" shall mean the work of authorship, whether in Source or 37 | Object form, made available under the License, as indicated by a 38 | copyright notice that is included in or attached to the work 39 | (an example is provided in the Appendix below). 40 | 41 | "Derivative Works" shall mean any work, whether in Source or Object 42 | form, that is based on (or derived from) the Work and for which the 43 | editorial revisions, annotations, elaborations, or other modifications 44 | represent, as a whole, an original work of authorship. For the purposes 45 | of this License, Derivative Works shall not include works that remain 46 | separable from, or merely link (or bind by name) to the interfaces of, 47 | the Work and Derivative Works thereof. 48 | 49 | "Contribution" shall mean any work of authorship, including 50 | the original version of the Work and any modifications or additions 51 | to that Work or Derivative Works thereof, that is intentionally 52 | submitted to Licensor for inclusion in the Work by the copyright owner 53 | or by an individual or Legal Entity authorized to submit on behalf of 54 | the copyright owner. For the purposes of this definition, "submitted" 55 | means any form of electronic, verbal, or written communication sent 56 | to the Licensor or its representatives, including but not limited to 57 | communication on electronic mailing lists, source code control systems, 58 | and issue tracking systems that are managed by, or on behalf of, the 59 | Licensor for the purpose of discussing and improving the Work, but 60 | excluding communication that is conspicuously marked or otherwise 61 | designated in writing by the copyright owner as "Not a Contribution." 62 | 63 | "Contributor" shall mean Licensor and any individual or Legal Entity 64 | on behalf of whom a Contribution has been received by Licensor and 65 | subsequently incorporated within the Work. 66 | 67 | 2. Grant of Copyright License. Subject to the terms and conditions of 68 | this License, each Contributor hereby grants to You a perpetual, 69 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 70 | copyright license to reproduce, prepare Derivative Works of, 71 | publicly display, publicly perform, sublicense, and distribute the 72 | Work and such Derivative Works in Source or Object form. 73 | 74 | 3. Grant of Patent License. Subject to the terms and conditions of 75 | this License, each Contributor hereby grants to You a perpetual, 76 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 77 | (except as stated in this section) patent license to make, have made, 78 | use, offer to sell, sell, import, and otherwise transfer the Work, 79 | where such license applies only to those patent claims licensable 80 | by such Contributor that are necessarily infringed by their 81 | Contribution(s) alone or by combination of their Contribution(s) 82 | with the Work to which such Contribution(s) was submitted. If You 83 | institute patent litigation against any entity (including a 84 | cross-claim or counterclaim in a lawsuit) alleging that the Work 85 | or a Contribution incorporated within the Work constitutes direct 86 | or contributory patent infringement, then any patent licenses 87 | granted to You under this License for that Work shall terminate 88 | as of the date such litigation is filed. 89 | 90 | 4. Redistribution. You may reproduce and distribute copies of the 91 | Work or Derivative Works thereof in any medium, with or without 92 | modifications, and in Source or Object form, provided that You 93 | meet the following conditions: 94 | 95 | (a) You must give any other recipients of the Work or 96 | Derivative Works a copy of this License; and 97 | 98 | (b) You must cause any modified files to carry prominent notices 99 | stating that You changed the files; and 100 | 101 | (c) You must retain, in the Source form of any Derivative Works 102 | that You distribute, all copyright, patent, trademark, and 103 | attribution notices from the Source form of the Work, 104 | excluding those notices that do not pertain to any part of 105 | the Derivative Works; and 106 | 107 | (d) If the Work includes a "NOTICE" text file as part of its 108 | distribution, then any Derivative Works that You distribute must 109 | include a readable copy of the attribution notices contained 110 | within such NOTICE file, excluding those notices that do not 111 | pertain to any part of the Derivative Works, in at least one 112 | of the following places: within a NOTICE text file distributed 113 | as part of the Derivative Works; within the Source form or 114 | documentation, if provided along with the Derivative Works; or, 115 | within a display generated by the Derivative Works, if and 116 | wherever such third-party notices normally appear. The contents 117 | of the NOTICE file are for informational purposes only and 118 | do not modify the License. You may add Your own attribution 119 | notices within Derivative Works that You distribute, alongside 120 | or as an addendum to the NOTICE text from the Work, provided 121 | that such additional attribution notices cannot be construed 122 | as modifying the License. 123 | 124 | You may add Your own copyright statement to Your modifications and 125 | may provide additional or different license terms and conditions 126 | for use, reproduction, or distribution of Your modifications, or 127 | for any such Derivative Works as a whole, provided Your use, 128 | reproduction, and distribution of the Work otherwise complies with 129 | the conditions stated in this License. 130 | 131 | 5. Submission of Contributions. Unless You explicitly state otherwise, 132 | any Contribution intentionally submitted for inclusion in the Work 133 | by You to the Licensor shall be under the terms and conditions of 134 | this License, without any additional terms or conditions. 135 | Notwithstanding the above, nothing herein shall supersede or modify 136 | the terms of any separate license agreement you may have executed 137 | with Licensor regarding such Contributions. 138 | 139 | 6. Trademarks. This License does not grant permission to use the trade 140 | names, trademarks, service marks, or product names of the Licensor, 141 | except as required for reasonable and customary use in describing the 142 | origin of the Work and reproducing the content of the NOTICE file. 143 | 144 | 7. Disclaimer of Warranty. Unless required by applicable law or 145 | agreed to in writing, Licensor provides the Work (and each 146 | Contributor provides its Contributions) on an "AS IS" BASIS, 147 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 148 | implied, including, without limitation, any warranties or conditions 149 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 150 | PARTICULAR PURPOSE. You are solely responsible for determining the 151 | appropriateness of using or redistributing the Work and assume any 152 | risks associated with Your exercise of permissions under this License. 153 | 154 | 8. Limitation of Liability. In no event and under no legal theory, 155 | whether in tort (including negligence), contract, or otherwise, 156 | unless required by applicable law (such as deliberate and grossly 157 | negligent acts) or agreed to in writing, shall any Contributor be 158 | liable to You for damages, including any direct, indirect, special, 159 | incidental, or consequential damages of any character arising as a 160 | result of this License or out of the use or inability to use the 161 | Work (including but not limited to damages for loss of goodwill, 162 | work stoppage, computer failure or malfunction, or any and all 163 | other commercial damages or losses), even if such Contributor 164 | has been advised of the possibility of such damages. 165 | 166 | 9. Accepting Warranty or Additional Liability. While redistributing 167 | the Work or Derivative Works thereof, You may choose to offer, 168 | and charge a fee for, acceptance of support, warranty, indemnity, 169 | or other liability obligations and/or rights consistent with this 170 | License. However, in accepting such obligations, You may act only 171 | on Your own behalf and on Your sole responsibility, not on behalf 172 | of any other Contributor, and only if You agree to indemnify, 173 | defend, and hold each Contributor harmless for any liability 174 | incurred by, or claims asserted against, such Contributor by reason 175 | of your accepting any such warranty or additional liability. 176 | 177 | END OF TERMS AND CONDITIONS 178 | 179 | APPENDIX: How to apply the Apache License to your work. 180 | 181 | To apply the Apache License to your work, attach the following 182 | boilerplate notice, with the fields enclosed by brackets "[]" 183 | replaced with your own identifying information. (Don't include 184 | the brackets!) The text should be enclosed in the appropriate 185 | comment syntax for the file format. We also recommend that a 186 | file or class name and description of purpose be included on the 187 | same "printed page" as the copyright notice for easier 188 | identification within third-party archives. 189 | 190 | Copyright [yyyy] [name of copyright owner] 191 | 192 | Licensed under the Apache License, Version 2.0 (the "License"); 193 | you may not use this file except in compliance with the License. 194 | You may obtain a copy of the License at 195 | 196 | http://www.apache.org/licenses/LICENSE-2.0 197 | 198 | Unless required by applicable law or agreed to in writing, software 199 | distributed under the License is distributed on an "AS IS" BASIS, 200 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 201 | See the License for the specific language governing permissions and 202 | limitations under the License. 203 | -------------------------------------------------------------------------------- /compiler/license/third_party/pcollections_LICENSE.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2008 Harold Cooper 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in 11 | all copies or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 19 | THE SOFTWARE. 20 | -------------------------------------------------------------------------------- /compiler/license/third_party/prototype_license.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2005-2010 Sam Stephenson 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy 4 | of this software and associated documentation files (the "Software"), to deal 5 | in the Software without restriction, including without limitation the rights 6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 7 | copies of the Software, and to permit persons to whom the Software is 8 | furnished to do so, subject to the following conditions: 9 | 10 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 11 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 12 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 13 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 14 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 15 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 16 | SOFTWARE. -------------------------------------------------------------------------------- /compiler/license/third_party/rhino_LICENSE.txt: -------------------------------------------------------------------------------- 1 | The majority of Rhino is MPL 1.1 / GPL 2.0 dual licensed: 2 | 3 | The Mozilla Public License (http://www.mozilla.org/MPL/MPL-1.1.txt): 4 | ============================================================================ 5 | MOZILLA PUBLIC LICENSE 6 | Version 1.1 7 | 8 | --------------- 9 | 10 | 1. Definitions. 11 | 12 | 1.0.1. "Commercial Use" means distribution or otherwise making the 13 | Covered Code available to a third party. 14 | 15 | 1.1. "Contributor" means each entity that creates or contributes to 16 | the creation of Modifications. 17 | 18 | 1.2. "Contributor Version" means the combination of the Original 19 | Code, prior Modifications used by a Contributor, and the Modifications 20 | made by that particular Contributor. 21 | 22 | 1.3. "Covered Code" means the Original Code or Modifications or the 23 | combination of the Original Code and Modifications, in each case 24 | including portions thereof. 25 | 26 | 1.4. "Electronic Distribution Mechanism" means a mechanism generally 27 | accepted in the software development community for the electronic 28 | transfer of data. 29 | 30 | 1.5. "Executable" means Covered Code in any form other than Source 31 | Code. 32 | 33 | 1.6. "Initial Developer" means the individual or entity identified 34 | as the Initial Developer in the Source Code notice required by Exhibit 35 | A. 36 | 37 | 1.7. "Larger Work" means a work which combines Covered Code or 38 | portions thereof with code not governed by the terms of this License. 39 | 40 | 1.8. "License" means this document. 41 | 42 | 1.8.1. "Licensable" means having the right to grant, to the maximum 43 | extent possible, whether at the time of the initial grant or 44 | subsequently acquired, any and all of the rights conveyed herein. 45 | 46 | 1.9. "Modifications" means any addition to or deletion from the 47 | substance or structure of either the Original Code or any previous 48 | Modifications. When Covered Code is released as a series of files, a 49 | Modification is: 50 | A. Any addition to or deletion from the contents of a file 51 | containing Original Code or previous Modifications. 52 | 53 | B. Any new file that contains any part of the Original Code or 54 | previous Modifications. 55 | 56 | 1.10. "Original Code" means Source Code of computer software code 57 | which is described in the Source Code notice required by Exhibit A as 58 | Original Code, and which, at the time of its release under this 59 | License is not already Covered Code governed by this License. 60 | 61 | 1.10.1. "Patent Claims" means any patent claim(s), now owned or 62 | hereafter acquired, including without limitation, method, process, 63 | and apparatus claims, in any patent Licensable by grantor. 64 | 65 | 1.11. "Source Code" means the preferred form of the Covered Code for 66 | making modifications to it, including all modules it contains, plus 67 | any associated interface definition files, scripts used to control 68 | compilation and installation of an Executable, or source code 69 | differential comparisons against either the Original Code or another 70 | well known, available Covered Code of the Contributor's choice. The 71 | Source Code can be in a compressed or archival form, provided the 72 | appropriate decompression or de-archiving software is widely available 73 | for no charge. 74 | 75 | 1.12. "You" (or "Your") means an individual or a legal entity 76 | exercising rights under, and complying with all of the terms of, this 77 | License or a future version of this License issued under Section 6.1. 78 | For legal entities, "You" includes any entity which controls, is 79 | controlled by, or is under common control with You. For purposes of 80 | this definition, "control" means (a) the power, direct or indirect, 81 | to cause the direction or management of such entity, whether by 82 | contract or otherwise, or (b) ownership of more than fifty percent 83 | (50%) of the outstanding shares or beneficial ownership of such 84 | entity. 85 | 86 | 2. Source Code License. 87 | 88 | 2.1. The Initial Developer Grant. 89 | The Initial Developer hereby grants You a world-wide, royalty-free, 90 | non-exclusive license, subject to third party intellectual property 91 | claims: 92 | (a) under intellectual property rights (other than patent or 93 | trademark) Licensable by Initial Developer to use, reproduce, 94 | modify, display, perform, sublicense and distribute the Original 95 | Code (or portions thereof) with or without Modifications, and/or 96 | as part of a Larger Work; and 97 | 98 | (b) under Patents Claims infringed by the making, using or 99 | selling of Original Code, to make, have made, use, practice, 100 | sell, and offer for sale, and/or otherwise dispose of the 101 | Original Code (or portions thereof). 102 | 103 | (c) the licenses granted in this Section 2.1(a) and (b) are 104 | effective on the date Initial Developer first distributes 105 | Original Code under the terms of this License. 106 | 107 | (d) Notwithstanding Section 2.1(b) above, no patent license is 108 | granted: 1) for code that You delete from the Original Code; 2) 109 | separate from the Original Code; or 3) for infringements caused 110 | by: i) the modification of the Original Code or ii) the 111 | combination of the Original Code with other software or devices. 112 | 113 | 2.2. Contributor Grant. 114 | Subject to third party intellectual property claims, each Contributor 115 | hereby grants You a world-wide, royalty-free, non-exclusive license 116 | 117 | (a) under intellectual property rights (other than patent or 118 | trademark) Licensable by Contributor, to use, reproduce, modify, 119 | display, perform, sublicense and distribute the Modifications 120 | created by such Contributor (or portions thereof) either on an 121 | unmodified basis, with other Modifications, as Covered Code 122 | and/or as part of a Larger Work; and 123 | 124 | (b) under Patent Claims infringed by the making, using, or 125 | selling of Modifications made by that Contributor either alone 126 | and/or in combination with its Contributor Version (or portions 127 | of such combination), to make, use, sell, offer for sale, have 128 | made, and/or otherwise dispose of: 1) Modifications made by that 129 | Contributor (or portions thereof); and 2) the combination of 130 | Modifications made by that Contributor with its Contributor 131 | Version (or portions of such combination). 132 | 133 | (c) the licenses granted in Sections 2.2(a) and 2.2(b) are 134 | effective on the date Contributor first makes Commercial Use of 135 | the Covered Code. 136 | 137 | (d) Notwithstanding Section 2.2(b) above, no patent license is 138 | granted: 1) for any code that Contributor has deleted from the 139 | Contributor Version; 2) separate from the Contributor Version; 140 | 3) for infringements caused by: i) third party modifications of 141 | Contributor Version or ii) the combination of Modifications made 142 | by that Contributor with other software (except as part of the 143 | Contributor Version) or other devices; or 4) under Patent Claims 144 | infringed by Covered Code in the absence of Modifications made by 145 | that Contributor. 146 | 147 | 3. Distribution Obligations. 148 | 149 | 3.1. Application of License. 150 | The Modifications which You create or to which You contribute are 151 | governed by the terms of this License, including without limitation 152 | Section 2.2. The Source Code version of Covered Code may be 153 | distributed only under the terms of this License or a future version 154 | of this License released under Section 6.1, and You must include a 155 | copy of this License with every copy of the Source Code You 156 | distribute. You may not offer or impose any terms on any Source Code 157 | version that alters or restricts the applicable version of this 158 | License or the recipients' rights hereunder. However, You may include 159 | an additional document offering the additional rights described in 160 | Section 3.5. 161 | 162 | 3.2. Availability of Source Code. 163 | Any Modification which You create or to which You contribute must be 164 | made available in Source Code form under the terms of this License 165 | either on the same media as an Executable version or via an accepted 166 | Electronic Distribution Mechanism to anyone to whom you made an 167 | Executable version available; and if made available via Electronic 168 | Distribution Mechanism, must remain available for at least twelve (12) 169 | months after the date it initially became available, or at least six 170 | (6) months after a subsequent version of that particular Modification 171 | has been made available to such recipients. You are responsible for 172 | ensuring that the Source Code version remains available even if the 173 | Electronic Distribution Mechanism is maintained by a third party. 174 | 175 | 3.3. Description of Modifications. 176 | You must cause all Covered Code to which You contribute to contain a 177 | file documenting the changes You made to create that Covered Code and 178 | the date of any change. You must include a prominent statement that 179 | the Modification is derived, directly or indirectly, from Original 180 | Code provided by the Initial Developer and including the name of the 181 | Initial Developer in (a) the Source Code, and (b) in any notice in an 182 | Executable version or related documentation in which You describe the 183 | origin or ownership of the Covered Code. 184 | 185 | 3.4. Intellectual Property Matters 186 | (a) Third Party Claims. 187 | If Contributor has knowledge that a license under a third party's 188 | intellectual property rights is required to exercise the rights 189 | granted by such Contributor under Sections 2.1 or 2.2, 190 | Contributor must include a text file with the Source Code 191 | distribution titled "LEGAL" which describes the claim and the 192 | party making the claim in sufficient detail that a recipient will 193 | know whom to contact. If Contributor obtains such knowledge after 194 | the Modification is made available as described in Section 3.2, 195 | Contributor shall promptly modify the LEGAL file in all copies 196 | Contributor makes available thereafter and shall take other steps 197 | (such as notifying appropriate mailing lists or newsgroups) 198 | reasonably calculated to inform those who received the Covered 199 | Code that new knowledge has been obtained. 200 | 201 | (b) Contributor APIs. 202 | If Contributor's Modifications include an application programming 203 | interface and Contributor has knowledge of patent licenses which 204 | are reasonably necessary to implement that API, Contributor must 205 | also include this information in the LEGAL file. 206 | 207 | (c) Representations. 208 | Contributor represents that, except as disclosed pursuant to 209 | Section 3.4(a) above, Contributor believes that Contributor's 210 | Modifications are Contributor's original creation(s) and/or 211 | Contributor has sufficient rights to grant the rights conveyed by 212 | this License. 213 | 214 | 3.5. Required Notices. 215 | You must duplicate the notice in Exhibit A in each file of the Source 216 | Code. If it is not possible to put such notice in a particular Source 217 | Code file due to its structure, then You must include such notice in a 218 | location (such as a relevant directory) where a user would be likely 219 | to look for such a notice. If You created one or more Modification(s) 220 | You may add your name as a Contributor to the notice described in 221 | Exhibit A. You must also duplicate this License in any documentation 222 | for the Source Code where You describe recipients' rights or ownership 223 | rights relating to Covered Code. You may choose to offer, and to 224 | charge a fee for, warranty, support, indemnity or liability 225 | obligations to one or more recipients of Covered Code. However, You 226 | may do so only on Your own behalf, and not on behalf of the Initial 227 | Developer or any Contributor. You must make it absolutely clear than 228 | any such warranty, support, indemnity or liability obligation is 229 | offered by You alone, and You hereby agree to indemnify the Initial 230 | Developer and every Contributor for any liability incurred by the 231 | Initial Developer or such Contributor as a result of warranty, 232 | support, indemnity or liability terms You offer. 233 | 234 | 3.6. Distribution of Executable Versions. 235 | You may distribute Covered Code in Executable form only if the 236 | requirements of Section 3.1-3.5 have been met for that Covered Code, 237 | and if You include a notice stating that the Source Code version of 238 | the Covered Code is available under the terms of this License, 239 | including a description of how and where You have fulfilled the 240 | obligations of Section 3.2. The notice must be conspicuously included 241 | in any notice in an Executable version, related documentation or 242 | collateral in which You describe recipients' rights relating to the 243 | Covered Code. You may distribute the Executable version of Covered 244 | Code or ownership rights under a license of Your choice, which may 245 | contain terms different from this License, provided that You are in 246 | compliance with the terms of this License and that the license for the 247 | Executable version does not attempt to limit or alter the recipient's 248 | rights in the Source Code version from the rights set forth in this 249 | License. If You distribute the Executable version under a different 250 | license You must make it absolutely clear that any terms which differ 251 | from this License are offered by You alone, not by the Initial 252 | Developer or any Contributor. You hereby agree to indemnify the 253 | Initial Developer and every Contributor for any liability incurred by 254 | the Initial Developer or such Contributor as a result of any such 255 | terms You offer. 256 | 257 | 3.7. Larger Works. 258 | You may create a Larger Work by combining Covered Code with other code 259 | not governed by the terms of this License and distribute the Larger 260 | Work as a single product. In such a case, You must make sure the 261 | requirements of this License are fulfilled for the Covered Code. 262 | 263 | 4. Inability to Comply Due to Statute or Regulation. 264 | 265 | If it is impossible for You to comply with any of the terms of this 266 | License with respect to some or all of the Covered Code due to 267 | statute, judicial order, or regulation then You must: (a) comply with 268 | the terms of this License to the maximum extent possible; and (b) 269 | describe the limitations and the code they affect. Such description 270 | must be included in the LEGAL file described in Section 3.4 and must 271 | be included with all distributions of the Source Code. Except to the 272 | extent prohibited by statute or regulation, such description must be 273 | sufficiently detailed for a recipient of ordinary skill to be able to 274 | understand it. 275 | 276 | 5. Application of this License. 277 | 278 | This License applies to code to which the Initial Developer has 279 | attached the notice in Exhibit A and to related Covered Code. 280 | 281 | 6. Versions of the License. 282 | 283 | 6.1. New Versions. 284 | Netscape Communications Corporation ("Netscape") may publish revised 285 | and/or new versions of the License from time to time. Each version 286 | will be given a distinguishing version number. 287 | 288 | 6.2. Effect of New Versions. 289 | Once Covered Code has been published under a particular version of the 290 | License, You may always continue to use it under the terms of that 291 | version. You may also choose to use such Covered Code under the terms 292 | of any subsequent version of the License published by Netscape. No one 293 | other than Netscape has the right to modify the terms applicable to 294 | Covered Code created under this License. 295 | 296 | 6.3. Derivative Works. 297 | If You create or use a modified version of this License (which you may 298 | only do in order to apply it to code which is not already Covered Code 299 | governed by this License), You must (a) rename Your license so that 300 | the phrases "Mozilla", "MOZILLAPL", "MOZPL", "Netscape", 301 | "MPL", "NPL" or any confusingly similar phrase do not appear in your 302 | license (except to note that your license differs from this License) 303 | and (b) otherwise make it clear that Your version of the license 304 | contains terms which differ from the Mozilla Public License and 305 | Netscape Public License. (Filling in the name of the Initial 306 | Developer, Original Code or Contributor in the notice described in 307 | Exhibit A shall not of themselves be deemed to be modifications of 308 | this License.) 309 | 310 | 7. DISCLAIMER OF WARRANTY. 311 | 312 | COVERED CODE IS PROVIDED UNDER THIS LICENSE ON AN "AS IS" BASIS, 313 | WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, 314 | WITHOUT LIMITATION, WARRANTIES THAT THE COVERED CODE IS FREE OF 315 | DEFECTS, MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE OR NON-INFRINGING. 316 | THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE COVERED CODE 317 | IS WITH YOU. SHOULD ANY COVERED CODE PROVE DEFECTIVE IN ANY RESPECT, 318 | YOU (NOT THE INITIAL DEVELOPER OR ANY OTHER CONTRIBUTOR) ASSUME THE 319 | COST OF ANY NECESSARY SERVICING, REPAIR OR CORRECTION. THIS DISCLAIMER 320 | OF WARRANTY CONSTITUTES AN ESSENTIAL PART OF THIS LICENSE. NO USE OF 321 | ANY COVERED CODE IS AUTHORIZED HEREUNDER EXCEPT UNDER THIS DISCLAIMER. 322 | 323 | 8. TERMINATION. 324 | 325 | 8.1. This License and the rights granted hereunder will terminate 326 | automatically if You fail to comply with terms herein and fail to cure 327 | such breach within 30 days of becoming aware of the breach. All 328 | sublicenses to the Covered Code which are properly granted shall 329 | survive any termination of this License. Provisions which, by their 330 | nature, must remain in effect beyond the termination of this License 331 | shall survive. 332 | 333 | 8.2. If You initiate litigation by asserting a patent infringement 334 | claim (excluding declatory judgment actions) against Initial Developer 335 | or a Contributor (the Initial Developer or Contributor against whom 336 | You file such action is referred to as "Participant") alleging that: 337 | 338 | (a) such Participant's Contributor Version directly or indirectly 339 | infringes any patent, then any and all rights granted by such 340 | Participant to You under Sections 2.1 and/or 2.2 of this License 341 | shall, upon 60 days notice from Participant terminate prospectively, 342 | unless if within 60 days after receipt of notice You either: (i) 343 | agree in writing to pay Participant a mutually agreeable reasonable 344 | royalty for Your past and future use of Modifications made by such 345 | Participant, or (ii) withdraw Your litigation claim with respect to 346 | the Contributor Version against such Participant. If within 60 days 347 | of notice, a reasonable royalty and payment arrangement are not 348 | mutually agreed upon in writing by the parties or the litigation claim 349 | is not withdrawn, the rights granted by Participant to You under 350 | Sections 2.1 and/or 2.2 automatically terminate at the expiration of 351 | the 60 day notice period specified above. 352 | 353 | (b) any software, hardware, or device, other than such Participant's 354 | Contributor Version, directly or indirectly infringes any patent, then 355 | any rights granted to You by such Participant under Sections 2.1(b) 356 | and 2.2(b) are revoked effective as of the date You first made, used, 357 | sold, distributed, or had made, Modifications made by that 358 | Participant. 359 | 360 | 8.3. If You assert a patent infringement claim against Participant 361 | alleging that such Participant's Contributor Version directly or 362 | indirectly infringes any patent where such claim is resolved (such as 363 | by license or settlement) prior to the initiation of patent 364 | infringement litigation, then the reasonable value of the licenses 365 | granted by such Participant under Sections 2.1 or 2.2 shall be taken 366 | into account in determining the amount or value of any payment or 367 | license. 368 | 369 | 8.4. In the event of termination under Sections 8.1 or 8.2 above, 370 | all end user license agreements (excluding distributors and resellers) 371 | which have been validly granted by You or any distributor hereunder 372 | prior to termination shall survive termination. 373 | 374 | 9. LIMITATION OF LIABILITY. 375 | 376 | UNDER NO CIRCUMSTANCES AND UNDER NO LEGAL THEORY, WHETHER TORT 377 | (INCLUDING NEGLIGENCE), CONTRACT, OR OTHERWISE, SHALL YOU, THE INITIAL 378 | DEVELOPER, ANY OTHER CONTRIBUTOR, OR ANY DISTRIBUTOR OF COVERED CODE, 379 | OR ANY SUPPLIER OF ANY OF SUCH PARTIES, BE LIABLE TO ANY PERSON FOR 380 | ANY INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES OF ANY 381 | CHARACTER INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF GOODWILL, 382 | WORK STOPPAGE, COMPUTER FAILURE OR MALFUNCTION, OR ANY AND ALL OTHER 383 | COMMERCIAL DAMAGES OR LOSSES, EVEN IF SUCH PARTY SHALL HAVE BEEN 384 | INFORMED OF THE POSSIBILITY OF SUCH DAMAGES. THIS LIMITATION OF 385 | LIABILITY SHALL NOT APPLY TO LIABILITY FOR DEATH OR PERSONAL INJURY 386 | RESULTING FROM SUCH PARTY'S NEGLIGENCE TO THE EXTENT APPLICABLE LAW 387 | PROHIBITS SUCH LIMITATION. SOME JURISDICTIONS DO NOT ALLOW THE 388 | EXCLUSION OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO 389 | THIS EXCLUSION AND LIMITATION MAY NOT APPLY TO YOU. 390 | 391 | 10. U.S. GOVERNMENT END USERS. 392 | 393 | The Covered Code is a "commercial item," as that term is defined in 394 | 48 C.F.R. 2.101 (Oct. 1995), consisting of "commercial computer 395 | software" and "commercial computer software documentation," as such 396 | terms are used in 48 C.F.R. 12.212 (Sept. 1995). Consistent with 48 397 | C.F.R. 12.212 and 48 C.F.R. 227.7202-1 through 227.7202-4 (June 1995), 398 | all U.S. Government End Users acquire Covered Code with only those 399 | rights set forth herein. 400 | 401 | 11. MISCELLANEOUS. 402 | 403 | This License represents the complete agreement concerning subject 404 | matter hereof. If any provision of this License is held to be 405 | unenforceable, such provision shall be reformed only to the extent 406 | necessary to make it enforceable. This License shall be governed by 407 | California law provisions (except to the extent applicable law, if 408 | any, provides otherwise), excluding its conflict-of-law provisions. 409 | With respect to disputes in which at least one party is a citizen of, 410 | or an entity chartered or registered to do business in the United 411 | States of America, any litigation relating to this License shall be 412 | subject to the jurisdiction of the Federal Courts of the Northern 413 | District of California, with venue lying in Santa Clara County, 414 | California, with the losing party responsible for costs, including 415 | without limitation, court costs and reasonable attorneys' fees and 416 | expenses. The application of the United Nations Convention on 417 | Contracts for the International Sale of Goods is expressly excluded. 418 | Any law or regulation which provides that the language of a contract 419 | shall be construed against the drafter shall not apply to this 420 | License. 421 | 422 | 12. RESPONSIBILITY FOR CLAIMS. 423 | 424 | As between Initial Developer and the Contributors, each party is 425 | responsible for claims and damages arising, directly or indirectly, 426 | out of its utilization of rights under this License and You agree to 427 | work with Initial Developer and Contributors to distribute such 428 | responsibility on an equitable basis. Nothing herein is intended or 429 | shall be deemed to constitute any admission of liability. 430 | 431 | 13. MULTIPLE-LICENSED CODE. 432 | 433 | Initial Developer may designate portions of the Covered Code as 434 | "Multiple-Licensed". "Multiple-Licensed" means that the Initial 435 | Developer permits you to utilize portions of the Covered Code under 436 | Your choice of the NPL or the alternative licenses, if any, specified 437 | by the Initial Developer in the file described in Exhibit A. 438 | 439 | EXHIBIT A -Mozilla Public License. 440 | 441 | ``The contents of this file are subject to the Mozilla Public License 442 | Version 1.1 (the "License"); you may not use this file except in 443 | compliance with the License. You may obtain a copy of the License at 444 | http://www.mozilla.org/MPL/ 445 | 446 | Software distributed under the License is distributed on an "AS IS" 447 | basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the 448 | License for the specific language governing rights and limitations 449 | under the License. 450 | 451 | The Original Code is ______________________________________. 452 | 453 | The Initial Developer of the Original Code is ________________________. 454 | Portions created by ______________________ are Copyright (C) ______ 455 | _______________________. All Rights Reserved. 456 | 457 | Contributor(s): ______________________________________. 458 | 459 | Alternatively, the contents of this file may be used under the terms 460 | of the _____ license (the "[___] License"), in which case the 461 | provisions of [______] License are applicable instead of those 462 | above. If you wish to allow use of your version of this file only 463 | under the terms of the [____] License and not to allow others to use 464 | your version of this file under the MPL, indicate your decision by 465 | deleting the provisions above and replace them with the notice and 466 | other provisions required by the [___] License. If you do not delete 467 | the provisions above, a recipient may use your version of this file 468 | under either the MPL or the [___] License." 469 | 470 | [NOTE: The text of this Exhibit A may differ slightly from the text of 471 | the notices in the Source Code files of the Original Code. You should 472 | use the text of this Exhibit A rather than the text found in the 473 | Original Code Source Code for Your Modifications.] 474 | ============================================================================ 475 | 476 | ============================================================================ 477 | GNU GENERAL PUBLIC LICENSE 478 | Version 2, June 1991 479 | 480 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 481 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 482 | Everyone is permitted to copy and distribute verbatim copies 483 | of this license document, but changing it is not allowed. 484 | 485 | Preamble 486 | 487 | The licenses for most software are designed to take away your 488 | freedom to share and change it. By contrast, the GNU General Public 489 | License is intended to guarantee your freedom to share and change free 490 | software--to make sure the software is free for all its users. This 491 | General Public License applies to most of the Free Software 492 | Foundation's software and to any other program whose authors commit to 493 | using it. (Some other Free Software Foundation software is covered by 494 | the GNU Lesser General Public License instead.) You can apply it to 495 | your programs, too. 496 | 497 | When we speak of free software, we are referring to freedom, not 498 | price. Our General Public Licenses are designed to make sure that you 499 | have the freedom to distribute copies of free software (and charge for 500 | this service if you wish), that you receive source code or can get it 501 | if you want it, that you can change the software or use pieces of it 502 | in new free programs; and that you know you can do these things. 503 | 504 | To protect your rights, we need to make restrictions that forbid 505 | anyone to deny you these rights or to ask you to surrender the rights. 506 | These restrictions translate to certain responsibilities for you if you 507 | distribute copies of the software, or if you modify it. 508 | 509 | For example, if you distribute copies of such a program, whether 510 | gratis or for a fee, you must give the recipients all the rights that 511 | you have. You must make sure that they, too, receive or can get the 512 | source code. And you must show them these terms so they know their 513 | rights. 514 | 515 | We protect your rights with two steps: (1) copyright the software, and 516 | (2) offer you this license which gives you legal permission to copy, 517 | distribute and/or modify the software. 518 | 519 | Also, for each author's protection and ours, we want to make certain 520 | that everyone understands that there is no warranty for this free 521 | software. If the software is modified by someone else and passed on, we 522 | want its recipients to know that what they have is not the original, so 523 | that any problems introduced by others will not reflect on the original 524 | authors' reputations. 525 | 526 | Finally, any free program is threatened constantly by software 527 | patents. We wish to avoid the danger that redistributors of a free 528 | program will individually obtain patent licenses, in effect making the 529 | program proprietary. To prevent this, we have made it clear that any 530 | patent must be licensed for everyone's free use or not licensed at all. 531 | 532 | The precise terms and conditions for copying, distribution and 533 | modification follow. 534 | 535 | GNU GENERAL PUBLIC LICENSE 536 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 537 | 538 | 0. This License applies to any program or other work which contains 539 | a notice placed by the copyright holder saying it may be distributed 540 | under the terms of this General Public License. The "Program", below, 541 | refers to any such program or work, and a "work based on the Program" 542 | means either the Program or any derivative work under copyright law: 543 | that is to say, a work containing the Program or a portion of it, 544 | either verbatim or with modifications and/or translated into another 545 | language. (Hereinafter, translation is included without limitation in 546 | the term "modification".) Each licensee is addressed as "you". 547 | 548 | Activities other than copying, distribution and modification are not 549 | covered by this License; they are outside its scope. The act of 550 | running the Program is not restricted, and the output from the Program 551 | is covered only if its contents constitute a work based on the 552 | Program (independent of having been made by running the Program). 553 | Whether that is true depends on what the Program does. 554 | 555 | 1. You may copy and distribute verbatim copies of the Program's 556 | source code as you receive it, in any medium, provided that you 557 | conspicuously and appropriately publish on each copy an appropriate 558 | copyright notice and disclaimer of warranty; keep intact all the 559 | notices that refer to this License and to the absence of any warranty; 560 | and give any other recipients of the Program a copy of this License 561 | along with the Program. 562 | 563 | You may charge a fee for the physical act of transferring a copy, and 564 | you may at your option offer warranty protection in exchange for a fee. 565 | 566 | 2. You may modify your copy or copies of the Program or any portion 567 | of it, thus forming a work based on the Program, and copy and 568 | distribute such modifications or work under the terms of Section 1 569 | above, provided that you also meet all of these conditions: 570 | 571 | a) You must cause the modified files to carry prominent notices 572 | stating that you changed the files and the date of any change. 573 | 574 | b) You must cause any work that you distribute or publish, that in 575 | whole or in part contains or is derived from the Program or any 576 | part thereof, to be licensed as a whole at no charge to all third 577 | parties under the terms of this License. 578 | 579 | c) If the modified program normally reads commands interactively 580 | when run, you must cause it, when started running for such 581 | interactive use in the most ordinary way, to print or display an 582 | announcement including an appropriate copyright notice and a 583 | notice that there is no warranty (or else, saying that you provide 584 | a warranty) and that users may redistribute the program under 585 | these conditions, and telling the user how to view a copy of this 586 | License. (Exception: if the Program itself is interactive but 587 | does not normally print such an announcement, your work based on 588 | the Program is not required to print an announcement.) 589 | 590 | These requirements apply to the modified work as a whole. If 591 | identifiable sections of that work are not derived from the Program, 592 | and can be reasonably considered independent and separate works in 593 | themselves, then this License, and its terms, do not apply to those 594 | sections when you distribute them as separate works. But when you 595 | distribute the same sections as part of a whole which is a work based 596 | on the Program, the distribution of the whole must be on the terms of 597 | this License, whose permissions for other licensees extend to the 598 | entire whole, and thus to each and every part regardless of who wrote it. 599 | 600 | Thus, it is not the intent of this section to claim rights or contest 601 | your rights to work written entirely by you; rather, the intent is to 602 | exercise the right to control the distribution of derivative or 603 | collective works based on the Program. 604 | 605 | In addition, mere aggregation of another work not based on the Program 606 | with the Program (or with a work based on the Program) on a volume of 607 | a storage or distribution medium does not bring the other work under 608 | the scope of this License. 609 | 610 | 3. You may copy and distribute the Program (or a work based on it, 611 | under Section 2) in object code or executable form under the terms of 612 | Sections 1 and 2 above provided that you also do one of the following: 613 | 614 | a) Accompany it with the complete corresponding machine-readable 615 | source code, which must be distributed under the terms of Sections 616 | 1 and 2 above on a medium customarily used for software interchange; or, 617 | 618 | b) Accompany it with a written offer, valid for at least three 619 | years, to give any third party, for a charge no more than your 620 | cost of physically performing source distribution, a complete 621 | machine-readable copy of the corresponding source code, to be 622 | distributed under the terms of Sections 1 and 2 above on a medium 623 | customarily used for software interchange; or, 624 | 625 | c) Accompany it with the information you received as to the offer 626 | to distribute corresponding source code. (This alternative is 627 | allowed only for noncommercial distribution and only if you 628 | received the program in object code or executable form with such 629 | an offer, in accord with Subsection b above.) 630 | 631 | The source code for a work means the preferred form of the work for 632 | making modifications to it. For an executable work, complete source 633 | code means all the source code for all modules it contains, plus any 634 | associated interface definition files, plus the scripts used to 635 | control compilation and installation of the executable. However, as a 636 | special exception, the source code distributed need not include 637 | anything that is normally distributed (in either source or binary 638 | form) with the major components (compiler, kernel, and so on) of the 639 | operating system on which the executable runs, unless that component 640 | itself accompanies the executable. 641 | 642 | If distribution of executable or object code is made by offering 643 | access to copy from a designated place, then offering equivalent 644 | access to copy the source code from the same place counts as 645 | distribution of the source code, even though third parties are not 646 | compelled to copy the source along with the object code. 647 | 648 | 4. You may not copy, modify, sublicense, or distribute the Program 649 | except as expressly provided under this License. Any attempt 650 | otherwise to copy, modify, sublicense or distribute the Program is 651 | void, and will automatically terminate your rights under this License. 652 | However, parties who have received copies, or rights, from you under 653 | this License will not have their licenses terminated so long as such 654 | parties remain in full compliance. 655 | 656 | 5. You are not required to accept this License, since you have not 657 | signed it. However, nothing else grants you permission to modify or 658 | distribute the Program or its derivative works. These actions are 659 | prohibited by law if you do not accept this License. Therefore, by 660 | modifying or distributing the Program (or any work based on the 661 | Program), you indicate your acceptance of this License to do so, and 662 | all its terms and conditions for copying, distributing or modifying 663 | the Program or works based on it. 664 | 665 | 6. Each time you redistribute the Program (or any work based on the 666 | Program), the recipient automatically receives a license from the 667 | original licensor to copy, distribute or modify the Program subject to 668 | these terms and conditions. You may not impose any further 669 | restrictions on the recipients' exercise of the rights granted herein. 670 | You are not responsible for enforcing compliance by third parties to 671 | this License. 672 | 673 | 7. If, as a consequence of a court judgment or allegation of patent 674 | infringement or for any other reason (not limited to patent issues), 675 | conditions are imposed on you (whether by court order, agreement or 676 | otherwise) that contradict the conditions of this License, they do not 677 | excuse you from the conditions of this License. If you cannot 678 | distribute so as to satisfy simultaneously your obligations under this 679 | License and any other pertinent obligations, then as a consequence you 680 | may not distribute the Program at all. For example, if a patent 681 | license would not permit royalty-free redistribution of the Program by 682 | all those who receive copies directly or indirectly through you, then 683 | the only way you could satisfy both it and this License would be to 684 | refrain entirely from distribution of the Program. 685 | 686 | If any portion of this section is held invalid or unenforceable under 687 | any particular circumstance, the balance of the section is intended to 688 | apply and the section as a whole is intended to apply in other 689 | circumstances. 690 | 691 | It is not the purpose of this section to induce you to infringe any 692 | patents or other property right claims or to contest validity of any 693 | such claims; this section has the sole purpose of protecting the 694 | integrity of the free software distribution system, which is 695 | implemented by public license practices. Many people have made 696 | generous contributions to the wide range of software distributed 697 | through that system in reliance on consistent application of that 698 | system; it is up to the author/donor to decide if he or she is willing 699 | to distribute software through any other system and a licensee cannot 700 | impose that choice. 701 | 702 | This section is intended to make thoroughly clear what is believed to 703 | be a consequence of the rest of this License. 704 | 705 | 8. If the distribution and/or use of the Program is restricted in 706 | certain countries either by patents or by copyrighted interfaces, the 707 | original copyright holder who places the Program under this License 708 | may add an explicit geographical distribution limitation excluding 709 | those countries, so that distribution is permitted only in or among 710 | countries not thus excluded. In such case, this License incorporates 711 | the limitation as if written in the body of this License. 712 | 713 | 9. The Free Software Foundation may publish revised and/or new versions 714 | of the General Public License from time to time. Such new versions will 715 | be similar in spirit to the present version, but may differ in detail to 716 | address new problems or concerns. 717 | 718 | Each version is given a distinguishing version number. If the Program 719 | specifies a version number of this License which applies to it and "any 720 | later version", you have the option of following the terms and conditions 721 | either of that version or of any later version published by the Free 722 | Software Foundation. If the Program does not specify a version number of 723 | this License, you may choose any version ever published by the Free Software 724 | Foundation. 725 | 726 | 10. If you wish to incorporate parts of the Program into other free 727 | programs whose distribution conditions are different, write to the author 728 | to ask for permission. For software which is copyrighted by the Free 729 | Software Foundation, write to the Free Software Foundation; we sometimes 730 | make exceptions for this. Our decision will be guided by the two goals 731 | of preserving the free status of all derivatives of our free software and 732 | of promoting the sharing and reuse of software generally. 733 | 734 | NO WARRANTY 735 | 736 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 737 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 738 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 739 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 740 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 741 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 742 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 743 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 744 | REPAIR OR CORRECTION. 745 | 746 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 747 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 748 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 749 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 750 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 751 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 752 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 753 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 754 | POSSIBILITY OF SUCH DAMAGES. 755 | 756 | END OF TERMS AND CONDITIONS 757 | 758 | How to Apply These Terms to Your New Programs 759 | 760 | If you develop a new program, and you want it to be of the greatest 761 | possible use to the public, the best way to achieve this is to make it 762 | free software which everyone can redistribute and change under these terms. 763 | 764 | To do so, attach the following notices to the program. It is safest 765 | to attach them to the start of each source file to most effectively 766 | convey the exclusion of warranty; and each file should have at least 767 | the "copyright" line and a pointer to where the full notice is found. 768 | 769 | 770 | Copyright (C) 771 | 772 | This program is free software; you can redistribute it and/or modify 773 | it under the terms of the GNU General Public License as published by 774 | the Free Software Foundation; either version 2 of the License, or 775 | (at your option) any later version. 776 | 777 | This program is distributed in the hope that it will be useful, 778 | but WITHOUT ANY WARRANTY; without even the implied warranty of 779 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 780 | GNU General Public License for more details. 781 | 782 | You should have received a copy of the GNU General Public License along 783 | with this program; if not, write to the Free Software Foundation, Inc., 784 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 785 | 786 | Also add information on how to contact you by electronic and paper mail. 787 | 788 | If the program is interactive, make it output a short notice like this 789 | when it starts in an interactive mode: 790 | 791 | Gnomovision version 69, Copyright (C) year name of author 792 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 793 | This is free software, and you are welcome to redistribute it 794 | under certain conditions; type `show c' for details. 795 | 796 | The hypothetical commands `show w' and `show c' should show the appropriate 797 | parts of the General Public License. Of course, the commands you use may 798 | be called something other than `show w' and `show c'; they could even be 799 | mouse-clicks or menu items--whatever suits your program. 800 | 801 | You should also get your employer (if you work as a programmer) or your 802 | school, if any, to sign a "copyright disclaimer" for the program, if 803 | necessary. Here is a sample; alter the names: 804 | 805 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 806 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 807 | 808 | , 1 April 1989 809 | Ty Coon, President of Vice 810 | 811 | This General Public License does not permit incorporating your program into 812 | proprietary programs. If your program is a subroutine library, you may 813 | consider it more useful to permit linking proprietary applications with the 814 | library. If this is what you want to do, use the GNU Lesser General 815 | Public License instead of this License. 816 | ============================================================================ 817 | 818 | Additionally, some files (currently the contents of 819 | toolsrc/org/mozilla/javascript/tools/debugger/treetable/) are available 820 | only under the following license: 821 | 822 | ============================================================================ 823 | * Copyright 1997, 1998 Sun Microsystems, Inc. All Rights Reserved. 824 | * 825 | * Redistribution and use in source and binary forms, with or without 826 | * modification, are permitted provided that the following conditions 827 | * are met: 828 | * 829 | * - Redistributions of source code must retain the above copyright 830 | * notice, this list of conditions and the following disclaimer. 831 | * 832 | * - Redistributions in binary form must reproduce the above copyright 833 | * notice, this list of conditions and the following disclaimer in the 834 | * documentation and/or other materials provided with the distribution. 835 | * 836 | * - Neither the name of Sun Microsystems nor the names of its 837 | * contributors may be used to endorse or promote products derived 838 | * from this software without specific prior written permission. 839 | * 840 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 841 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, 842 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 843 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 844 | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, 845 | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, 846 | * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 847 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF 848 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING 849 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 850 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 851 | ============================================================================ 852 | -------------------------------------------------------------------------------- /compiler/license/third_party/scala_license.txt: -------------------------------------------------------------------------------- 1 | SCALA LICENSE 2 | 3 | Copyright (c) 2002-2012 EPFL, Lausanne, unless otherwise specified. 4 | All rights reserved. 5 | 6 | This software was developed by the Programming Methods Laboratory of the 7 | Swiss Federal Institute of Technology (EPFL), Lausanne, Switzerland. 8 | 9 | Permission to use, copy, modify, and distribute this software in source 10 | or binary form for any purpose with or without fee is hereby granted, 11 | provided that the following conditions are met: 12 | 13 | 1. Redistributions of source code must retain the above copyright 14 | notice, this list of conditions and the following disclaimer. 15 | 16 | 2. Redistributions in binary form must reproduce the above copyright 17 | notice, this list of conditions and the following disclaimer in the 18 | documentation and/or other materials provided with the distribution. 19 | 20 | 3. Neither the name of the EPFL nor the names of its contributors 21 | may be used to endorse or promote products derived from this 22 | software without specific prior written permission. 23 | 24 | 25 | THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 26 | ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 27 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 28 | ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 29 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 30 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 31 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER 32 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 33 | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 34 | OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 35 | SUCH DAMAGE. -------------------------------------------------------------------------------- /examples/simple/compiled-reference.js: -------------------------------------------------------------------------------- 1 | webpackJsonp([0],[ 2 | /* 0 */, 3 | /* 1 */ 4 | /***/ (function(module, exports, __webpack_require__) { 5 | 6 | (function (_, Kotlin) { 7 | 'use strict'; 8 | var println = Kotlin.kotlin.io.println_s8jyv4$; 9 | function main(args) { 10 | println(getSomething()); 11 | } 12 | function getSomething() { 13 | return 'Hello, world!'; 14 | } 15 | var package$org = _.org || (_.org = {}); 16 | var package$test = package$org.test || (package$org.test = {}); 17 | package$test.main_kand9s$ = main; 18 | package$test.getSomething = getSomething; 19 | Kotlin.defineModule('_compiled-tmp', _); 20 | main([]); 21 | return _; 22 | }(module.exports, __webpack_require__(0))); 23 | 24 | //@ sourceMappingURL=_compiled-tmp.js.map 25 | 26 | 27 | /***/ }), 28 | /* 2 */ 29 | /***/ (function(module, exports, __webpack_require__) { 30 | 31 | __webpack_require__(1); 32 | 33 | /***/ }) 34 | ],[2]); 35 | //# sourceMappingURL=build.js.map -------------------------------------------------------------------------------- /examples/simple/entry.js: -------------------------------------------------------------------------------- 1 | require('./test-file.kt'); -------------------------------------------------------------------------------- /examples/simple/second-test-file.kt: -------------------------------------------------------------------------------- 1 | package org.test 2 | 3 | fun getSomething(): String { 4 | return "Hello, world!" 5 | } -------------------------------------------------------------------------------- /examples/simple/test-file.kt: -------------------------------------------------------------------------------- 1 | package org.test 2 | 3 | fun main(args: Array) { 4 | println(getSomething()) 5 | } 6 | -------------------------------------------------------------------------------- /examples/simple/webpack.config.js: -------------------------------------------------------------------------------- 1 | var path = require('path'); 2 | var webpack = require('webpack'); 3 | var kotlinLoader = require.resolve('../../loader'); 4 | 5 | module.exports = { 6 | context: __dirname, 7 | devtool: 'source-map', 8 | entry: { 9 | main: './entry', 10 | vendor: ['kotlin'] 11 | }, 12 | output: { 13 | path: __dirname + '/dist', 14 | filename: 'build.js' 15 | }, 16 | module: { 17 | rules: [ 18 | { 19 | test: /\.kt$/, 20 | use: [ 21 | { 22 | loader: kotlinLoader, 23 | options: { 24 | srcRoot: path.resolve(__dirname, './') 25 | } 26 | } 27 | ] 28 | } 29 | ] 30 | }, 31 | plugins: [ 32 | new webpack.optimize.CommonsChunkPlugin({ 33 | name: 'vendor', 34 | filename: 'vendor.build.js' 35 | }) 36 | ] 37 | }; 38 | -------------------------------------------------------------------------------- /loader.js: -------------------------------------------------------------------------------- 1 | const loaderUtils = require('loader-utils'); 2 | const kotlinCompiler = require('./compiler/kotlin-compiler'); 3 | const sourceMapResolve = require("source-map-resolve") 4 | const fs = require('fs'); 5 | const path = require('path'); 6 | 7 | const SOURCE_MAP_RELATED_PATH = path.resolve('./', './compiler/file-name-doesnt-matter.js'); 8 | 9 | const dependencyCache = new Map(); 10 | 11 | function fillEmptySourcesContent(compileRes) { 12 | return new Promise((resolve, reject) => { 13 | sourceMapResolve.resolveSources(compileRes.sourceMap, SOURCE_MAP_RELATED_PATH, fs.readFile, (error, res) => { 14 | if (error) { 15 | return reject(error); 16 | } 17 | compileRes.sourceMap.sourcesContent = res.sourcesContent; 18 | 19 | resolve(compileRes); 20 | }); 21 | }); 22 | } 23 | 24 | function addAndCacheDependencies(entryFileName, pathes, addDependency) { 25 | pathes.forEach(addDependency); 26 | dependencyCache.set(entryFileName, pathes); 27 | } 28 | 29 | function addCachedDependencies(entryFileName, addDependency) { 30 | dependencyCache.get(entryFileName).forEach(addDependency); 31 | } 32 | 33 | module.exports = function (sourceCode) { 34 | this.cacheable(); 35 | const addDependency = this.addDependency.bind(this); 36 | const options = loaderUtils.getOptions(this); 37 | 38 | const callback = this.async(); 39 | 40 | if (!callback) { 41 | throw new Error('webpack-kotlin-loader currently only supports async mode.'); 42 | } 43 | 44 | const filename = loaderUtils.getRemainingRequest(this); 45 | 46 | const sourcePathes = [filename, options.srcRoot].concat(options.srcRoots).filter(str => !!str); 47 | 48 | kotlinCompiler.compile(Object.assign({ 49 | sources: sourcePathes, 50 | sourceMaps: true, 51 | moduleKind: 'commonjs', 52 | libraries: options.libraries || [] 53 | }, options.compilerOptions)) 54 | .then(fillEmptySourcesContent) 55 | .then(result => { 56 | addAndCacheDependencies(filename, result.sourceMap.sources, addDependency); 57 | return result; 58 | }) 59 | .then(result => callback(null, result.compiledSource, result.sourceMap)) 60 | .catch(err => { 61 | addCachedDependencies(filename, addDependency); 62 | callback(err); 63 | }); 64 | }; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "webpack-kotlin-loader", 3 | "version": "0.3.2", 4 | "description": "Webpack loader that allows importing kotlin files in JS", 5 | "main": "loader.js", 6 | "scripts": { 7 | "compile-simple": "rm -rf examples/simple/dist && webpack --config examples/simple/webpack.config", 8 | "test": "bash ./acceptance-test.sh" 9 | }, 10 | "keywords": [ 11 | "webpack", 12 | "kotlin", 13 | "loader" 14 | ], 15 | "repository": { 16 | "type": "git", 17 | "url": "git+https://github.com/huston007/kotlin-loader.git" 18 | }, 19 | "bugs": { 20 | "url": "https://github.com/huston007/kotlin-loader/issues" 21 | }, 22 | "homepage": "https://github.com/huston007/kotlin-loader#readme", 23 | "author": "Andrey Skladchikov", 24 | "license": "MIT", 25 | "devDependencies": { 26 | "kotlin": "1.1.0", 27 | "webpack": "^2.4" 28 | }, 29 | "engines": { 30 | "node": ">=5.5" 31 | }, 32 | "dependencies": { 33 | "loader-utils": "1.0.2", 34 | "source-map-resolve": "0.5.0" 35 | } 36 | } 37 | --------------------------------------------------------------------------------