These are chat archives for systemjs/systemjs

5th
Jul 2016
varghesep
@varghesep
Jul 05 2016 01:21
varghesep
@varghesep
Jul 05 2016 01:26
I made a donation now.
Michael Bøcker-Larsen
@mblarsen
Jul 05 2016 02:00
This message was deleted
David
@DavidStrada
Jul 05 2016 02:08
@varghesep what I would do given “… I don’t want to use JSPM” see how bundle works and replicate it, either using gulp or something else.
by bundle works I mean jspm bundle app/index.js -flags-here
there’s a sxf bundle options that includes systemjs as a whole.
Michael Bøcker-Larsen
@mblarsen
Jul 05 2016 02:14

I'm in need of assistance understanding this problem with tree arithmetics.

Basically js/**/*.js - [js/**/*.js]

(js/components/*.js + js/handlers/*.js + js/models/*.js + js/pages/**/*.js + js/*.js) - [(js/components/*.js + js/handlers/*.js + js/models/*.js + js/pages/**/*.js + js/*.js)]

As I've understod this I'm doing a trace for everything in the js path + dependencies (e.g. in vendor path) and then removing everything that is in the path js. However as you can see there are lots of elements from the js path:

[ { name: 'js/pages/products/sizes.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/toConsumableArray.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/classCallCheck.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/createClass.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/possibleConstructorReturn.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/inherits.js' },
  { name: 'js/app.js' },
  { name: 'js/components/BaseList.js' },
  { name: 'js/models/Size.js' },
  { name: 'js/models/Product.js' },
  { name: 'js/components/Page.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/slicedToArray.js' },
  { name: 'vendor/systemjs-plugin-text/text.js' },
  { name: 'vendor/jquery/dist/jquery.min.js' },
  { name: 'vendor/knockout/build/output/knockout-latest.js' },
  { name: 'vendor/knockout.validation/dist/knockout.validation.min.js' },
  { name: 'vendor/materialize-css/dist/js/materialize.js' },
  { name: 'js/components/ErrorHandler.js' },
  { name: 'vendor/lodash/lodash.min.js' },
  { name: 'vendor/lodash-inflection/lib/lodash-inflection.js' },
  { name: 'vendor/moment/min/moment.min.js' },
  { name: 'vendor/moment-timezone/builds/moment-timezone-with-data.min.js' },
  { name: 'js/componentNames.js' },
  { name: 'js/models/Basket.js' },
  { name: 'js/models/Notification.js' },
  { name: 'js/router.js' },
  { name: 'js/handlers/drag-select.js' },
  { name: 'js/handlers/click-confirm.js' },
  { name: 'vendor/systemjs-plugin-babel/babel-helpers/get.js' },
  { name: 'js/components/BaseEditor.js' },
  { name: 'js/models/BaseModel.js' },
  { name: 'js/models/Category.js' },
  { name: 'js/models/SizePrice.js' },
  { name: 'js/models/SizeOption.js' },
  { name: 'vendor/signals/dist/signals.min.js' },
  { name: 'vendor/crossroads/dist/crossroads.js' },
  { name: 'vendor/hasher/dist/js/hasher.min.js' },
  { name: 'js/models/StorageSpace.js' },
  { name: 'js/pages/products/colors-and-details.js' },
  { name: 'js/pages/products/categories.js' },
  { name: 'vendor/knockout-select-on-focus/lib/knockout.selectOnFocus.js' },
  { name: 'js/components/CategoryTree.js' },
  { name: 'js/components/CategoryEditor.js' },
  { name: 'js/components/BaseTree.js' },
  { name: 'js/pages/products/catalog.js' },
  { name: 'vendor/JsBarcode/JsBarcode.js' },
  { name: 'vendor/JsBarcode/barcodes/CODE128.js' },
  { name: 'js/pages/me/notifications.js' },
  { name: 'js/pages/dashboard.js' },
  { name: 'js/pages/business/storages.js' },
  { name: 'js/pages/business/shops.js' },
  { name: 'js/models/User.js' },
  { name: 'js/models/Shop.js' },
  { name: 'js/models/Role.js' },
  { name: 'js/models/Customer.js' },
  { name: 'js/models/NotificationGroup.js' },
  { name: 'js/models/Permission.js' },
  { name: 'js/models/Contact.js' },
  { name: 'js/pages/business/orders/show.js' },
  { name: 'js/models/PurchaseOrder.js' },
  { name: 'js/models/Comment.js' },
  { name: 'js/pages/business/orders/new.js' },
  { name: 'js/models/PurchaseOrderProductWrapper.js' },
  { name: 'js/pages/business/orders/list.js' },
  { name: 'js/pages/business/customers.js' },
  { name: 'js/pages/admin/users.js' },
  { name: 'js/pages/admin/settings.js' },
  { name: 'js/pages/admin/roles.js' },
  { name: 'js/pages/admin/permissions.js' },
  { name: 'js/pages/admin/notificationGroups.js' },
  { name: 'js/pages/admin/menu.js' },
  { name: 'js/models/MenuItem.js' },
  { name: 'js/pages/admin/connections.js' },
  { name: 'vendor/clipboard/dist/clipboard.min.js' },
  { name: 'js/components/ProductEd
Michael Bøcker-Larsen
@mblarsen
Jul 05 2016 02:27
Hmmm.. I think I’m on to something. The [] syntax matches against module names not file paths. Could that be the case? AND you cannot use arithmetics with them e.g. [js/**/*.js] is not equal to [(js/**/*.js)]
Yahoo that was indeed the case. So I rewrite my [(a + b)] to ([a] + [b]) and it works
Michael Bøcker-Larsen
@mblarsen
Jul 05 2016 04:23
Is there a way to see all registered modules runtime?