Commit Graph

4791 Commits

Author SHA1 Message Date
Slava Kim
36b542f822 move files into tools/packaging 2015-08-03 16:03:15 -07:00
Rahul
d45b7bddd0 Grammar
Also, "marketing material" doesn't seem like an accurate description of the page on the Meteor site as it's more of a high level description of the component.
2015-08-01 17:11:55 -07:00
Slava Kim
176b862085 minimal readme for isobuild 2015-08-01 14:54:07 -07:00
Slava Kim
dc91f4ac5c Add more about admin commands in cli readme 2015-08-01 14:18:19 -07:00
Slava Kim
5472331fc5 Move isopackets.js to tool-env
Because it is only used in tool to load packages, so it is sort of a
setup environment file.
2015-08-01 14:13:53 -07:00
Slava Kim
005a880318 A bit more docs for tools 2015-08-01 14:02:37 -07:00
Slava Kim
5c21cc8490 Fix the test to match new error message 2015-08-01 13:01:57 -07:00
Slava Kim
08005bfe0a move runners into folder 'runners' 2015-08-01 13:01:49 -07:00
Slava Kim
e8abced83d fix git call back to ls-tree 2015-08-01 11:57:06 -07:00
Slava Kim
49a7088c30 Create a folder "tool-env"
Contains uninteresting setup and cleanup files
2015-07-31 18:38:25 -07:00
Slava Kim
e5ddbaa244 Fix a couple of bugs introduced in renamings 2015-07-31 17:12:38 -07:00
Slava Kim
35aef2b296 Create 'static-assets' folder in tools
To keep files that are not run by tool itself, but are used by generated code.
2015-07-31 17:12:38 -07:00
Sashko Stubailo
ec33215a7f Static HTML package and templating refactor
1. Make a package called `static-html` that just compiles `<head>` and `<body>` tags inside `.html` files. Much like templating but without the templates.
2. Refactor `templating` to avoid duplicating code.

Split out code that would be shared between `templating` and `static-html` into a new `templating-tools` package. These tools could also be used to simplify implementation of other build plugins, like `simple:markdown-templating`.

This also has the added benefit of moving as much code as humanly possible out of the `templating` package, so that it can be reused in other packages.

1. `templating-tools` package and its README
2. `static-html` package and its README
3. `caching-html-compiler` is not new code; it is just code factored out of the batch plugin version of `templating`, but the README and some comments are new.

1. `tools/tests/static-html.js` tests static html and error handling
2. `templating-tools/html-scanner-tests.js` tests `scanHtmlForTags` and `compileTagsWithSpacebars` together.

All unit tests pass on this branch.
2015-07-31 10:40:23 -07:00
Sashko Stubailo
9406bef642 Remove meteor-platform from tinytest to weed out dependencies 2015-07-30 15:46:20 -07:00
Slava Kim
3ddd281d8c Move catalog files into tools/catalog/ 2015-07-30 12:12:07 -07:00
Slava Kim
cb681e595f Move CLI files into a CLI folder in tools 2015-07-29 23:58:04 -07:00
Sashko Stubailo
8b5399efe2 Fix read-only variables 2015-07-29 16:10:16 -07:00
Sashko Stubailo
27bd92b0a4 Lint parse-stack.js 2015-07-29 12:36:44 -07:00
Sashko Stubailo
c6827b3663 Improve comments about Future stack traces 2015-07-29 12:24:01 -07:00
Sashko Stubailo
286f1e29e2 When the stack has two parts, print both
This makes it much much easier to debug build plugins
2015-07-29 12:06:09 -07:00
Sashko Stubailo
11c632d2f0 Add comment for future work 2015-07-29 11:50:45 -07:00
Sashko Stubailo
617c22a79a Add simple test for parse-stack 2015-07-29 11:50:02 -07:00
Slava Kim
a0fe302aff Merge branch 'release-1.1.1' into devel 2015-07-27 10:36:22 -07:00
Slava Kim
0f1b102eb2 adapt tests for Windows. they still fail but rightfully so 2015-07-24 18:01:51 -07:00
David Glasser
a850cd82f0 Revert test file removed in 9bda5a5bb
This was needed for 'run: update package during run'
2015-07-24 16:19:22 -07:00
David Glasser
e0aa735bd6 fix tests broken by es5-shim 2015-07-24 16:15:00 -07:00
Slava Kim
bde35fc505 adjust test to babel's error reporting, since we don't use esprima for parsing anymore 2015-07-24 15:21:40 -07:00
Slava Kim
ed9310f55b Don't parse package.js in strict mode 2015-07-24 15:21:39 -07:00
David Glasser
122093bc58 On-disk cache for linker.fullLink 2015-07-23 20:33:02 -07:00
David Glasser
97f3781f5a js-analyze should not analyze in strict mode
because this finds errors in things that we already compiled
successfully (eg, using 'package' as a variable name, which iron:core
does).
2015-07-23 20:27:10 -07:00
David Glasser
1e3ad0dddd Display js-analyze errors correctly 2015-07-23 20:26:48 -07:00
Slava Kim
95ae655c4e Expose wrapped fs functions for plugins
Unlike the wrapped files.* functions, files.fsFixPath is closer to fs.*
in API or async/sync and callbacks.
2015-07-23 18:10:27 -07:00
Slava Kim
c51212ed82 Builder should always write a temp file first
To avoid a situation when a file is half-written
2015-07-23 16:35:35 -07:00
Martijn Walraven
45ec8adbcc Merge branch 'npm3-dev-bundle' into devel 2015-07-23 16:12:57 -07:00
Ben Newman
f279c0db7e Install es5-shim by default for new apps.
The es5-shim package can be removed by expert users who do not wish to
support older browsers, or who wish to support older browsers using a
different shim library.

To enable that use case, we do not register a strong dependency on the
es5-shim package in the core meteor package, but we do ensure that
es5-shim loads first when it is installed.
2015-07-23 18:42:57 -04:00
Martijn Walraven
4d6a5fe795 Use console.log instead of Console.debug when cleaning up
For some reason, Console was undefined here…
2015-07-23 15:25:46 -07:00
Ben Newman
bf353fc66e Upgrade escope and use the new API in js-analyze.js. 2015-07-23 16:45:14 -04:00
Ben Newman
da928ba737 Use require("meteor-babel").parse in files.js instead of Esprima.
This removes the last dependency on Esprima from tool code!
2015-07-23 16:45:14 -04:00
Ben Newman
8b9a1f590b Use require("meteor-babel").parse for js-analyze instead of Esprima.
The Babel parser is faster, it has to be installed (unlike Esprima, which
can be removed after a few more changes like this), and better matches the
parsing we do for ECMAScript transpilation.
2015-07-23 16:45:14 -04:00
Slava Kim
173bfb7c03 Expose and use wrapped fs/path moduldes in Plugins 2015-07-23 13:10:26 -07:00
Slava Kim
d5586d0126 Disable in-place builder on Windows 2015-07-23 12:07:18 -07:00
Slava Kim
8975ae6a34 Write file after removing the old directory on file rewrite 2015-07-23 11:57:53 -07:00
David Glasser
3da4e611c9 Get JSDoc working again
- Upgrade to a newer (unreleased) version which supports
     function k({} = {}) {}
  and doesn't also crash

- Filter out boring warnings

- Don't use ES7 syntax that JSDoc doesn't support in one file that
  has JSDoc in it
2015-07-22 22:29:08 -07:00
David Glasser
abce1797da fix bad jsdoc 2015-07-22 22:06:38 -07:00
David Glasser
cdd71b8312 fewer negatives in canWriteLegacyBuilds 2015-07-22 21:48:07 -07:00
David Glasser
d4a8c491c1 some more comments on compiler-plugin.js 2015-07-22 21:40:52 -07:00
Martijn Walraven
12366fc4dc Remove now unnecessary runLog calls in meteor-npm.js 2015-07-22 21:07:15 -07:00
David Glasser
cab2f6a237 Fix crash on publish with no linters 2015-07-22 20:56:24 -07:00
David Glasser
7b0c4f1950 Stop old tools from taking isopack-2-only versions
I thought we could rely on isobuild:compiler-plugin for this, but it's
not good enough: a package could have dependencies that are satisfiable
without choosing a dependency version with a compiler plugin, yet choose
that dependency version at publish time and become ineligble for legacy
builds.
2015-07-22 20:54:07 -07:00
Martijn Walraven
02cfef50d6 Fix runNpmCommand on Windows 2015-07-22 19:12:37 -07:00