Skip to content

Commit c9aa24a

Browse files
committed
Update dependencies and build options. NPM version 0.7.0-alpha.1.
1 parent f60b846 commit c9aa24a

File tree

3 files changed

+96
-45
lines changed

3 files changed

+96
-45
lines changed

build.js

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ const ngc = require('@angular/compiler-cli/src/main').main;
1111
const rollup = require('rollup');
1212
const uglify = require('rollup-plugin-uglify');
1313
const sourcemaps = require('rollup-plugin-sourcemaps');
14-
// const nodeResolve = require('rollup-plugin-node-resolve');
1514
const nodeResolve = require('rollup-plugin-node-resolve-angular');
1615
const commonjs = require('rollup-plugin-commonjs');
1716
const inlineResources = require('./inline-resources');
@@ -81,19 +80,23 @@ return Promise.resolve()
8180
},
8281
output: {
8382
name: camelCase(libName),
84-
// ATTENTION:
85-
// Add all dependencies and peer dependencies of your library to
86-
// `globals` and `external`. This is required for UMD bundle users.
83+
// ATTENTION: Add all dependencies and peer dependencies of your library
84+
// to `globals` and `external`. This is required for UMD bundle users.
8785
globals: {
8886
// key = The library name
8987
// value = The global variable name on the window object
90-
// https://github.com/rollup/rollup/wiki/JavaScript-API#globals
88+
// https://rollupjs.org/guide/en#javascript-api
89+
'@angular/cdk': 'ng.cdk',
9190
'@angular/common': 'ng.common',
9291
'@angular/core': 'ng.core',
92+
'@angular/flex-layout': 'ng.flexLayout',
9393
'@angular/forms': 'ng.forms',
94+
'@angular/material': 'ng.material',
9495
'@angular/platform-browser': 'ng.platformBrowser',
9596
'ajv': 'Ajv',
96-
'lodash': '_'
97+
'hammerjs': 'hammerjs',
98+
'lodash': '_',
99+
'rxjs': 'rxjs'
97100
}
98101
}
99102
};

package-lock.json

Lines changed: 83 additions & 34 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,12 +59,12 @@
5959
"lodash": "4.x"
6060
},
6161
"peerDependencies": {
62-
"@angular/cdk": ">=2.0.0",
62+
"@angular/cdk": ">=5.0.0",
6363
"@angular/common": ">=4.0.0",
6464
"@angular/core": ">=4.0.0",
6565
"@angular/flex-layout": ">=2.0.0",
6666
"@angular/forms": ">=4.0.0",
67-
"@angular/material": ">=2.0.0",
67+
"@angular/material": ">=5.0.0",
6868
"@angular/platform-browser": ">=4.0.0",
6969
"rxjs": ">=5.0.0"
7070
},
@@ -90,7 +90,7 @@
9090
"@types/node": "^9.3.0",
9191
"brace": "^0.11.0",
9292
"camelcase": "^4.0.0",
93-
"codelyzer": "^4.0.2",
93+
"codelyzer": "^4.1.0",
9494
"concurrently": "^3.5.1",
9595
"core-js": "^2.5.3",
9696
"glob": "^7.1.1",
@@ -107,12 +107,11 @@
107107
"rimraf": "^2.6.1",
108108
"rollup": "^0.54.1",
109109
"rollup-plugin-commonjs": "^8.2.6",
110-
"rollup-plugin-node-resolve": "^3.0.2",
111110
"rollup-plugin-node-resolve-angular": "^2.0.3",
112111
"rollup-plugin-sourcemaps": "^0.4.1",
113112
"rollup-plugin-uglify": "^2.0.1",
114113
"rxjs": "^5.5.6",
115-
"ts-node": "^3.3.0",
114+
"ts-node": "^4.1.0",
116115
"tslint": "^5.9.1",
117116
"typedoc": "^0.9.0",
118117
"typescript": "~2.4.2",

0 commit comments

Comments
 (0)