Skip to content

Commit 39c03e6

Browse files
committed
refactor: rename js2dart to transpiler
1 parent d42fa07 commit 39c03e6

39 files changed

+36
-928
lines changed

gulpfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ var ejs = require('gulp-ejs');
1111
var path = require('path');
1212
var through2 = require('through2');
1313

14-
// import js2dart build tasks
15-
var js2dartTasks = require('./tools/js2dart/gulp-tasks');
16-
js2dartTasks.install(gulp);
14+
// import transpiler build tasks
15+
var transpilerTasks = require('./tools/transpiler/gulp-tasks');
16+
transpilerTasks.install(gulp);
1717

1818
var js2es5Options = {
1919
annotations: true, // parse annotations
@@ -24,14 +24,14 @@ var js2es5Options = {
2424
typeAssertions: true
2525
};
2626

27-
var js2dartOptions = {
27+
var transpilerOptions = {
2828
annotations: true, // parse annotations
2929
types: true, // parse types
3030
script: false, // parse as a module
3131
outputLanguage: 'dart'
3232
};
3333

34-
var gulpTraceur = require('./tools/js2dart/gulp-traceur');
34+
var gulpTraceur = require('./tools/transpiler/gulp-traceur');
3535

3636
function resolveModuleName(fileName) {
3737
var moduleName = fileName
@@ -62,7 +62,7 @@ function createJsRuntimeTask(isWatch) {
6262
var sourceTypeConfigs = {
6363
dart: {
6464
compiler: function() {
65-
return gulpTraceur(js2dartOptions, resolveModuleName);
65+
return gulpTraceur(transpilerOptions, resolveModuleName);
6666
},
6767
transpileSrc: ['modules/**/*.js'],
6868
htmlSrc: ['modules/*/src/**/*.html'],
@@ -177,13 +177,13 @@ gulp.task('serve', connect.server({
177177
// --------------
178178
// general targets
179179

180-
gulp.task('clean', ['js2dart/clean', 'modules/clean']);
180+
gulp.task('clean', ['transpiler/clean', 'modules/clean']);
181181

182182
gulp.task('build', ['jsRuntime/build', 'modules/build.dart', 'modules/build.js']);
183183

184184
gulp.task('watch', function() {
185185
// parallel is important as both streams are infinite!
186-
runSequence(['js2dart/test/watch', 'js2dart/src/watch']);
186+
runSequence(['transpiler/test/watch', 'transpiler/src/watch']);
187187
var dartModuleWatch = createModuleTask(sourceTypeConfigs.dart, true);
188188
var jsModuleWatch = createModuleTask(sourceTypeConfigs.js, true);
189189
return mergeStreams(dartModuleWatch, jsModuleWatch, createJsRuntimeTask(true));

karma-dart.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,5 @@ module.exports = function(config) {
5757
});
5858

5959

60-
config.plugins.push(require('./tools/js2dart/karma-traceur-preprocessor'));
60+
config.plugins.push(require('./tools/transpiler/karma-traceur-preprocessor'));
6161
};

karma-js.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,5 @@ module.exports = function(config) {
4545
browsers: ['Chrome']
4646
});
4747

48-
config.plugins.push(require('./tools/js2dart/karma-traceur-preprocessor'));
48+
config.plugins.push(require('./tools/transpiler/karma-traceur-preprocessor'));
4949
};

postinstall.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#! /bin/sh
22
git submodule init && git submodule update
33

4-
rm node_modules/js2dart
5-
ln -s ../tools/js2dart node_modules/js2dart
4+
rm node_modules/transpiler
5+
ln -s ../tools/transpiler node_modules/transpiler
66

7-
(cd tools/js2dart; npm install)
7+
(cd tools/transpiler; npm install)

tools/rtts-assert/API.md

Lines changed: 0 additions & 44 deletions
This file was deleted.

tools/rtts-assert/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

tools/rtts-assert/gulpfile.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

tools/rtts-assert/karma.conf.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

tools/rtts-assert/npm-shrinkwrap.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

tools/rtts-assert/package.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)