trackler 2.1.0.4 → 2.1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trackler/version.rb +1 -1
- data/tracks/ecmascript/.travis.yml +1 -0
- data/tracks/ecmascript/Makefile +13 -18
- data/tracks/ecmascript/README.md +4 -8
- data/tracks/ecmascript/docs/INSTALLATION.md +1 -17
- data/tracks/ecmascript/docs/TESTS.md +10 -3
- data/tracks/ecmascript/exercises/accumulate/package.json +62 -13
- data/tracks/ecmascript/exercises/acronym/package.json +62 -13
- data/tracks/ecmascript/exercises/all-your-base/package.json +62 -13
- data/tracks/ecmascript/exercises/allergies/package.json +62 -13
- data/tracks/ecmascript/exercises/anagram/package.json +62 -13
- data/tracks/ecmascript/exercises/atbash-cipher/package.json +62 -13
- data/tracks/ecmascript/exercises/beer-song/package.json +62 -13
- data/tracks/ecmascript/exercises/binary-search-tree/package.json +62 -13
- data/tracks/ecmascript/exercises/binary-search/package.json +62 -13
- data/tracks/ecmascript/exercises/binary/package.json +62 -13
- data/tracks/ecmascript/exercises/bob/package.json +62 -13
- data/tracks/ecmascript/exercises/bracket-push/package.json +62 -13
- data/tracks/ecmascript/exercises/circular-buffer/package.json +62 -13
- data/tracks/ecmascript/exercises/clock/package.json +62 -13
- data/tracks/ecmascript/exercises/crypto-square/package.json +62 -13
- data/tracks/ecmascript/exercises/custom-set/package.json +62 -13
- data/tracks/ecmascript/exercises/diamond/package.json +62 -13
- data/tracks/ecmascript/exercises/difference-of-squares/package.json +62 -13
- data/tracks/ecmascript/exercises/etl/package.json +62 -13
- data/tracks/ecmascript/exercises/food-chain/package.json +62 -13
- data/tracks/ecmascript/exercises/gigasecond/package.json +62 -13
- data/tracks/ecmascript/exercises/grade-school/package.json +62 -13
- data/tracks/ecmascript/exercises/grains/package.json +62 -13
- data/tracks/ecmascript/exercises/hamming/package.json +62 -13
- data/tracks/ecmascript/exercises/hello-world/example.js +5 -4
- data/tracks/ecmascript/exercises/hello-world/hello-world.js +7 -5
- data/tracks/ecmascript/exercises/hello-world/hello-world.spec.js +4 -2
- data/tracks/ecmascript/exercises/hello-world/package.json +62 -13
- data/tracks/ecmascript/exercises/hexadecimal/package.json +62 -13
- data/tracks/ecmascript/exercises/isogram/package.json +62 -13
- data/tracks/ecmascript/exercises/kindergarten-garden/package.json +62 -13
- data/tracks/ecmascript/exercises/largest-series-product/package.json +62 -13
- data/tracks/ecmascript/exercises/leap/example.js +10 -1
- data/tracks/ecmascript/exercises/leap/leap.spec.js +13 -30
- data/tracks/ecmascript/exercises/leap/package.json +62 -13
- data/tracks/ecmascript/exercises/linked-list/package.json +62 -13
- data/tracks/ecmascript/exercises/luhn/package.json +62 -13
- data/tracks/ecmascript/exercises/matrix/package.json +62 -13
- data/tracks/ecmascript/exercises/meetup/package.json +62 -13
- data/tracks/ecmascript/exercises/nth-prime/package.json +62 -13
- data/tracks/ecmascript/exercises/ocr-numbers/package.json +62 -13
- data/tracks/ecmascript/exercises/octal/package.json +62 -13
- data/tracks/ecmascript/exercises/package.json +62 -9
- data/tracks/ecmascript/exercises/palindrome-products/package.json +62 -13
- data/tracks/ecmascript/exercises/palindrome-products/palindrome-products.spec.js +28 -1
- data/tracks/ecmascript/exercises/pangram/package.json +62 -13
- data/tracks/ecmascript/exercises/pascals-triangle/package.json +62 -13
- data/tracks/ecmascript/exercises/perfect-numbers/example.js +1 -1
- data/tracks/ecmascript/exercises/perfect-numbers/package.json +62 -13
- data/tracks/ecmascript/exercises/perfect-numbers/perfect-numbers.spec.js +16 -14
- data/tracks/ecmascript/exercises/phone-number/package.json +62 -13
- data/tracks/ecmascript/exercises/pig-latin/package.json +62 -13
- data/tracks/ecmascript/exercises/prime-factors/package.json +62 -13
- data/tracks/ecmascript/exercises/pythagorean-triplet/package.json +62 -13
- data/tracks/ecmascript/exercises/queen-attack/package.json +62 -13
- data/tracks/ecmascript/exercises/raindrops/package.json +62 -13
- data/tracks/ecmascript/exercises/rna-transcription/package.json +62 -13
- data/tracks/ecmascript/exercises/robot-name/package.json +62 -13
- data/tracks/ecmascript/exercises/robot-simulator/package.json +62 -13
- data/tracks/ecmascript/exercises/roman-numerals/package.json +62 -13
- data/tracks/ecmascript/exercises/saddle-points/package.json +62 -13
- data/tracks/ecmascript/exercises/say/package.json +62 -13
- data/tracks/ecmascript/exercises/scrabble-score/package.json +62 -13
- data/tracks/ecmascript/exercises/secret-handshake/package.json +62 -13
- data/tracks/ecmascript/exercises/series/package.json +62 -13
- data/tracks/ecmascript/exercises/sieve/package.json +62 -13
- data/tracks/ecmascript/exercises/simple-cipher/package.json +62 -13
- data/tracks/ecmascript/exercises/space-age/package.json +62 -13
- data/tracks/ecmascript/exercises/strain/package.json +62 -13
- data/tracks/ecmascript/exercises/sum-of-multiples/package.json +62 -13
- data/tracks/ecmascript/exercises/triangle/package.json +62 -13
- data/tracks/ecmascript/exercises/trinary/package.json +62 -13
- data/tracks/ecmascript/exercises/two-bucket/package.json +62 -13
- data/tracks/ecmascript/exercises/word-count/package.json +62 -13
- data/tracks/ecmascript/exercises/wordy/package.json +62 -13
- data/tracks/ecmascript/package.json +62 -13
- data/tracks/erlang/.github/stale.yml +3 -0
- data/tracks/go/exercises/series/asktoomuch_test.go +1 -1
- data/tracks/go/exercises/series/example.go +2 -2
- data/tracks/go/exercises/series/first_example.go +1 -1
- data/tracks/go/exercises/series/first_test.go +1 -1
- data/tracks/go/exercises/series/series_test.go +2 -2
- data/tracks/ocaml/exercises/bracket-push/test.ml +2 -0
- data/tracks/ocaml/exercises/phone-number/example.ml +7 -2
- data/tracks/ocaml/exercises/phone-number/test.ml +11 -5
- data/tracks/ocaml/tools/test-generator/templates/phone-number/template.ml +1 -1
- data/tracks/pony/.github/stale.yml +16 -0
- data/tracks/purescript/config.json +7 -0
- data/tracks/purescript/exercises/pascals-triangle/bower.json +16 -0
- data/tracks/purescript/exercises/pascals-triangle/examples/src/PascalsTriangle.purs +24 -0
- data/tracks/purescript/exercises/pascals-triangle/src/PascalsTriangle.purs +1 -0
- data/tracks/purescript/exercises/pascals-triangle/test/Main.purs +74 -0
- data/tracks/ruby/.github/ISSUE_TEMPLATE.md +2 -2
- data/tracks/ruby/.github/PULL_REQUEST_TEMPLATE.md +14 -10
- data/tracks/ruby/.github/stale.yml +21 -0
- data/tracks/ruby/README.md +80 -74
- data/tracks/ruby/{lib → exercises/acronym/.meta/generator}/acronym_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/all-your-base/.meta/generator}/all_your_base_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/alphametics/.meta/generator}/alphametics_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/anagram/.meta/generator}/anagram_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/beer-song/.meta/generator}/beer_song_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/binary/.meta/generator}/binary_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/bowling/.meta/generator}/bowling_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/bracket-push/.meta/generator}/bracket_push_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/clock/.meta/generator}/clock_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/connect/.meta/generator}/connect_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/custom-set/.meta/generator}/custom_set_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/difference-of-squares/.meta/generator}/difference_of_squares_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/dominoes/.meta/generator}/dominoes_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/etl/.meta/generator}/etl_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/gigasecond/.meta/generator}/gigasecond_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/grains/.meta/generator}/grains_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/hamming/.meta/generator}/hamming_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/hello-world/.meta/generator}/hello_world_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/isogram/.meta/generator}/isogram_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/largest-series-product/.meta/generator}/largest_series_product_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/leap/.meta/generator}/leap_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/luhn/.meta/generator}/luhn_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/nth-prime/.meta/generator}/nth_prime_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/ocr-numbers/.meta/generator}/ocr_numbers_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/pangram/.meta/generator}/pangram_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/pig-latin/.meta/generator}/pig_latin_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/queen-attack/.meta/generator}/queen_attack_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/raindrops/.meta/generator}/raindrops_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/rna-transcription/.meta/generator}/rna_transcription_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/roman-numerals/.meta/generator}/roman_numerals_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/run-length-encoding/.meta/generator}/run_length_encoding_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/say/.meta/generator}/say_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/sieve/.meta/generator}/sieve_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/tournament/.meta/generator}/tournament_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/transpose/.meta/generator}/transpose_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/triangle/.meta/generator}/triangle_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/two-bucket/.meta/generator}/two_bucket_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/word-count/.meta/generator}/word_count_cases.rb +0 -0
- data/tracks/ruby/{lib → exercises/wordy/.meta/generator}/wordy_cases.rb +0 -0
- data/tracks/ruby/lib/generator/files.rb +5 -1
- data/tracks/ruby/lib/generator/files/generator_cases.rb +18 -4
- data/tracks/ruby/lib/generator/files/metadata_files.rb +3 -0
- data/tracks/ruby/lib/generator/files/track_files.rb +24 -6
- data/tracks/ruby/test/fixtures/xruby/exercises/alpha/.meta/generator/test_template.erb +23 -0
- data/tracks/ruby/test/fixtures/xruby/exercises/beta/.meta/.version +1 -0
- data/tracks/ruby/test/fixtures/xruby/{lib → exercises/beta/.meta/generator}/beta_cases.rb +0 -0
- data/tracks/ruby/test/fixtures/xruby/exercises/beta/example.rb +5 -0
- data/tracks/ruby/test/fixtures/xruby/exercises/{alpha → beta}/example.tt +10 -7
- data/tracks/ruby/test/generator/files/generate_cases_test.rb +25 -1
- data/tracks/ruby/test/generator/files/metadata_files_test.rb +21 -0
- data/tracks/ruby/test/generator/files/track_files_test.rb +20 -3
- data/tracks/ruby/test/generator/files_test.rb +18 -0
- data/tracks/ruby/test/wordy_cases_test.rb +1 -0
- data/tracks/typescript/README.md +1 -1
- data/tracks/typescript/config.json +6 -0
- data/tracks/typescript/exercises/difference-of-squares/difference-of-squares.example.ts +39 -0
- data/tracks/typescript/exercises/difference-of-squares/difference-of-squares.test.ts +56 -0
- data/tracks/typescript/exercises/difference-of-squares/package.json +36 -0
- data/tracks/typescript/exercises/difference-of-squares/tsconfig.json +21 -0
- data/tracks/typescript/exercises/difference-of-squares/tslint.json +127 -0
- data/tracks/typescript/exercises/difference-of-squares/yarn.lock +2739 -0
- data/tracks/typescript/exercises/wordy/wordy.example.ts +1 -1
- metadata +56 -114
- data/tracks/csharp/.github/stale.yml +0 -0
- data/tracks/ecmascript/exercises/accumulate/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/acronym/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/all-your-base/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/allergies/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/anagram/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/atbash-cipher/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/beer-song/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/binary-search-tree/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/binary-search/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/binary/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/bob/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/bracket-push/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/circular-buffer/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/clock/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/crypto-square/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/custom-set/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/diamond/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/difference-of-squares/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/etl/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/food-chain/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/gigasecond/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/grade-school/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/grains/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/gulpfile.js +0 -89
- data/tracks/ecmascript/exercises/hamming/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/hello-world/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/hexadecimal/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/isogram/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/kindergarten-garden/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/largest-series-product/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/leap/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/linked-list/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/luhn/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/matrix/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/meetup/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/nth-prime/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/ocr-numbers/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/octal/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/palindrome-products/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/palindrome-products/palindrome-products.js +0 -18
- data/tracks/ecmascript/exercises/pangram/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/pascals-triangle/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/perfect-numbers/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/phone-number/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/pig-latin/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/prime-factors/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/pythagorean-triplet/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/queen-attack/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/raindrops/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/rna-transcription/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/robot-name/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/robot-simulator/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/roman-numerals/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/saddle-points/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/say/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/scrabble-score/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/secret-handshake/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/series/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/sieve/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/simple-cipher/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/space-age/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/strain/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/sum-of-multiples/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/triangle/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/trinary/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/two-bucket/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/word-count/gulpfile.js +0 -92
- data/tracks/ecmascript/exercises/wordy/gulpfile.js +0 -92
- data/tracks/ecmascript/gulpfile.js +0 -92
- data/tracks/fsharp/.github/stale.yml +0 -0
@@ -1,92 +0,0 @@
|
|
1
|
-
function getInputDirectory(argv) {
|
2
|
-
if (argv.input) {
|
3
|
-
return argv.input;
|
4
|
-
}
|
5
|
-
return '.';
|
6
|
-
}
|
7
|
-
|
8
|
-
function getOutputDirectory(argv) {
|
9
|
-
if (argv.output) {
|
10
|
-
return argv.output;
|
11
|
-
}
|
12
|
-
return 'babel-output';
|
13
|
-
}
|
14
|
-
|
15
|
-
const gulp = require('gulp'),
|
16
|
-
eslint = require('gulp-eslint'),
|
17
|
-
jasmine = require('gulp-jasmine'),
|
18
|
-
babel = require('gulp-babel'),
|
19
|
-
polyfill = require('babel-polyfill'),
|
20
|
-
del = require('del'),
|
21
|
-
argv = require('yargs').argv,
|
22
|
-
inputDir = getInputDirectory(argv),
|
23
|
-
outputDir = getOutputDirectory(argv);
|
24
|
-
|
25
|
-
// Gulp tasks definition
|
26
|
-
|
27
|
-
gulp.task('default', ['test']);
|
28
|
-
|
29
|
-
gulp.task('test', ['babel'], function () {
|
30
|
-
return gulp.src([outputDir + '/*.spec.js'])
|
31
|
-
.pipe(jasmine());
|
32
|
-
});
|
33
|
-
|
34
|
-
gulp.task('babel', function () {
|
35
|
-
return gulp.src([inputDir + '/*.js', inputDir + '/lib/*.js'])
|
36
|
-
.pipe(babel({
|
37
|
-
plugins: ["babel-plugin-transform-object-rest-spread"].map(require.resolve),
|
38
|
-
presets: ['babel-preset-env'].map(require.resolve)
|
39
|
-
}))
|
40
|
-
.pipe(gulp.dest(outputDir));
|
41
|
-
});
|
42
|
-
|
43
|
-
gulp.task('lint', function () {
|
44
|
-
return gulp.src([inputDir + '/*.js'])
|
45
|
-
.pipe(eslint({
|
46
|
-
envs: [
|
47
|
-
'es6' //turns on all es6 features except modules
|
48
|
-
],
|
49
|
-
rules: {
|
50
|
-
// full documentation here : http://eslint.org/docs/rules
|
51
|
-
|
52
|
-
// Possible errors
|
53
|
-
'comma-dangle': [2, 'never'], // don't let a comma at the end of object properties or array element
|
54
|
-
'no-cond-assign': [2, 'always'], // no assignments in conditional statements
|
55
|
-
'no-console': 2, // no console.log() statements in production code
|
56
|
-
'no-constant-condition': 2, // no constants in conditional statements
|
57
|
-
'no-control-regex': 2, // no control characters in regex's
|
58
|
-
'no-debugger': 2, // no debugger in productin code
|
59
|
-
'no-dupe-args': 2, // no duplicated arguments in functions
|
60
|
-
'no-dupe-keys': 2, // no duplicated keys when creating object literals
|
61
|
-
'no-duplicate-case': 2, // no duplicated `case` in `switch` statements
|
62
|
-
'no-empty-character-class': 2, // disallow the use of empty character classes in regular expressions
|
63
|
-
'no-empty': 2, // no empty blocks
|
64
|
-
'no-ex-assign': 2, // do not assign any value to an Exception raised
|
65
|
-
'no-extra-boolean-cast': 2, // do not use !!falseExpression to cast to boolean
|
66
|
-
'no-extra-parens': 2, // do not use extra parenthesis
|
67
|
-
'no-extra-semi': 2, // do not use extra semicolons
|
68
|
-
'no-func-assign': 2, // do not overwrite variables declared as functions
|
69
|
-
'no-inner-declarations': [2, 'both'], // only declare var's and funct's on function scope
|
70
|
-
'no-invalid-regexp': 2, // validates string arguments passed to RegExp constructor
|
71
|
-
'no-irregular-whitespace': 2, // detects special characters used as spaces
|
72
|
-
'no-negated-in-lhs': 2, // do not use negation in the left operand in an `in` expression
|
73
|
-
'no-obj-calls': 2, // prevent calling global objects as if they were functions
|
74
|
-
'no-regex-spaces': 2, // do not use multiple spaces in regex's
|
75
|
-
'no-sparse-arrays': 2, // do not use sparse arrays (empty elements)
|
76
|
-
'no-unexpected-multiline': 2, // Avoid code that looks like two expressions but is actually one
|
77
|
-
'no-unreachable': 2, // detects unreachable statements (after return, throw,...)
|
78
|
-
'use-isnan': 2, // do not compare with `NaN` value, use isNan() instead
|
79
|
-
'valid-jsdoc': 2, // ensure JSDoc comments are valid
|
80
|
-
'valid-typeof': 2 // ensure that the results of typeof are compared against a valid string
|
81
|
-
},
|
82
|
-
ecmaFeatures: {
|
83
|
-
'modules': true //this gives us modules :)
|
84
|
-
}
|
85
|
-
}))
|
86
|
-
.pipe(eslint.format())
|
87
|
-
.pipe(eslint.failAfterError());
|
88
|
-
});
|
89
|
-
|
90
|
-
gulp.task('clean', function (cb) {
|
91
|
-
del([outputDir], cb);
|
92
|
-
});
|
@@ -1,92 +0,0 @@
|
|
1
|
-
function getInputDirectory(argv) {
|
2
|
-
if (argv.input) {
|
3
|
-
return argv.input;
|
4
|
-
}
|
5
|
-
return '.';
|
6
|
-
}
|
7
|
-
|
8
|
-
function getOutputDirectory(argv) {
|
9
|
-
if (argv.output) {
|
10
|
-
return argv.output;
|
11
|
-
}
|
12
|
-
return 'babel-output';
|
13
|
-
}
|
14
|
-
|
15
|
-
const gulp = require('gulp'),
|
16
|
-
eslint = require('gulp-eslint'),
|
17
|
-
jasmine = require('gulp-jasmine'),
|
18
|
-
babel = require('gulp-babel'),
|
19
|
-
polyfill = require('babel-polyfill'),
|
20
|
-
del = require('del'),
|
21
|
-
argv = require('yargs').argv,
|
22
|
-
inputDir = getInputDirectory(argv),
|
23
|
-
outputDir = getOutputDirectory(argv);
|
24
|
-
|
25
|
-
// Gulp tasks definition
|
26
|
-
|
27
|
-
gulp.task('default', ['test']);
|
28
|
-
|
29
|
-
gulp.task('test', ['babel'], function () {
|
30
|
-
return gulp.src([outputDir + '/*.spec.js'])
|
31
|
-
.pipe(jasmine());
|
32
|
-
});
|
33
|
-
|
34
|
-
gulp.task('babel', function () {
|
35
|
-
return gulp.src([inputDir + '/*.js', inputDir + '/lib/*.js'])
|
36
|
-
.pipe(babel({
|
37
|
-
plugins: ["babel-plugin-transform-object-rest-spread"].map(require.resolve),
|
38
|
-
presets: ['babel-preset-env'].map(require.resolve)
|
39
|
-
}))
|
40
|
-
.pipe(gulp.dest(outputDir));
|
41
|
-
});
|
42
|
-
|
43
|
-
gulp.task('lint', function () {
|
44
|
-
return gulp.src([inputDir + '/*.js'])
|
45
|
-
.pipe(eslint({
|
46
|
-
envs: [
|
47
|
-
'es6' //turns on all es6 features except modules
|
48
|
-
],
|
49
|
-
rules: {
|
50
|
-
// full documentation here : http://eslint.org/docs/rules
|
51
|
-
|
52
|
-
// Possible errors
|
53
|
-
'comma-dangle': [2, 'never'], // don't let a comma at the end of object properties or array element
|
54
|
-
'no-cond-assign': [2, 'always'], // no assignments in conditional statements
|
55
|
-
'no-console': 2, // no console.log() statements in production code
|
56
|
-
'no-constant-condition': 2, // no constants in conditional statements
|
57
|
-
'no-control-regex': 2, // no control characters in regex's
|
58
|
-
'no-debugger': 2, // no debugger in productin code
|
59
|
-
'no-dupe-args': 2, // no duplicated arguments in functions
|
60
|
-
'no-dupe-keys': 2, // no duplicated keys when creating object literals
|
61
|
-
'no-duplicate-case': 2, // no duplicated `case` in `switch` statements
|
62
|
-
'no-empty-character-class': 2, // disallow the use of empty character classes in regular expressions
|
63
|
-
'no-empty': 2, // no empty blocks
|
64
|
-
'no-ex-assign': 2, // do not assign any value to an Exception raised
|
65
|
-
'no-extra-boolean-cast': 2, // do not use !!falseExpression to cast to boolean
|
66
|
-
'no-extra-parens': 2, // do not use extra parenthesis
|
67
|
-
'no-extra-semi': 2, // do not use extra semicolons
|
68
|
-
'no-func-assign': 2, // do not overwrite variables declared as functions
|
69
|
-
'no-inner-declarations': [2, 'both'], // only declare var's and funct's on function scope
|
70
|
-
'no-invalid-regexp': 2, // validates string arguments passed to RegExp constructor
|
71
|
-
'no-irregular-whitespace': 2, // detects special characters used as spaces
|
72
|
-
'no-negated-in-lhs': 2, // do not use negation in the left operand in an `in` expression
|
73
|
-
'no-obj-calls': 2, // prevent calling global objects as if they were functions
|
74
|
-
'no-regex-spaces': 2, // do not use multiple spaces in regex's
|
75
|
-
'no-sparse-arrays': 2, // do not use sparse arrays (empty elements)
|
76
|
-
'no-unexpected-multiline': 2, // Avoid code that looks like two expressions but is actually one
|
77
|
-
'no-unreachable': 2, // detects unreachable statements (after return, throw,...)
|
78
|
-
'use-isnan': 2, // do not compare with `NaN` value, use isNan() instead
|
79
|
-
'valid-jsdoc': 2, // ensure JSDoc comments are valid
|
80
|
-
'valid-typeof': 2 // ensure that the results of typeof are compared against a valid string
|
81
|
-
},
|
82
|
-
ecmaFeatures: {
|
83
|
-
'modules': true //this gives us modules :)
|
84
|
-
}
|
85
|
-
}))
|
86
|
-
.pipe(eslint.format())
|
87
|
-
.pipe(eslint.failAfterError());
|
88
|
-
});
|
89
|
-
|
90
|
-
gulp.task('clean', function (cb) {
|
91
|
-
del([outputDir], cb);
|
92
|
-
});
|
@@ -1,92 +0,0 @@
|
|
1
|
-
function getInputDirectory(argv) {
|
2
|
-
if (argv.input) {
|
3
|
-
return argv.input;
|
4
|
-
}
|
5
|
-
return '.';
|
6
|
-
}
|
7
|
-
|
8
|
-
function getOutputDirectory(argv) {
|
9
|
-
if (argv.output) {
|
10
|
-
return argv.output;
|
11
|
-
}
|
12
|
-
return 'babel-output';
|
13
|
-
}
|
14
|
-
|
15
|
-
const gulp = require('gulp'),
|
16
|
-
eslint = require('gulp-eslint'),
|
17
|
-
jasmine = require('gulp-jasmine'),
|
18
|
-
babel = require('gulp-babel'),
|
19
|
-
polyfill = require('babel-polyfill'),
|
20
|
-
del = require('del'),
|
21
|
-
argv = require('yargs').argv,
|
22
|
-
inputDir = getInputDirectory(argv),
|
23
|
-
outputDir = getOutputDirectory(argv);
|
24
|
-
|
25
|
-
// Gulp tasks definition
|
26
|
-
|
27
|
-
gulp.task('default', ['test']);
|
28
|
-
|
29
|
-
gulp.task('test', ['babel'], function () {
|
30
|
-
return gulp.src([outputDir + '/*.spec.js'])
|
31
|
-
.pipe(jasmine());
|
32
|
-
});
|
33
|
-
|
34
|
-
gulp.task('babel', function () {
|
35
|
-
return gulp.src([inputDir + '/*.js', inputDir + '/lib/*.js'])
|
36
|
-
.pipe(babel({
|
37
|
-
plugins: ["babel-plugin-transform-object-rest-spread"].map(require.resolve),
|
38
|
-
presets: ['babel-preset-env'].map(require.resolve)
|
39
|
-
}))
|
40
|
-
.pipe(gulp.dest(outputDir));
|
41
|
-
});
|
42
|
-
|
43
|
-
gulp.task('lint', function () {
|
44
|
-
return gulp.src([inputDir + '/*.js'])
|
45
|
-
.pipe(eslint({
|
46
|
-
envs: [
|
47
|
-
'es6' //turns on all es6 features except modules
|
48
|
-
],
|
49
|
-
rules: {
|
50
|
-
// full documentation here : http://eslint.org/docs/rules
|
51
|
-
|
52
|
-
// Possible errors
|
53
|
-
'comma-dangle': [2, 'never'], // don't let a comma at the end of object properties or array element
|
54
|
-
'no-cond-assign': [2, 'always'], // no assignments in conditional statements
|
55
|
-
'no-console': 2, // no console.log() statements in production code
|
56
|
-
'no-constant-condition': 2, // no constants in conditional statements
|
57
|
-
'no-control-regex': 2, // no control characters in regex's
|
58
|
-
'no-debugger': 2, // no debugger in productin code
|
59
|
-
'no-dupe-args': 2, // no duplicated arguments in functions
|
60
|
-
'no-dupe-keys': 2, // no duplicated keys when creating object literals
|
61
|
-
'no-duplicate-case': 2, // no duplicated `case` in `switch` statements
|
62
|
-
'no-empty-character-class': 2, // disallow the use of empty character classes in regular expressions
|
63
|
-
'no-empty': 2, // no empty blocks
|
64
|
-
'no-ex-assign': 2, // do not assign any value to an Exception raised
|
65
|
-
'no-extra-boolean-cast': 2, // do not use !!falseExpression to cast to boolean
|
66
|
-
'no-extra-parens': 2, // do not use extra parenthesis
|
67
|
-
'no-extra-semi': 2, // do not use extra semicolons
|
68
|
-
'no-func-assign': 2, // do not overwrite variables declared as functions
|
69
|
-
'no-inner-declarations': [2, 'both'], // only declare var's and funct's on function scope
|
70
|
-
'no-invalid-regexp': 2, // validates string arguments passed to RegExp constructor
|
71
|
-
'no-irregular-whitespace': 2, // detects special characters used as spaces
|
72
|
-
'no-negated-in-lhs': 2, // do not use negation in the left operand in an `in` expression
|
73
|
-
'no-obj-calls': 2, // prevent calling global objects as if they were functions
|
74
|
-
'no-regex-spaces': 2, // do not use multiple spaces in regex's
|
75
|
-
'no-sparse-arrays': 2, // do not use sparse arrays (empty elements)
|
76
|
-
'no-unexpected-multiline': 2, // Avoid code that looks like two expressions but is actually one
|
77
|
-
'no-unreachable': 2, // detects unreachable statements (after return, throw,...)
|
78
|
-
'use-isnan': 2, // do not compare with `NaN` value, use isNan() instead
|
79
|
-
'valid-jsdoc': 2, // ensure JSDoc comments are valid
|
80
|
-
'valid-typeof': 2 // ensure that the results of typeof are compared against a valid string
|
81
|
-
},
|
82
|
-
ecmaFeatures: {
|
83
|
-
'modules': true //this gives us modules :)
|
84
|
-
}
|
85
|
-
}))
|
86
|
-
.pipe(eslint.format())
|
87
|
-
.pipe(eslint.failAfterError());
|
88
|
-
});
|
89
|
-
|
90
|
-
gulp.task('clean', function (cb) {
|
91
|
-
del([outputDir], cb);
|
92
|
-
});
|
@@ -1,89 +0,0 @@
|
|
1
|
-
function getInputDirectory(argv) {
|
2
|
-
if (argv.input) {
|
3
|
-
return argv.input;
|
4
|
-
}
|
5
|
-
return '.';
|
6
|
-
}
|
7
|
-
|
8
|
-
function getOutputDirectory(argv) {
|
9
|
-
if (argv.output) {
|
10
|
-
return argv.output;
|
11
|
-
}
|
12
|
-
return 'babel-output';
|
13
|
-
}
|
14
|
-
|
15
|
-
const gulp = require('gulp'),
|
16
|
-
eslint = require('gulp-eslint'),
|
17
|
-
jasmine = require('gulp-jasmine'),
|
18
|
-
babel = require('gulp-babel'),
|
19
|
-
polyfill = require('babel/polyfill'),
|
20
|
-
del = require('del'),
|
21
|
-
argv = require('yargs').argv,
|
22
|
-
inputDir = getInputDirectory(argv),
|
23
|
-
outputDir = getOutputDirectory(argv);
|
24
|
-
|
25
|
-
// Gulp tasks definition
|
26
|
-
|
27
|
-
gulp.task('default', [ 'test' ]);
|
28
|
-
|
29
|
-
gulp.task('test', [ 'babel' ], function () {
|
30
|
-
return gulp.src([ outputDir + '/*.spec.js' ])
|
31
|
-
.pipe(jasmine());
|
32
|
-
});
|
33
|
-
|
34
|
-
gulp.task('babel', function () {
|
35
|
-
return gulp.src([ inputDir + '/*.js', inputDir + '/lib/*.js' ])
|
36
|
-
.pipe(babel())
|
37
|
-
.pipe(gulp.dest(outputDir));
|
38
|
-
});
|
39
|
-
|
40
|
-
gulp.task('lint', function () {
|
41
|
-
return gulp.src([ inputDir + '/*.js' ])
|
42
|
-
.pipe(eslint({
|
43
|
-
envs: [
|
44
|
-
'es6' //turns on all es6 features except modules
|
45
|
-
],
|
46
|
-
rules: {
|
47
|
-
// full documentation here : http://eslint.org/docs/rules
|
48
|
-
|
49
|
-
// Possible errors
|
50
|
-
'comma-dangle': [2, 'never'], // don't let a comma at the end of object properties or array element
|
51
|
-
'no-cond-assign': [2, 'always'], // no assignments in conditional statements
|
52
|
-
'no-console': 2, // no console.log() statements in production code
|
53
|
-
'no-constant-condition': 2, // no constants in conditional statements
|
54
|
-
'no-control-regex': 2, // no control characters in regex's
|
55
|
-
'no-debugger': 2, // no debugger in productin code
|
56
|
-
'no-dupe-args': 2, // no duplicated arguments in functions
|
57
|
-
'no-dupe-keys': 2, // no duplicated keys when creating object literals
|
58
|
-
'no-duplicate-case': 2, // no duplicated `case` in `switch` statements
|
59
|
-
'no-empty-character-class': 2, // disallow the use of empty character classes in regular expressions
|
60
|
-
'no-empty': 2, // no empty blocks
|
61
|
-
'no-ex-assign': 2, // do not assign any value to an Exception raised
|
62
|
-
'no-extra-boolean-cast': 2, // do not use !!falseExpression to cast to boolean
|
63
|
-
'no-extra-parens': 2, // do not use extra parenthesis
|
64
|
-
'no-extra-semi': 2, // do not use extra semicolons
|
65
|
-
'no-func-assign': 2, // do not overwrite variables declared as functions
|
66
|
-
'no-inner-declarations': [2, 'both'], // only declare var's and funct's on function scope
|
67
|
-
'no-invalid-regexp': 2, // validates string arguments passed to RegExp constructor
|
68
|
-
'no-irregular-whitespace': 2, // detects special characters used as spaces
|
69
|
-
'no-negated-in-lhs': 2, // do not use negation in the left operand in an `in` expression
|
70
|
-
'no-obj-calls': 2, // prevent calling global objects as if they were functions
|
71
|
-
'no-regex-spaces': 2, // do not use multiple spaces in regex's
|
72
|
-
'no-sparse-arrays': 2, // do not use sparse arrays (empty elements)
|
73
|
-
'no-unexpected-multiline': 2, // Avoid code that looks like two expressions but is actually one
|
74
|
-
'no-unreachable': 2, // detects unreachable statements (after return, throw,...)
|
75
|
-
'use-isnan': 2, // do not compare with `NaN` value, use isNan() instead
|
76
|
-
'valid-jsdoc': 2, // ensure JSDoc comments are valid
|
77
|
-
'valid-typeof': 2 // ensure that the results of typeof are compared against a valid string
|
78
|
-
},
|
79
|
-
ecmaFeatures: {
|
80
|
-
'modules': true //this gives us modules :)
|
81
|
-
}
|
82
|
-
}))
|
83
|
-
.pipe(eslint.format())
|
84
|
-
.pipe(eslint.failAfterError());
|
85
|
-
});
|
86
|
-
|
87
|
-
gulp.task('clean', function (cb) {
|
88
|
-
del([ outputDir ], cb);
|
89
|
-
});
|
@@ -1,92 +0,0 @@
|
|
1
|
-
function getInputDirectory(argv) {
|
2
|
-
if (argv.input) {
|
3
|
-
return argv.input;
|
4
|
-
}
|
5
|
-
return '.';
|
6
|
-
}
|
7
|
-
|
8
|
-
function getOutputDirectory(argv) {
|
9
|
-
if (argv.output) {
|
10
|
-
return argv.output;
|
11
|
-
}
|
12
|
-
return 'babel-output';
|
13
|
-
}
|
14
|
-
|
15
|
-
const gulp = require('gulp'),
|
16
|
-
eslint = require('gulp-eslint'),
|
17
|
-
jasmine = require('gulp-jasmine'),
|
18
|
-
babel = require('gulp-babel'),
|
19
|
-
polyfill = require('babel-polyfill'),
|
20
|
-
del = require('del'),
|
21
|
-
argv = require('yargs').argv,
|
22
|
-
inputDir = getInputDirectory(argv),
|
23
|
-
outputDir = getOutputDirectory(argv);
|
24
|
-
|
25
|
-
// Gulp tasks definition
|
26
|
-
|
27
|
-
gulp.task('default', ['test']);
|
28
|
-
|
29
|
-
gulp.task('test', ['babel'], function () {
|
30
|
-
return gulp.src([outputDir + '/*.spec.js'])
|
31
|
-
.pipe(jasmine());
|
32
|
-
});
|
33
|
-
|
34
|
-
gulp.task('babel', function () {
|
35
|
-
return gulp.src([inputDir + '/*.js', inputDir + '/lib/*.js'])
|
36
|
-
.pipe(babel({
|
37
|
-
plugins: ["babel-plugin-transform-object-rest-spread"].map(require.resolve),
|
38
|
-
presets: ['babel-preset-env'].map(require.resolve)
|
39
|
-
}))
|
40
|
-
.pipe(gulp.dest(outputDir));
|
41
|
-
});
|
42
|
-
|
43
|
-
gulp.task('lint', function () {
|
44
|
-
return gulp.src([inputDir + '/*.js'])
|
45
|
-
.pipe(eslint({
|
46
|
-
envs: [
|
47
|
-
'es6' //turns on all es6 features except modules
|
48
|
-
],
|
49
|
-
rules: {
|
50
|
-
// full documentation here : http://eslint.org/docs/rules
|
51
|
-
|
52
|
-
// Possible errors
|
53
|
-
'comma-dangle': [2, 'never'], // don't let a comma at the end of object properties or array element
|
54
|
-
'no-cond-assign': [2, 'always'], // no assignments in conditional statements
|
55
|
-
'no-console': 2, // no console.log() statements in production code
|
56
|
-
'no-constant-condition': 2, // no constants in conditional statements
|
57
|
-
'no-control-regex': 2, // no control characters in regex's
|
58
|
-
'no-debugger': 2, // no debugger in productin code
|
59
|
-
'no-dupe-args': 2, // no duplicated arguments in functions
|
60
|
-
'no-dupe-keys': 2, // no duplicated keys when creating object literals
|
61
|
-
'no-duplicate-case': 2, // no duplicated `case` in `switch` statements
|
62
|
-
'no-empty-character-class': 2, // disallow the use of empty character classes in regular expressions
|
63
|
-
'no-empty': 2, // no empty blocks
|
64
|
-
'no-ex-assign': 2, // do not assign any value to an Exception raised
|
65
|
-
'no-extra-boolean-cast': 2, // do not use !!falseExpression to cast to boolean
|
66
|
-
'no-extra-parens': 2, // do not use extra parenthesis
|
67
|
-
'no-extra-semi': 2, // do not use extra semicolons
|
68
|
-
'no-func-assign': 2, // do not overwrite variables declared as functions
|
69
|
-
'no-inner-declarations': [2, 'both'], // only declare var's and funct's on function scope
|
70
|
-
'no-invalid-regexp': 2, // validates string arguments passed to RegExp constructor
|
71
|
-
'no-irregular-whitespace': 2, // detects special characters used as spaces
|
72
|
-
'no-negated-in-lhs': 2, // do not use negation in the left operand in an `in` expression
|
73
|
-
'no-obj-calls': 2, // prevent calling global objects as if they were functions
|
74
|
-
'no-regex-spaces': 2, // do not use multiple spaces in regex's
|
75
|
-
'no-sparse-arrays': 2, // do not use sparse arrays (empty elements)
|
76
|
-
'no-unexpected-multiline': 2, // Avoid code that looks like two expressions but is actually one
|
77
|
-
'no-unreachable': 2, // detects unreachable statements (after return, throw,...)
|
78
|
-
'use-isnan': 2, // do not compare with `NaN` value, use isNan() instead
|
79
|
-
'valid-jsdoc': 2, // ensure JSDoc comments are valid
|
80
|
-
'valid-typeof': 2 // ensure that the results of typeof are compared against a valid string
|
81
|
-
},
|
82
|
-
ecmaFeatures: {
|
83
|
-
'modules': true //this gives us modules :)
|
84
|
-
}
|
85
|
-
}))
|
86
|
-
.pipe(eslint.format())
|
87
|
-
.pipe(eslint.failAfterError());
|
88
|
-
});
|
89
|
-
|
90
|
-
gulp.task('clean', function (cb) {
|
91
|
-
del([outputDir], cb);
|
92
|
-
});
|