Граф коммитов

54 Коммитов

Автор SHA1 Сообщение Дата
Casey Williams 5a1c8c6af3 Bug 1336556 - Add a standalone eslint task
Installs eslint explicitly to avoid warning messages on initial
node_modules install.  Adds a standalone eslint task via `yarn run
lint`.
2017-03-29 22:07:24 +01:00
Casey Williams c19bfb2da9 Bug 1336556 - Cache angular partials with webpack
Load the contents of the various angular partials into the template
cache at build time so that they don't need to be built separately.
2017-03-29 22:07:24 +01:00
Casey Williams afa7d63d1d Bug 1336556 - Replace grunt build system with neutrino/webpack 2017-03-29 22:07:24 +01:00
Casey Williams 11ca87fb34 Bug 1336556 - Update eslint to v3.17.1
Updates eslint in advance of grunt -> webpack switch; Fixes some
resulting newly detected indentation issues.
2017-03-29 22:07:24 +01:00
Ed Morley a1bf9e19e2 Bug 1343624 - Make package.json scripts work with --no-bin-symlinks
Node packages that are intended to be called from the command line can
request that symlinks be added to `node_modules/.bin/` as part of their
installation. When `npm/yarn run` is used, it automatically adds that
directory to the PATH, so commands listed in `scripts` in `package.json`
can normally be specified without the full filepath.

However when npm/yarn is used inside a Linux Vagrant instance running on
a Windows host, even though the guest OS supports symlinks, errors will
occur if symlinks are created in a directory that is shared with the
host using Virtualbox shared folders.

In this case, the workaround is to prevent the creation of symlinks
using `--no-bin-links`. However unfortunately instead of having a
sensible fallback (eg a shell script that acts like a symlink) instead
no files are created in `node_modules/.bin/` at all.

As such, we have to use full paths in `package.json` after all.
2017-03-13 15:27:46 +00:00
Ed Morley 245696ef53 Bug 1343624 - Add `npm run lint` as an alias of `grunt checkjs`
For the same reason as the previous commit.

Ideally we'd remove the grunt abstraction entirely and call eslint from
the `lint` command, but we might as well save that to the Neutrino PR.
2017-03-13 15:27:46 +00:00
Ed Morley 21abe6ed75 Bug 1343624 - Add `npm run build` as an alias of `grunt build`
Routing commands via npm/yarn is preferred, since it avoids
having to do global installs of grunt-cli, which simplifies contributor
setup, and means less effort when we switch to Yarn (since it requires
manual PATH setup for globally installed packages).
2017-03-13 15:27:46 +00:00
Ed Morley e1d9a10e71 Bug 1343932 - Update nodejs used on Heroku/Travis from 7.7.1 to 7.7.2
Vagrant uses the latest 7.x.x release, which is now 7.7.2. To reduce
differences between environments whilst the Neutrino/webpack work is
stabilised, it makes sense to update Heroku/Travis again too.
2017-03-10 11:04:38 +00:00
Ed Morley 35ff05e23f Bug 1343932 - Update nodejs used on Heroku/Travis from 6.2.0 to 7.7.1
The npm shrinkwrap was also updated since new nodejs versions come with
new npm, and the format for the shrinkwrap sometimes changes:
https://treeherder.readthedocs.io/common_tasks.html#updating-packages-in-package-json
2017-03-07 17:02:19 +00:00
Casey Williams 68b4753353 Bug 1242905 - Use ngreact-test-utils for ngreact tests
Introduces the ngreact-test-utils npm package to supply reusable
compile() and simulate() functions for testing ngreact components. This
requires browserify, which is now applied to tests in
tests/ui/unit/react only.
2017-01-10 09:36:54 -08:00
James Graham b379a10759 Bug 1315933 - Update npm dependencies, r=emorley
This is required because the older version of grunt-angular-templates
was hanging with component templates. In order to upgrade everything it
was also necessary to switch from grunt-cache-busting, which is no longer
maintained, to grunt-cache-bust, which is.
2016-11-08 12:43:14 +00:00
William Lachance 83b079c682 Bug 1297722 - Use babel to transpile es6 code to es5
The uglify step of the grunt build won't work otherwise. Not crazy about the
way I did this, but I couldn't find any better way offhand.
2016-08-24 14:42:15 -04:00
Ed Morley 7328cc20d8 Bug 1272207 - Update from nodejs 5.3.0 to 6.2.0 on Travis/Heroku
Since it includes improvements to npm as well as nodejs security fixes.
2016-05-26 15:47:12 +01:00
Ed Morley 901a455777 Bug 1274054 - Move minimist from dependencies to devDependencies
Since it's only required when developing locally, so doesn't need to be
installed in production.
2016-05-26 15:47:12 +01:00
crosscent 5053a342f0 Bug 1274054 - Don't require a local.conf.js for local development 2016-05-20 08:32:29 -04:00
Ed Morley 86b636650b Bug 1237244 - Update to karma v0.13.19 to support new socket.io API
socket.io released backwards incompatible API changes in a minor version
update, causing failures during our ui-tests travis run. See:
https://github.com/socketio/socket.io/issues/2368

However the latest version of Karma has added support for it:
https://github.com/karma-runner/karma/issues/1782
2016-01-06 13:56:59 +00:00
Ed Morley 5880601144 Bug 1234897 - Pin the version of nodejs used on Heroku
https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version
2015-12-23 19:07:26 +00:00
Ed Morley 830d47924b Bug 1220479 - Update grunt-eslint to 17.3.1 and eslint to 1.8.0
The move to eslint 1.x changes the way rules are managed, see:
http://eslint.org/docs/user-guide/migrating-to-1.0.0

There are slightly fewer rules enabled with "eslint:recommended" than
were by default before, but we'll enable more non-default rules later.
2015-11-06 18:01:25 +00:00
Ed Morley de1ab1ef52 Remove stray whitespace from package.json 2015-11-01 23:32:58 +00:00
Ed Morley 99adcdac0e Bug 1210738 - Declare the license type in package.json
To suppress the warning shown when using `npm install`.
2015-10-06 13:16:04 +01:00
Ed Morley f4e915bdbe Bug 1201523 - Add grunt-cli to local dependencies list
Normally grunt-cli (a wrapper around grunt to allow it to be easily run
from the command line) would be installed globally, so that it is on the
PATH. However to save having to do this on prod/Heroku/Travis, we
install it locally - and it will then be available via:
`./node_modules/.bin/grunt`
...or else via just `grunt`, if referenced inside a package.json scripts
section.
2015-09-30 17:53:08 +01:00
Ed Morley 440e929916 Bug 1206670 - Update karma to v0.13.10 and karma-jasmine to v0.3.6
As of karma-jasmine 0.3.0, the jasmine library is not bundled with
karma-jasmine, and so jasmine-core has to be installed separately.

jasmine-jquery also has to be updated, since the old version was not
compatible. A duplicate jasmine-jquery file that was outside of the
tests vendor directory has also been removed.
2015-09-22 19:09:16 +01:00
Ed Morley 415c343b80 Bug 1206670 - Update grunt-html-angular-validate to v0.5.2
It's not yet used in Travis, but we'll hopefully start using it in the
future.
2015-09-22 19:09:15 +01:00
Ed Morley 32e3e908eb Bug 1206670 - Pin packages in devDependencies to explicit versions
To avoid Travis failing if new package authors don't follow semver and
break things in a point release.

This is effectively a no-op, compared to a clean install using the prior
package.json.
2015-09-22 19:09:14 +01:00
Ed Morley 9735762568 Bug 1206670 - Remove karma-cli from devDependencies
The karma package already comes with a wrapper script, so there's no
need to install another locally. The intended use for karma-cli is to
install it globally, which cannot be done from package.json.
2015-09-22 19:09:13 +01:00
Ed Morley 9ce4794d0e Bug 1206670 - Update dependencies for grunt build to latest versions
Package                      Current   Latest
grunt-contrib-cssmin          0.12.3   0.14.0
grunt-contrib-copy             0.8.0    0.8.1
grunt-contrib-uglify           0.9.1    0.9.2
grunt-usemin                   3.0.0    3.1.1
2015-09-22 19:09:12 +01:00
Ed Morley 52a99d7a78 Bug 1206108 - Pin load-grunt-tasks to v3.2.0
The previous value of "^3.2.0" is equivalent to "4 > version >= 3.2.0".
We should pin to a specific version to stop deployments breaking if
a new release doesn't behave as expected. See:
https://nodesource.com/blog/semver-tilde-and-caret

We should also do the same for devDependencies, but let's do that in
another bug, since it doesn't affect production.
2015-09-19 02:09:59 +01:00
Ed Morley d5e7b5ca49 Bug 1206108 - Separate `grunt build` npm packages from those for testing
To run grunt build as part of deploy, we're going to need to npm install
the dependencies required for it. However we do not need to install the
testing related packages, so by splitting the two between `dependencies`
and `devDependencies` we'll have more control. eg:
`npm install --production` will only install those under `dependencies`.

See:
https://docs.npmjs.com/files/package.json#dependencies
https://docs.npmjs.com/files/package.json#devdependencies
https://docs.npmjs.com/misc/config#production
2015-09-19 02:09:57 +01:00
William Lachance 658927bdf7 Bug 1183367 - Add a grunt target to run eslint on JS frontend 2015-07-14 13:40:18 -04:00
Jonathan French 92c346a18c Bug 1170330 - Update treeherder package.json post repo-merge 2015-06-01 21:12:59 -04:00
Ed Morley ee41133209 Bug 1145083 - Update grunt node packages & pin to specific versions
We were previously using '~' (which allows for N.N.*) and '^' (which
allows for N.*.*) for the grunt node package version numbers. This meant
that each person running grunt build could end up with different output,
since the versions were not pinned. Instead, all packages are now pinned
to a specific version - the latest currently available (which in many
cases is not far off the version someone running |npm install| in a
clean repo would have gotten anyway, due to the use of '^' and '~').
2015-05-20 17:18:35 +01:00
Ed Morley f2f362e430 Bug 1145083 - Remove unused grunt-filerev node package
We switched to grunt-cache-busting some time ago and so no longer use
grunt-filerev.
2015-05-20 17:18:34 +01:00
Ed Morley 2efb703f16 Bug 1056877 - Update UI path references after directory moves
As part of merging the UI repo into this one, the following directory
moves were performed:
  webapp/app/                   ->  ui/
  webapp/test/                  ->  tests/ui/
  webapp/config/                ->  tests/ui/config/
  webapp/scripts/               ->  tests/ui/scripts/
  webapp/scripts/web-server.js  ->  web-server.js
2015-05-20 16:55:55 +01:00
Ed Morley da294ba761 Bug 1056877 - Stop using/referring to the separate treeherder-ui repo
Since it has now been merged into this one.
2015-05-20 16:55:55 +01:00
mdoglio 668d50c268 Bug 1096257 - pin karma-jasmine version 2014-11-10 13:52:41 +00:00
Ed Morley 3597e08d3e Bug 1080419 - Add an optional grunt HTML validator
Run using |grunt htmlangular|
2014-10-23 15:05:37 +01:00
Ed Morley 6252e0748d Bug 1080419 - Put devDependencies in alphabetical order
This means if |npm install foo --save-dev| is now used in the future,
the diff will be much clearer, since it won't also change the order of
existing entries.
2014-10-09 10:51:26 +01:00
Cameron Dawson e017e215bc bug 1067961- minifying and versioning templates 2014-09-18 16:00:49 -07:00
Cameron Dawson 55035c5857 bug 1067961 - add versioning to css and js assets 2014-09-18 11:56:50 -07:00
Ed Morley f67f77b2a1 Bug 1063483 - Define repository in package.json to suppress npm warning 2014-09-05 13:20:50 +01:00
George Miroshnykov 2dd59c14a1 package.json: remove unnecessary `./node_modules/.bin` from `scripts.test`
`./node_modules/.bin` is automatically added to PATH when running npm commands,
so there's no need to explicitly mention it.
2014-05-20 17:24:25 +03:00
Jonathan Eads d0d6b5ff3d merged master 2014-04-25 11:04:25 -07:00
Jonathan Eads a2431b6c4a added clean step 2014-04-25 10:55:13 -07:00
Jonathan Eads 562fc9a0c8 cleaned up 2014-04-24 18:17:56 -07:00
Jonathan Eads 3e9261092c standardized angularjs dependency ingention syntax to work with minification 2014-04-24 18:10:30 -07:00
mdoglio 330b5b89cd improve layout and usability of the simial jobs plugin 2014-04-24 13:26:01 +02:00
Jonathan Eads 1560b80dc3 added grunt build for js/css 2014-04-23 13:34:15 -07:00
Cameron Dawson f000fbefa7 fix package.json 2014-04-10 15:26:41 -07:00
Cameron Dawson c1ccab4b44 resultset model fixes and passing unit tests 2014-04-10 15:01:00 -07:00
Cameron Dawson 92b8396955 another 2014-04-08 11:21:55 -07:00