| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
We thought we already did this in e24b501, but instead we would
basically get random versions as npm would pick some version already
available from whatever was already downloaded.
New attempt, this time being very explicit that we want the version that
has been tagged as "latest".
|
|
|
|
|
| |
This script only has one purpose now, let the name reflect that. It
converts to CommonJS for NPM.
|
|
|
|
|
| |
These were used by the, now removed, legacy transpilation steps, which
were removed in commit 890cff921d78835762fbdcfef862571c52cb3035.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
We no longer support Internet Explorer so we can now require that
browsers support modules.
Some conversion to commonjs still remains for nodejs.
|
| |
|
| |
|
|
|
|
|
|
| |
The ability to use Sauce Labs for pull requests has now stopped working,
as Travis warned about several years ago. Instead run our tests directly
on GitHub on their various virtual machines.
|
|
|
|
|
|
|
| |
There has been a lot of renaming and restructuring in babel, so we need
to modify our code to handle the latest version. We also need to adjust
the way we build our babel worker as babel itself no longer runs in older
browsers such as Internet Explorer.
|
|
|
|
|
| |
Let's make sure we get the latest features and fixes for all the
tools we are using.
|
|
|
|
|
| |
They do not have a .js suffix so eslint isn't finding them
automatically.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Travis uses a so ancient version of npm that it doesn't support
'prepare', so we have to continue using 'prepublish' for now.
|
| |
|
|
|
|
|
|
|
| |
Switch over to explicitly listing what we want to include, rather
than listing what we don't want to include. There is too much risk
of getting random junk from your working copy otherwise. This should
also hopefully complain if something is missing.
|
|
|
|
|
|
| |
This runs our code in the same manner as it would be used if loaded
directly in the browser. Includes the same kind of fallback for older
browsers.
|
|
|
|
|
| |
This frees us from manual imports, and makes things less magical
as those aren't ES modules even if the code suggest that the are.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
v1.0.0-testing.2 is the "make sure all of our autopublishing works
properly" release. Assuming everything goes well, it should shortly be
followed by v1.0.0 proper.
|
|
|
|
|
| |
This commit sets up Travis to publish to NPM on tags, to the
@novnc/novnc repository.
|
|
|
|
|
|
|
|
|
| |
This updates the .npmignore file to ignore some new files that were
recently added, and to keep the `core` directory, so that noVNC can be
used as an ES6 module from NPM.
This also updates package.json to clean when generating lib files in the
`prepare` phase (which has replaced the `prepublish` phase).
|
|
|
|
|
| |
We move the files in core/ up one directory level so we need to adjust
the imports from vendor libraries.
|
|
|
|
| |
It's spelled "MPL-2.0" according to https://spdx.org/licenses/.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
This commit makes the ES6 module loader polyfill use Web Workers,
so that Babel doesn't block the browser from animating. It also
uses localStorage to cache the compiled results, only recompiling
on source changes, so it makes loading faster while developing noVNC.
This includes a vendored copy of the ES6 module loader, modified as
described above.
|
|
|
|
|
|
|
|
|
|
|
| |
This updates the tests to work with the new structure, and removes the
old `utils/run_from_console.js` files in favor of just using Karma
directly. The Karma debug page now displays the normal mocha HTML, so
we can use that instead of the HTML generation functionality of the old
test runner.
Note that PhantomJS does not work at the moment (PhantomJS 1.5 should
make it possible to test on PhantomJS again).
|
|
|
|
|
|
| |
The only remaining user of WebUtil.load_scripts was for loading
localisation. Instead, we now load the localization information
over XHR as a JSON blob.
|
|
|
|
|
|
|
| |
This changes around `utils/use_require.js` to be able to generate any
of AMD (RequireJS), CommonJS, SystemJS, or UMD modules. The three
former also include support for translating `vnc.html`, producing a full
"app" version of noVNC.
|
|
|
|
|
|
|
|
|
| |
This commit introduces the "Browser ES Module Loader" polyfill
to support developing with native ES6 modules, without any compilation
step (files are passed through Babel in the browser). This should not
be used in production -- a pre-compiled version passed through babel
ahead of time (as produced by the `npm install` hook or
`utils/use_require.js`) should be used instead.
|
|
|
|
|
| |
This commit vendors a converted, stripped-down version of Pako which
uses ES6 modules instead of CommonJS modules.
|
| |
|
|
|
|
| |
This allows the same workflow as most other projects for translations.
|
| |
|
|
|
|
|
|
| |
This commit switches over to use PhantomJS 2.x, bringing in a whole host
of improvements (including `Function#bind`, so we can remove the
`Function#bind` shim in core/util.js).
|
|
|
|
|
|
| |
This commit restructures noVNC, splitting it into the core directory
and the app directory, with the former containing core noVNC parts,
and the latter containing parts specific to the application.
|
|
|
|
|
|
|
| |
Fixes version number mismatch (also adds more detailed instructions
for releasing).
Fixes #628
|
|\
| |
| | |
slip in PATH for 'npm test' as not everyone has karma
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
So people can follow the 'unit tests' instructions, we need
to make sure PATH includes the karma bin directory otherwise
we see the following:
----
aclouter@stevemcqueen:/usr/src/aten-ikvm/noVNC$ npm test
> noVNC@0.5.0 test /usr/src/aten-ikvm/noVNC
> karma start karma.conf.js
sh: 1: karma: not found
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0
----
|
| |
| |
| |
| | |
This commit updates the test dependencies to the latest versions.
|
|/
|
|
|
|
|
| |
The current noVNC release is 0.5.1, but package.json still
says version 0.5.0. This fixes that.
Fixes #441
|
|
|
|
|
|
|
|
|
|
| |
Previously, we were using the karma-sinon-chai package to
provide sinon-chai to karma. This used an older version of
sinon-chai, and looks to be no longer maintained (it's been
a month since sinon-chai was updated). A new package,
karma-sinon-chai-latest, is now used. This package uses the
latest version of sinon-chai and sinon, just like karma-chai
uses the latest version of chai.
|
|
This adds support for Travis CI and SauceLabs
testing. Testing on SauceLabs in done via
the Karma test runner. Note that encrypted
Sauce username and access key values need
to be inserted into .travis.yml as global
environment variables. Additionally, the
local test runner (which is still useful
for debugging tests and code) was updated
to reflect that the 'node_modules' folder
now gets placed in the root directory.
|