aboutsummaryrefslogtreecommitdiffstats
path: root/share/qbs/modules/nodejs
Commit message (Collapse)AuthorAgeFilesLines
* Rename PathProbe.pathPrefixes and PathProbe.platformPaths propertiesIvan Komissarov2018-12-101-2/+2
| | | | | | | | | The naming was misleading - prefixes had the same logical meaning as platformPaths, despite the fact completely different PathProbe.pathSuffixes property exists. Change-Id: Ie593b5e03d27de4f8aafed821a3b37cc1b3b0b9e Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Remove the base module import from shared imports and modulesJoerg Bornemann2018-06-221-1/+0
| | | | | Change-Id: I5270e033dc41b5bd76a417099514c69cc073008b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Make Module.setup{Build,Run}Environment first-class citizensChristian Kandeler2017-11-201-3/+3
| | | | | | | | | | | They did not have the project and product variables available, and they accessed module properties in a way that made it look as if they were normal properties rather than scripts, which was misleading. Now everything works the same as in Rule scripts and JS commands. Task-number: QBS-744 Change-Id: I11d70876185d528282a56747747dd8310a77fbc4 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Fix nodejs/typescript probes when the Node interpreter is not in PATHJake Petroules2017-06-142-2/+6
| | | | | Change-Id: I9302a631450a43c25b5cf9bac6b5299f2b728683 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Deprecate loadFile and loadExtension in favor of requireJake Petroules2017-02-151-1/+1
| | | | | | | | | | | | This is more in line with mainstream JavaScript (especially node.js) which uses the CommonJS/RequireJS scheme for loading external modules. [ChangeLog] The loadFile and loadExtension functions are deprecated in favor of the new require function, which accepts arguments of either form accepted by the deprecated functions. Change-Id: Icc00aa3eb7c136a5be787f28ef38435e4ce261bb Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Change the default base directory for entries of the "files" listChristian Kandeler2016-12-231-1/+5
| | | | | | | | | | | | | | | It used to be the product source directory, but that is unintuitive and usually not what the user wants when groups are pulled in from other files such as modules. Also add documentation for this, which was missing altogether. [ChangeLog] The base directory for source files changed from the product source directory to the parent directory of the file where the files are listed. Task-number: QBS-849 Change-Id: Ia424eab52adba8b3aed1e482a0e081fa35fb6429 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Fix the input values of some ProbesChristian Kandeler2016-08-311-2/+2
| | | | | | | The value "undefined" could get into input arrays. Change-Id: I4f2fb6b076b0d11cd56717d16f9dc6be41bed252 Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Replace 'the Qt build suite' with 'Qbs' in copyright notices.Jake Petroules2016-06-062-2/+2
| | | | | | Change-Id: I885d94bb14b325dc36767a840ebdb0be1fb59dd2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Fix typescript module to work with newer TypeScript versions.Jake Petroules2016-03-241-0/+2
| | | | | Change-Id: I068413c66349037da82c97d67cdff65b5846bf90 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Overhaul Probe handling for node.js/TypeScript.Jake Petroules2015-11-232-1/+64
| | | | | Change-Id: I61964212856f0ebd78bdca621ebc13f9f0654e8b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Move setup[Build|Run]Environment global functions into a real extension.Jake Petroules2015-11-191-1/+2
| | | | | | | | | | | | | In addition to simply being a better design, this resolves a bug causing getEnv to randomly not be found. With a current development branch, the problem became more prevalent and much more frequently reproducible, although no obvious cause was apparent. Repeated tests indicate that this change resolves the issue permanently. Task-number: QBS-649 Task-number: QBS-795 Change-Id: I4b597d99fa160a6c61a0bb025766edb662f97c48 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Add a node.js probe and use it in the modules.Jake Petroules2015-07-241-0/+25
| | | | | Change-Id: Ie47951e621702d387ca6274cd74e6c5858f49d16 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Fix several issues with path handling in the TypeScript module.Jake Petroules2015-06-291-1/+18
| | | | | | | | | | | | | | | | | | | | | | - QBS-412 comment is removed and replaced with the appropriate solution. - The intermediate directory is no longer a concatenation of absolute paths, which was broken on Windows due to the colon character. - Properly return zero artifacts from a product which has no TypeScript source files (avoids a "null pointer" dereference). - Document the convolution around what's now referred to as the "compiledIntermediateDir", which is basically a workaround for QBS-5. - Try to preserve directory structure of input TypeScript/js files. - Adapt autotests. There are still some issues, namely that the TypeScript compiler builds external modules from source if it finds them in the path, making it non-trivial to preempt the list of output files. The best solution might be to patch the TypeScript compiler itself (upstream, of course) to print a listing of output files that will be generated for a particular invocation, in combination with --noEmit (dry run). Change-Id: I6be47c0eed72a6196880264d0eb18bad9eea1ea9 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* add missing license headersJoerg Bornemann2015-04-151-0/+30
| | | | | | Change-Id: I49d8886b0f9811fb9a8b6e33cb7974534b4a1b35 Task-number: QBS-750 Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Allow Node.js applications to run without -p and fix the autotest.Jake Petroules2014-09-231-1/+1
| | | | | Change-Id: I9b48f997840fe8fe8bac6cf305399c1bf6e7c714 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Fix run environment setup.Jake Petroules2014-08-281-3/+1
| | | | | | | | | | | | | | | Now Darwin platforms get the same DYLD_* environment variables set as Xcode (plus Qt) so applications can be developed/tested without embedding bundles. This brings equivalent behavior to what already exists on Windows. This also fixes a regression introduced in 5877328c4dacb1283408083cb3538ea5bc46eae5 with the Node.js module, causing the working directory to be inappropriately changed by the run command. Change-Id: Ic2904f105378eb61d9236367329a2f9c8771a7d3 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* use {input|output}.fileName where appropriateJoerg Bornemann2014-05-201-1/+1
| | | | | | Change-Id: I793210ba6eeeb3a15e78282e14b8e5ad6459c078 Reviewed-by: Jake Petroules <jake.petroules@petroules.com> Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* Add support for running Node.js using qbs run.Jake Petroules2014-04-151-0/+56
Change-Id: I98a38e49cbea57d44b787eec12c2cb5f2e5cd601 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>