laxarjs / grunt-init-laxar-application Goto Github PK
View Code? Open in Web Editor NEWCreate a LaxarJS application with grunt-init
License: MIT License
Create a LaxarJS application with grunt-init
License: MIT License
Currently the grunt-laxar
version inside the package.json
file created by this template points to ~0.5.2. Unfortunately this version does not yet work properly on Windows.
The latest version is 0.7.0 and contains some fixes that address this problem so we should use that one (or better: any 0.x).
See #35, #36
The index.html and the debug.html should have the application title in the title tag.
The modules trunk8
, bootstrap-tooltip
and bootstrap-affix
used by LaxarJS UiKit need jquery before being loaded:
Shim config for the application is missing, so these modules may fail randomly (in debug mode only).
The default Gruntfile and application.js should support embedded widget specifications as well as embedded templates.
See LaxarJS/laxar#36.
Since the template overhaul (v0.3.0
) all resource watching is tied to the generation of directory listings, and only covers listed files. There should be separate watcher configuration for libraries and application artifacts.
The application template (not the generated app) is missing a LICENSE
We need to add an exclusion for *.scss files so that changes to them do not trigger an application live reload (instead, only their generated CSS will be refreshed by the browser).
We should add bower_components
to the ignore list.
Currently, the index.html uses the source-version of RequireJS. We should minify and prepend it to the optimized_init.js.
Due to the changes introduced by LaxarJS/laxar-uikit#73 the require_config.js
needs to be adjusted. Within the paths
configuration the following
paths: {
// ...
jquery_ui: 'jquery_ui',
// ...
}
needs to be changed to
paths: {
// ...
jquery_ui: 'jquery_ui/ui',
// ...
}
The example widgets that are included in the application template all have a set of tests, just to demonstrate how that works. However, two of the widgets are still missing their test...
The application template needs to be modified because of:
Also, the latest ^1.0.0-alpha.*
LaxarJS artifacts should be specified as dependencies in the bower- and npm-configuration.
These are mostly breaking changes, so we need to branch off master-0.x
before implementing them.
The JSON validator included in the core module of LaxarJS will be refactored and use jjv to do the actual validation jobs (LaxarJS/laxar#31). This requires the addition of jjv
and jjve
(message generator for jjv results) as path entries to the require_config.js
.
The following embedContents entry is missing for bower_components
'bower_components/laxar-*-control/control.json'
Make it easy for developers to follow page speed advice:
https://developers.google.com/speed/pagespeed/module/filter-css-to-head
Because PhantomJS (at least the version used by grunt-laxar
) is missing Function.prototype.bind
, we still need to add es5-shim/es5-shim
to the deps
in the require_config.js
.
The release branch is still missing those files. Add them โฆ
Use better labels and icons
New users should see a visibly working application the first time that they visit the development server of a newly created application, so that they can learn by example and tinker around.
Also, this helps to QA future changes to the template and to laxar/grunt-laxar by quickly producing a fresh app for testing.
The application.js closure does not use strict mode:
window.laxar = ( function() {
'use strict'; // MISSING
// ...
As an example assert
is allowed, which isn't globally available but needs to be imported.
The new event_bus.timeout_ms
configuration setting that was added with LaxarJS/laxar#140 allows to select appropriate values depending on the application mode (development, production).
We should set a short timeout for development, and a large timeout for production.
The template uses a pretty outdated grunt-laxar
.
We should upgrade the LaxarJS application template to reflect the following changes:
This:
shim: {
...
'json-patch': {
exports: 'jsonpatch'
},
...
}
paths: {
...
// LaxarJS Patterns:
'json-patch': '../bower_components/fast-json-patch/src/json-patch-duplex',
...
}
Link in template must be:
https://github.com/LaxarJS/laxar#create-your-own-laxarjs-widget
The changes for 1.0.0-beta.0 broke the auto-configuration for widgets.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.