diff options
author | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-04 15:07:19 +0200 |
---|---|---|
committer | dotnetCarpenter <jon.ronnenberg@gmail.com> | 2016-10-04 15:07:19 +0200 |
commit | cc1c484cfff582785d491e9eabea56cba0d165a7 (patch) | |
tree | e06bfb1b5cb0669e0da4794a83dae82c64160387 | |
parent | b7061c65d5c89078605717ccd0c50945b0941f1e (diff) | |
download | svg.js-cc1c484cfff582785d491e9eabea56cba0d165a7.tar.gz svg.js-cc1c484cfff582785d491e9eabea56cba0d165a7.zip |
using the dist version of svg.js for testing because the code is not meant to be executed individually (syntax errors)
-rw-r--r-- | dist/svg.js | 2 | ||||
-rw-r--r-- | gulpfile.js | 56 | ||||
-rw-r--r-- | karma.conf.js | 8 | ||||
-rw-r--r-- | package.json | 54 |
4 files changed, 59 insertions, 61 deletions
diff --git a/dist/svg.js b/dist/svg.js index 29aac69..595da34 100644 --- a/dist/svg.js +++ b/dist/svg.js @@ -6,7 +6,7 @@ * @copyright Wout Fierens <wout@woutfierens.com> * @license MIT * -* BUILT: Tue Oct 04 2016 14:44:34 GMT+0200 (CEST) +* BUILT: Tue Oct 04 2016 15:03:44 GMT+0200 (CEST) */ (function(root, factory) { if (typeof define === 'function' && define.amd) { diff --git a/gulpfile.js b/gulpfile.js index bf7b7a4..7203ccf 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -28,8 +28,60 @@ var headerLong = ['/*!' var headerShort = '/*! <%= pkg.name %> v<%= pkg.version %> <%= pkg.license %>*/'
// all files in the right order (currently we don't use any dependency management system)
-// see package.json `files` section
-var parts = pkg.files
+var parts = [
+ 'src/svg.js'
+, 'src/regex.js'
+, 'src/utilities.js'
+, 'src/default.js'
+, 'src/color.js'
+, 'src/array.js'
+, 'src/pointarray.js'
+, 'src/patharray.js'
+, 'src/number.js'
+, 'src/element.js'
+, 'src/fx.js'
+, 'src/boxes.js'
+, 'src/matrix.js'
+, 'src/point.js'
+, 'src/attr.js'
+, 'src/transform.js'
+, 'src/style.js'
+, 'src/parent.js'
+, 'src/ungroup.js'
+, 'src/container.js'
+, 'src/viewbox.js'
+, 'src/event.js'
+, 'src/defs.js'
+, 'src/group.js'
+, 'src/arrange.js'
+, 'src/mask.js'
+, 'src/clip.js'
+, 'src/gradient.js'
+, 'src/pattern.js'
+, 'src/doc.js'
+, 'src/shape.js'
+, 'src/bare.js'
+, 'src/use.js'
+, 'src/rect.js'
+, 'src/ellipse.js'
+, 'src/line.js'
+, 'src/poly.js'
+, 'src/pointed.js'
+, 'src/path.js'
+, 'src/image.js'
+, 'src/text.js'
+, 'src/textpath.js'
+, 'src/nested.js'
+, 'src/hyperlink.js'
+, 'src/marker.js'
+, 'src/sugar.js'
+, 'src/set.js'
+, 'src/data.js'
+, 'src/memory.js'
+, 'src/selector.js'
+, 'src/helpers.js'
+, 'src/polyfill.js'
+]
gulp.task('clean', function() {
return del([ 'dist/*' ])
diff --git a/karma.conf.js b/karma.conf.js index 88cad5b..d676fe3 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -1,8 +1,6 @@ // Karma configuration // Generated on Tue Oct 04 2016 13:53:46 GMT+0200 (CEST) -var pkg = require('./package.json') - module.exports = function(config) { config.set({ @@ -16,13 +14,15 @@ module.exports = function(config) { // list of files / patterns to load in the browser - files: pkg.files.concat([ + files: [ + 'dist/svg.js', 'spec/**/*.js' - ]), + ], // list of files to exclude exclude: [ + 'spec/lib/**/*.js' ], diff --git a/package.json b/package.json index 428b122..a6d6856 100644 --- a/package.json +++ b/package.json @@ -12,60 +12,6 @@ ], "author": "Wout Fierens <wout@woutfierens.com>", "main": "dist/svg.js", - "files": [ - "src/svg.js" - , "src/regex.js" - , "src/utilities.js" - , "src/default.js" - , "src/color.js" - , "src/array.js" - , "src/pointarray.js" - , "src/patharray.js" - , "src/number.js" - , "src/element.js" - , "src/fx.js" - , "src/boxes.js" - , "src/matrix.js" - , "src/point.js" - , "src/attr.js" - , "src/transform.js" - , "src/style.js" - , "src/parent.js" - , "src/ungroup.js" - , "src/container.js" - , "src/viewbox.js" - , "src/event.js" - , "src/defs.js" - , "src/group.js" - , "src/arrange.js" - , "src/mask.js" - , "src/clip.js" - , "src/gradient.js" - , "src/pattern.js" - , "src/doc.js" - , "src/shape.js" - , "src/bare.js" - , "src/use.js" - , "src/rect.js" - , "src/ellipse.js" - , "src/line.js" - , "src/poly.js" - , "src/pointed.js" - , "src/path.js" - , "src/image.js" - , "src/text.js" - , "src/textpath.js" - , "src/nested.js" - , "src/hyperlink.js" - , "src/marker.js" - , "src/sugar.js" - , "src/set.js" - , "src/data.js" - , "src/memory.js" - , "src/selector.js" - , "src/helpers.js" - , "src/polyfill.js" - ], "jam": { "include": [ "dist/svg.js", |