Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle jsii modules as npm tarballs #52

Merged
merged 22 commits into from
Jul 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.vscode

*.js
*.d.ts
dist/
Expand Down
7 changes: 5 additions & 2 deletions bundle-beta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@ root=$PWD
# Create an archive under ./dist
version="$(node -e "console.log(require('./lerna.json').version)")"

cd pack
# CODEBUILD_RESOLVED_SOURCE_VERSION is not defined (i.e. local build or CodePipeline build),
# use the HEAD commit hash
commit="${CODEBUILD_RESOLVED_SOURCE_VERSION:-"$(git rev-parse --verify HEAD)"}"

cd pack
dist=${root}/dist
output=${dist}/jsii-${version}.zip
output=${dist}/jsii-${version}+${commit:0:7}.zip
rm -fr ${dist}
mkdir -p ${dist}
zip -y -r ${output} .
Expand Down
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ echo "==========================================================================
echo "installing repo-global dependencies..."
npm i --no-package-lock --global-style

export PATH=node_modules/.bin:$PATH

echo "============================================================================================="
echo "boostrapping..."
lerna bootstrap --reject-cycles
30 changes: 30 additions & 0 deletions link-all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
#!/bin/bash
# creates symlinks under node_modules for all packages in this repo
# can be used to work against this code base.
set -euo pipefail
root="$(cd $(dirname $0) && pwd)"

mkdir -p node_modules node_modules/.bin

modules="$(find ${root}/packages -name package.json | grep -v node_modules | grep -v init-templates | xargs -n1 dirname)"
for module in ${modules}; do
if [[ $(basename $(dirname $module)) == @* ]]; then
# This is a @scope/based package
scope=$(basename $(dirname $module))
link_dir=node_modules/$(basename $(dirname $module))
mkdir -p $link_dir
else
link_dir=node_modules
fi

echo "${module} => $link_dir/$(basename $module)"
ln -fs ${module} $link_dir

# Symlink executable scripts into place as well. This is not completely
# according to spec (we look in the bin/ directory instead of the { "scripts"
# } entry in package.json but it's quite a bit easier.
[[ -d $module/bin ]] && for script in $(find $module/bin -perm +111); do
echo "${script} => node_modules/.bin/$(basename $script)"
ln -fs ${script} node_modules/.bin
done
done
17 changes: 0 additions & 17 deletions packages/jsii-build-tools/bin/align-jsii-versions

This file was deleted.

2 changes: 0 additions & 2 deletions packages/jsii-build-tools/bin/diff-test
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ resolve-path() {
expected="$(resolve-path $1)"
actual="$(resolve-path $2)"

align-jsii-versions ${expected}

diff ${actual} ${expected} || {
echo
echo "========================================================================="
Expand Down
1 change: 0 additions & 1 deletion packages/jsii-build-tools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"description": "Internal repository-level tools",
"private": true,
"bin": {
"align-jsii-versions": "bin/align-jsii-versions",
"diff-test": "bin/diff-test"
},
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions packages/jsii-calc-bundled/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
!index.js
.jsii
1 change: 1 addition & 0 deletions packages/jsii-calc-bundled/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.export = 42;
18 changes: 18 additions & 0 deletions packages/jsii-calc-bundled/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "jsii-calc-bundled",
"version": "0.5.0-beta",
"main": "index.js",
"private": true,
"author": {
"name": "Amazon Web Services",
"url": "https://aws.amazon.com"
},
"scripts": {
"build": "true"
},
"license": "LicenseRef-LICENSE",
"repository": {
"type": "git",
"url": "git://github.com/awslabs/jsii"
}
}
2 changes: 2 additions & 0 deletions packages/jsii-calc-lib/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
tsconfig.json
tslint.json
dist
.jsii
*.tgz
1 change: 1 addition & 0 deletions packages/jsii-calc-lib/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Don't include original .ts files when doing `npm pack`
*.ts
!*.d.ts
*.tgz
4 changes: 2 additions & 2 deletions packages/jsii-calc-lib/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "jsii-calc-lib",
"name": "@scope/jsii-calc-lib",
"version": "0.5.0-beta",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand All @@ -13,7 +13,7 @@
},
"scripts": {
"build": "jsii",
"test": "diff-test test/assembly.jsii dist/assembly.jsii"
"test": "diff-test test/assembly.jsii .jsii"
},
"devDependencies": {
"jsii": "^0.5.0-beta",
Expand Down
79 changes: 39 additions & 40 deletions packages/jsii-calc-lib/test/assembly.jsii
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"schema": "jsii/1.0",
"types": {
"jsii$jsii_calc_lib$.Value": {
"@scope/jsii-calc-lib.Value": {
"docs": {
"comment": "Abstract class which represents a numeric value."
},
Expand Down Expand Up @@ -39,16 +39,16 @@
}
}
],
"fqn": "jsii$jsii_calc_lib$.Value",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.Value",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "Value",
"abstract": true,
"initializer": {
"initializer": true
}
},
"jsii$jsii_calc_lib$.Number": {
"@scope/jsii-calc-lib.Number": {
"docs": {
"comment": "Represents a concrete number."
},
Expand Down Expand Up @@ -76,12 +76,12 @@
"immutable": true
}
],
"fqn": "jsii$jsii_calc_lib$.Number",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.Number",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "Number",
"base": {
"fqn": "jsii$jsii_calc_lib$.Value"
"fqn": "@scope/jsii-calc-lib.Value"
},
"initializer": {
"parameters": [
Expand All @@ -102,7 +102,7 @@
"initializer": true
}
},
"jsii$jsii_calc_lib$.Operation": {
"@scope/jsii-calc-lib.Operation": {
"docs": {
"comment": "Represents an operation on values."
},
Expand All @@ -119,19 +119,19 @@
}
}
],
"fqn": "jsii$jsii_calc_lib$.Operation",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.Operation",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "Operation",
"base": {
"fqn": "jsii$jsii_calc_lib$.Value"
"fqn": "@scope/jsii-calc-lib.Value"
},
"abstract": true,
"initializer": {
"initializer": true
}
},
"jsii$jsii_calc_lib$.IFriendly": {
"@scope/jsii-calc-lib.IFriendly": {
"docs": {
"comment": "Applies to classes that are considered friendly. These classes can be greeted with\na \"hello\" or \"goodbye\" blessing and they will respond back in a fun and friendly manner."
},
Expand All @@ -147,12 +147,12 @@
}
}
],
"fqn": "jsii$jsii_calc_lib$.IFriendly",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.IFriendly",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "IFriendly"
},
"jsii$jsii_calc_lib$.MyFirstStruct": {
"@scope/jsii-calc-lib.MyFirstStruct": {
"docs": {
"comment": "This is the first struct we have created in jsii"
},
Expand Down Expand Up @@ -189,13 +189,13 @@
}
}
],
"fqn": "jsii$jsii_calc_lib$.MyFirstStruct",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.MyFirstStruct",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "MyFirstStruct",
"datatype": true
},
"jsii$jsii_calc_lib$.StructWithOnlyOptionals": {
"@scope/jsii-calc-lib.StructWithOnlyOptionals": {
"docs": {
"comment": "This is a struct with only optional properties."
},
Expand Down Expand Up @@ -226,50 +226,49 @@
}
}
],
"fqn": "jsii$jsii_calc_lib$.StructWithOnlyOptionals",
"module": "jsii$jsii_calc_lib$",
"namespace": "jsii$jsii_calc_lib$",
"fqn": "@scope/jsii-calc-lib.StructWithOnlyOptionals",
"module": "@scope/jsii-calc-lib",
"namespace": "@scope/jsii-calc-lib",
"name": "StructWithOnlyOptionals",
"datatype": true
}
},
"nametree": {
"jsii$jsii_calc_lib$": {
"@scope/jsii-calc-lib": {
"Value": {
"_": "jsii$jsii_calc_lib$.Value"
"_": "@scope/jsii-calc-lib.Value"
},
"Number": {
"_": "jsii$jsii_calc_lib$.Number"
"_": "@scope/jsii-calc-lib.Number"
},
"Operation": {
"_": "jsii$jsii_calc_lib$.Operation"
"_": "@scope/jsii-calc-lib.Operation"
},
"IFriendly": {
"_": "jsii$jsii_calc_lib$.IFriendly"
"_": "@scope/jsii-calc-lib.IFriendly"
},
"MyFirstStruct": {
"_": "jsii$jsii_calc_lib$.MyFirstStruct"
"_": "@scope/jsii-calc-lib.MyFirstStruct"
},
"StructWithOnlyOptionals": {
"_": "jsii$jsii_calc_lib$.StructWithOnlyOptionals"
"_": "@scope/jsii-calc-lib.StructWithOnlyOptionals"
}
}
},
"typecount": 6,
"name": "jsii$jsii_calc_lib$",
"package": "jsii-calc-lib",
"name": "@scope/jsii-calc-lib",
"package": "@scope/jsii-calc-lib",
"version": "0.5.0-beta",
"names": {
"java": "org.jsii.tests.calculator.lib",
"dotnet": "AWS.Jsii.Tests.Calculator.Lib",
"js": "jsii-calc-lib"
"js": "@scope/jsii-calc-lib"
},
"nativenames": {
"jsii$jsii_calc_lib$": {
"@scope/jsii-calc-lib": {
"java": "org.jsii.tests.calculator.lib",
"dotnet": "AWS.Jsii.Tests.Calculator.Lib",
"js": "jsii-calc-lib"
"js": "@scope/jsii-calc-lib"
}
},
"code": "var jsii$jsii_calc_lib$ =\n/******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * Abstract class which represents a numeric value.\n */\nclass Value {\n /**\n * String representation of the value.\n */\n toString() {\n return this.value.toString();\n }\n /**\n * Returns the name of the class (to verify native type names are created for derived classes).\n */\n typeName() {\n return this.constructor.name;\n }\n}\nexports.Value = Value;\n/**\n * Represents a concrete number.\n */\nclass Number extends Value {\n /**\n * Creates a Number object.\n * @param value The number.\n */\n constructor(value) {\n super();\n this.value = value;\n }\n /**\n * The number multiplied by 2.\n */\n get doubleValue() {\n return 2 * this.value;\n }\n}\nexports.Number = Number;\n/**\n * Represents an operation on values.\n */\nclass Operation extends Value {\n}\nexports.Operation = Operation;\n\n\n/***/ })\n/******/ ]);\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vd2VicGFjay9ib290c3RyYXAgYmQ3NjAxMjI1NDg3NjRlNTMyZWMiLCJ3ZWJwYWNrOi8vLy4tY2FsYy1saWIvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQUE7QUFDQTs7QUFFQTtBQUNBOztBQUVBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBOztBQUVBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7OztBQUdBO0FBQ0E7O0FBRUE7QUFDQTs7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQU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ludGVyZmFjZSBNeUZpcnN0U3RydWN0IHtcbiAgICAvKipcbiAgICAgKiBBIHN0cmluZyB2YWx1ZVxuICAgICAqL1xuICAgIGFzdHJpbmc6IHN0cmluZ1xuXG4gICAgLyoqXG4gICAgICogQW4gYXdlc29tZSBudW1iZXIgdmFsdWVcbiAgICAgKi9cbiAgICBhbnVtYmVyOiBudW1iZXJcbiAgICBmaXJzdE9wdGlvbmFsPzogc3RyaW5nW11cbn1cblxuLyoqXG4gKiBUaGlzIGlzIGEgc3RydWN0IHdpdGggb25seSBvcHRpb25hbCBwcm9wZXJ0aWVzLlxuICovXG5leHBvcnQgaW50ZXJmYWNlIFN0cnVjdFdpdGhPbmx5T3B0aW9uYWxzIHtcbiAgICAvKipcbiAgICAgKiBUaGUgZmlyc3Qgb3B0aW9uYWwhXG4gICAgICovXG4gICAgb3B0aW9uYWwxPzogc3RyaW5nXG4gICAgb3B0aW9uYWwyPzogbnVtYmVyXG4gICAgb3B0aW9uYWwzPzogYm9vbGVhblxufVxuXG5cbi8vIFdFQlBBQ0sgRk9PVEVSIC8vXG4vLyAuLWNhbGMtbGliL2xpYi9pbmRleC50cyJdLCJzb3VyY2VSb290IjoiIn0="
}
}
1 change: 1 addition & 0 deletions packages/jsii-calc/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
tsconfig.json
tslint.json
dist
.jsii
1 change: 1 addition & 0 deletions packages/jsii-calc/.npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Don't include original .ts files when doing `npm pack`
*.ts
!*.d.ts
*.tgz
Loading