Skip to content

Commit 2d28002

Browse files
committed
fix(skeleton-typescript): force global/ambient declarations
temporary solution, until all packages are updated
1 parent 5366a7b commit 2d28002

File tree

15 files changed

+181
-3616
lines changed

15 files changed

+181
-3616
lines changed

skeleton-typescript-webpack/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
"pree2e": "npm run webdriver:update -- --standalone",
1515
"e2e": "./node_modules/.bin/protractor ./config/protractor.conf.js",
1616
"e2e:live": "npm run e2e -- --elementExplorer",
17-
"clean": "npm cache clean && rimraf node_modules typings coverage dist",
18-
"clean:dist": "rimraf dist",
17+
"clean": "npm cache clean && ./node_modules/.bin/rimraf node_modules typings coverage dist",
18+
"clean:dist": "./node_modules/.bin/rimraf dist",
1919
"preclean:install": "npm run clean",
2020
"clean:install": "npm set progress=false && npm install",
2121
"preclean:start": "npm run clean",
@@ -132,14 +132,14 @@
132132
"bootstrap": "^3.3.6",
133133
"font-awesome": "^4.6.3",
134134
"isomorphic-fetch": "^2.2.1",
135-
"jquery": "^2.2.4",
135+
"jquery": "^3.0.0",
136136
"regenerator-runtime": "^0.9.5",
137137
"ts-helpers": "^1.1.1"
138138
},
139139
"devDependencies": {
140140
"aurelia-tools": "^0.2.1",
141-
"aurelia-webpack-plugin": "^1.0.0-beta.1.0.5",
142-
"awesome-typescript-loader": "^0.19.0",
141+
"aurelia-webpack-plugin": "^1.0.0-beta.2.0.0",
142+
"awesome-typescript-loader": "^1.0.0",
143143
"babel-core": "^6.9.1",
144144
"babel-loader": "^6.2.4",
145145
"babel-plugin-transform-runtime": "^6.9.0",
@@ -158,32 +158,32 @@
158158
"extract-text-webpack-plugin": "^1.0.1",
159159
"file-loader": "^0.8.5",
160160
"html-loader": "^0.4.3",
161-
"html-webpack-plugin": "^2.19.0",
161+
"html-webpack-plugin": "^2.20.0",
162162
"http-server": "^0.9.0",
163163
"jasmine-core": "^2.4.1",
164164
"json-loader": "^0.5.4",
165165
"jsonfile": "^2.3.1",
166166
"karma": "^0.13.22",
167167
"karma-chrome-launcher": "^1.0.1",
168168
"karma-jasmine": "^1.0.2",
169-
"karma-mocha-reporter": "^2.0.3",
169+
"karma-mocha-reporter": "^2.0.4",
170170
"karma-sourcemap-loader": "^0.3.7",
171171
"karma-webpack": "^1.7.0",
172-
"offline-plugin": "^3.3.0",
172+
"offline-plugin": "^3.3.1",
173173
"protractor": "^3.3.0",
174174
"raw-loader": "^0.5.1",
175175
"recursive-readdir-sync": "^1.0.6",
176176
"source-map-loader": "^0.1.5",
177177
"style-loader": "^0.13.1",
178178
"ts-babel-node": "^1.0.0",
179-
"tslint": "^3.10.2",
179+
"tslint": "^3.11.0",
180180
"tslint-loader": "^2.1.4",
181-
"typescript": "^1.9.0-dev.20160531-1.0",
181+
"typescript": ">=1.9.0-dev || ^2.0.0",
182182
"typings": "^1.0.4",
183183
"url-loader": "^0.5.7",
184184
"wallaby-webpack": "0.0.22",
185-
"webpack": "^2.1.0-beta.8",
186-
"webpack-dev-server": "^2.1.0-beta.0",
185+
"webpack": ">=2.1.0-beta.11 || ^2.1.0",
186+
"webpack-dev-server": ">=2.1.0-beta.0 || ^2.1.0",
187187
"webpack-md5-hash": "0.0.5",
188188
"webpack-merge": "^0.14.0"
189189
}

skeleton-typescript-webpack/tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
"compilerOptions": {
33
"target": "es2015",
44
"module": "commonjs",
5-
"experimentalDecorators": true
5+
"experimentalDecorators": true,
6+
"moduleResolution": "classic"
67
},
78
"exclude": [
89
"node_modules"

skeleton-typescript-webpack/tsconfig.webpack.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"module": "es2015",
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7+
"moduleResolution": "classic",
78
"sourceMap": true,
89
"noEmitHelpers": true
910
},

skeleton-typescript-webpack/typings.json

+25-24
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,31 @@
55
"webpack": "registry:npm/webpack#1.12.9+20160418172948"
66
},
77
"globalDependencies": {
8-
"aurelia-binding": "npm:aurelia-binding/dist/aurelia-binding.d.ts",
9-
"aurelia-bootstrapper-webpack": "npm:aurelia-bootstrapper-webpack/dist/aurelia-bootstrapper-webpack.d.ts",
10-
"aurelia-dependency-injection": "npm:aurelia-dependency-injection/dist/aurelia-dependency-injection.d.ts",
11-
"aurelia-event-aggregator": "npm:aurelia-event-aggregator/dist/aurelia-event-aggregator.d.ts",
12-
"aurelia-fetch-client": "npm:aurelia-fetch-client/dist/aurelia-fetch-client.d.ts",
13-
"aurelia-framework": "npm:aurelia-framework/dist/aurelia-framework.d.ts",
14-
"aurelia-history": "npm:aurelia-history/dist/aurelia-history.d.ts",
15-
"aurelia-history-browser": "npm:aurelia-history-browser/dist/aurelia-history-browser.d.ts",
16-
"aurelia-loader": "npm:aurelia-loader/dist/aurelia-loader.d.ts",
17-
"aurelia-loader-webpack": "npm:aurelia-loader-webpack/dist/aurelia-loader-webpack.d.ts",
18-
"aurelia-logging": "npm:aurelia-logging/dist/aurelia-logging.d.ts",
19-
"aurelia-logging-console": "npm:aurelia-logging-console/dist/aurelia-logging-console.d.ts",
20-
"aurelia-metadata": "npm:aurelia-metadata/dist/aurelia-metadata.d.ts",
21-
"aurelia-pal": "npm:aurelia-pal/dist/aurelia-pal.d.ts",
22-
"aurelia-pal-browser": "npm:aurelia-pal-browser/dist/aurelia-pal-browser.d.ts",
23-
"aurelia-path": "npm:aurelia-path/dist/aurelia-path.d.ts",
24-
"aurelia-polyfills": "npm:aurelia-polyfills/dist/aurelia-polyfills.d.ts",
25-
"aurelia-route-recognizer": "npm:aurelia-route-recognizer/dist/aurelia-route-recognizer.d.ts",
26-
"aurelia-router": "npm:aurelia-router/dist/aurelia-router.d.ts",
27-
"aurelia-task-queue": "npm:aurelia-task-queue/dist/aurelia-task-queue.d.ts",
28-
"aurelia-templating": "npm:aurelia-templating/dist/aurelia-templating.d.ts",
29-
"aurelia-templating-binding": "npm:aurelia-templating-binding/dist/aurelia-templating-binding.d.ts",
30-
"aurelia-templating-resources": "npm:aurelia-templating-resources/dist/aurelia-templating-resources.d.ts",
31-
"aurelia-templating-router": "npm:aurelia-templating-router/dist/aurelia-templating-router.d.ts"
8+
"aurelia-binding": "github:aurelia/binding/dist/aurelia-binding.d.ts#69d54dbebafe87738f89b8ac4109921544d202cb",
9+
"aurelia-bootstrapper-webpack": "github:aurelia/bootstrapper-webpack/dist/aurelia-bootstrapper-webpack.d.ts#cf122f8d2a61161bcc6b785c9dfe47dbc6b3a3ff",
10+
"aurelia-bootstrapper": "github:aurelia/bootstrapper/dist/aurelia-bootstrapper.d.ts#111ee4eb1e5df7af39305d190d635df7d93cb7e5",
11+
"aurelia-dependency-injection": "github:aurelia/dependency-injection/dist/aurelia-dependency-injection.d.ts#dcb53d40d128f5ff89c6bafa587128583529bd68",
12+
"aurelia-event-aggregator": "github:aurelia/event-aggregator/dist/aurelia-event-aggregator.d.ts#7a38c51dc9082175461e2d0b21a4c0a9242a8925",
13+
"aurelia-fetch-client": "github:aurelia/fetch-client/dist/aurelia-fetch-client.d.ts#a97fa7b9484cd78d986b11e537394400c99d02fe",
14+
"aurelia-framework": "github:aurelia/framework/dist/aurelia-framework.d.ts#e008c4a98147ae39556892a69e5c165947e293a7",
15+
"aurelia-history": "github:aurelia/history/dist/aurelia-history.d.ts#21e1ecd279b5b6d7525103cf734318103aee5382",
16+
"aurelia-history-browser": "github:aurelia/history-browser/dist/aurelia-history-browser.d.ts#19e095308a414ab561d3c5b327fcbc756e60f457",
17+
"aurelia-loader": "github:aurelia/loader/dist/aurelia-loader.d.ts#5bc0bf9424946235bc6d63ce77f4a6b97b0b4742",
18+
"aurelia-loader-webpack": "github:aurelia/loader-webpack/dist/aurelia-loader-webpack.d.ts#3a4e7ef6ca0e3836d26b78e7d14034ba40732ec1",
19+
"aurelia-logging": "github:aurelia/logging/dist/aurelia-logging.d.ts#62417b8db6b82ef9c4dfe09eeca5cef6714e3b40",
20+
"aurelia-logging-console": "github:aurelia/logging-console/dist/aurelia-logging-console.d.ts#a82125fb35a1efc6372c40b7cd5813cfbda1eb11",
21+
"aurelia-metadata": "github:aurelia/metadata/dist/aurelia-metadata.d.ts#96c4c332fe4669e11b7570d3e8996cced9cf9042",
22+
"aurelia-pal": "github:aurelia/pal/dist/aurelia-pal.d.ts#adc7e905abf4f76d1c71a19f740cb6bb45d5842e",
23+
"aurelia-pal-browser": "github:aurelia/pal-browser/dist/aurelia-pal-browser.d.ts#ce3451eeeb2feb2c62ec30ec3f6a0122b4209282",
24+
"aurelia-path": "github:aurelia/path/dist/aurelia-path.d.ts#762d6dd77200672080e6a24e6db9ab37b0dc6137",
25+
"aurelia-polyfills": "github:aurelia/polyfills/dist/aurelia-polyfills.d.ts#e97d36f958436057ff277c00ce58a0edf42adfed",
26+
"aurelia-route-recognizer": "github:aurelia/route-recognizer/dist/aurelia-route-recognizer.d.ts#2c89fa3ffd739262cc8f901514f314a25f21c9c1",
27+
"aurelia-router": "github:aurelia/router/dist/aurelia-router.d.ts#39f05b6c85925829baa8be1256fc9ee9430e5854",
28+
"aurelia-task-queue": "github:aurelia/task-queue/dist/aurelia-task-queue.d.ts#18ac85b517430a3ad8a390cc6bb114abad499bb1",
29+
"aurelia-templating": "github:aurelia/templating/dist/aurelia-templating.d.ts#aad25d550f316ac2d7cac29c330059897c7d15bd",
30+
"aurelia-templating-binding": "github:aurelia/templating-binding/dist/aurelia-templating-binding.d.ts#f90d1082b0aa3be71c23e26c1e152b22593a15b5",
31+
"aurelia-templating-resources": "github:aurelia/templating-resources/dist/aurelia-templating-resources.d.ts#98f81efd2d7270742bfaa1f3c37d8a71a3936172",
32+
"aurelia-templating-router": "github:aurelia/templating-router/dist/aurelia-templating-router.d.ts#68460e0398f896c5883be81588bdd5f3855f05c3"
3233
},
3334
"globalDevDependencies": {
3435
"angular-protractor": "github:DefinitelyTyped/DefinitelyTyped/angular-protractor/angular-protractor.d.ts#24e12a7af994afa2226af70fbfae0adc78736a9e",

skeleton-typescript/build/paths.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ module.exports = {
1414
e2eSpecsSrc: 'test/e2e/src/**/*.ts',
1515
e2eSpecsDist: 'test/e2e/dist/',
1616
dtsSrc: [
17-
'./typings/globals/**/*.d.ts',
18-
'./custom_typings/**/*.d.ts',
19-
'./jspm_packages/**/*.d.ts'
17+
'./typings/**/*.d.ts',
18+
'./custom_typings/**/*.d.ts'
2019
]
2120
}

skeleton-typescript/build/tasks/build.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var sourcemaps = require('gulp-sourcemaps');
66
var paths = require('../paths');
77
var assign = Object.assign || require('object.assign');
88
var notify = require('gulp-notify');
9-
var typescript = require('gulp-tsb');
9+
var typescript = require('gulp-typescript');
1010

1111
// transpiles changed es6 files to SystemJS format
1212
// the plumber() call prevents 'pipe breaking' caused
@@ -15,12 +15,14 @@ var typescript = require('gulp-tsb');
1515
var typescriptCompiler = typescriptCompiler || null;
1616
gulp.task('build-system', function() {
1717
if(!typescriptCompiler) {
18-
typescriptCompiler = typescript.create(require('../../tsconfig.json').compilerOptions);
18+
typescriptCompiler = typescript.createProject('tsconfig.json', {
19+
"typescript": require('typescript')
20+
});
1921
}
2022
return gulp.src(paths.dtsSrc.concat(paths.source))
2123
.pipe(plumber())
2224
.pipe(sourcemaps.init({loadMaps: true}))
23-
.pipe(typescriptCompiler())
25+
.pipe(typescript(typescriptCompiler))
2426
.pipe(sourcemaps.write('.', {includeContent: false, sourceRoot: '/src'}))
2527
.pipe(gulp.dest(paths.output));
2628
});

skeleton-typescript/build/tasks/e2e.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var plumber = require('gulp-plumber');
44
var webdriverUpdate = require('gulp-protractor').webdriver_update;
55
var webdriverStandalone = require('gulp-protractor').webdriver_standalone;
66
var protractor = require('gulp-protractor').protractor;
7-
var typescript = require('gulp-tsb');
7+
var typescript = require('gulp-typescript');
88
var assign = Object.assign || require('object.assign');
99
var del = require('del');
1010

@@ -23,10 +23,13 @@ gulp.task('clean-e2e', function() {
2323
var typescriptCompiler = typescriptCompiler || null;
2424
gulp.task('build-e2e', ['clean-e2e'], function() {
2525
if(!typescriptCompiler) {
26-
typescriptCompiler = typescript.create(assign(require('../../tsconfig.json').compilerOptions, {module: 'commonjs'}));
26+
typescriptCompiler = typescript.createProject('tsconfig.json', {
27+
"typescript": require('typescript'),
28+
module: 'commonjs'
29+
});
2730
}
2831
return gulp.src(paths.dtsSrc.concat(paths.e2eSpecsSrc))
29-
.pipe(typescriptCompiler())
32+
.pipe(typescript(typescriptCompiler))
3033
.pipe(gulp.dest(paths.e2eSpecsDist));
3134
});
3235

0 commit comments

Comments
 (0)