Commit Graph

867 Commits

Author SHA1 Message Date
Martijn Walraven
5556c85b81 Make Cordova tests pass by not expecting Android SDK prompt 2015-08-26 19:26:45 +02:00
Martijn Walraven
47ff9a13aa Clean up Cordova code in commands.js
- Refactor server options parsing, move it from utils.js to commands.js
- Move remote device warning to CordovaRunner
2015-08-26 19:26:45 +02:00
Sashko Stubailo
863be787ab Fix buildmessage concatenating stack traces 2015-08-10 20:08:52 -07:00
Sashko Stubailo
e8bb6f400d Fix parse-stack tests 2015-08-10 15:01:18 -07:00
Sashko Stubailo
ab4edb1cbf Add package to make test pass 2015-08-06 17:09:26 -07:00
David Greenspan
2c36e9efb0 Oops, commit missing files from self-test app 2015-08-06 16:49:27 -07:00
David Greenspan
67b9da63ad Throw error if package is prodOnly and debugOnly
With self-test.
2015-08-06 16:49:26 -07:00
David Greenspan
a63dc1f5c2 Support prodOnly in addition to debugOnly
It's very useful to be able to include code only in production.  It's
useful for React integration, but presumably also for many apps.

* Add prodOnly boolean flag alongside debugOnly in Package.describe

* Packages the set prodOnly to true auto-depend on isobuild:prod-only
  (making them error in the old tool where prodOnly isn't supported)

* The `includeDebug` boolean build option is replaced by a string
  named buildMode, which can be 'development' or 'production', just
  like minifyMode.

Tested by self-test.
2015-08-06 16:49:26 -07:00
Sashko Stubailo
a315eca4d7 Fix test and parse stack 2015-08-06 16:41:19 -07:00
Sashko Stubailo
ff79737c81 Add DDP dep to package 2015-08-06 16:41:19 -07:00
Sashko Stubailo
0c2e76d780 Add package dep to linting app 2015-08-06 16:41:19 -07:00
Slava Kim
3d2282d9ad fix imports for tests for tool-testing 2015-08-06 16:39:01 -07:00
Slava Kim
39d8aef3d9 move files into console/ tool-testing/ 2015-08-06 16:39:00 -07:00
Sashko Stubailo
90f36cc3eb Fix the hot code push tests by adding packages 2015-08-06 16:20:08 -07:00
Sashko Stubailo
3403b4c77f Fix test that used session 2015-08-06 16:20:08 -07:00
Slava Kim
f49de5b9ac Move files connecting to Meteor-provided services
to a separate folder
2015-08-06 16:00:39 -07:00
Slava Kim
a1f54a54ae Fix tests missing the blaze packages 2015-08-06 14:11:12 -07:00
Sashko Stubailo
e237c9890c Remove versions file 2015-08-05 15:17:18 -07:00
Sashko Stubailo
a50095b2a6 Remove lots of mentions of meteor-platform in tests 2015-08-05 15:15:13 -07:00
Slava Kim
6b1bb038d8 Move files into tools/fs 2015-08-03 22:09:28 -07:00
Slava Kim
8a8db83d29 Move files into tools/utils 2015-08-03 20:32:38 -07:00
Slava Kim
36b542f822 move files into tools/packaging 2015-08-03 16:03:15 -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
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
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
Slava Kim
3ddd281d8c Move catalog files into tools/catalog/ 2015-07-30 12:12:07 -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
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
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
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
173bfb7c03 Expose and use wrapped fs/path moduldes in Plugins 2015-07-23 13:10:26 -07:00
David Glasser
6789daf571 Fix stylus bugs and test it
It now runs basically the same caching test as 'less'.

The implementation has been made to be a bit more like 'less'; eg, using
empty string instead of `__app__` to mean the app, and consistently
making pathInPackage not start with a slash.
2015-07-21 18:59:15 -07:00
David Glasser
3e70c7319b Separate coffee and less self-tests 2015-07-21 17:29:22 -07:00
David Glasser
efbe277309 Factor cache logic out of less
And improve the cache (now in MultiFileCachingCompiler) to not rewrite
the whole cache on every operation
2015-07-21 02:49:20 -07:00
David Glasser
f7ee0ba385 new caching-compiler package
Implements caching for single-file compilers (those that don't implement
'import' directives) as a superclass, CachingCompiler.

Used in coffeescript and templating.
2015-07-20 15:29:37 -07:00
Slava Kim
65a04ede0f Rename Minifier interface -> processFilesForBundle
processFilesForTarget -> processFilesForBundle

Since the minifiers work on the output of compilers and linkers, there
is no a good definition of a "target" there. "Bundle" is a general term
that we use to describe the whole compiled app with all the packages.
2015-07-17 14:57:34 -07:00
David Glasser
1bd6c5839e Port coffeescript compiler to ES2015
Next step is factoring out the cache logic into its own package, which
might be done as an ES2015 superclass (though maybe not).
2015-07-17 01:23:52 -07:00
David Glasser
a35fcf4705 Improve coffeescript on-disk cache
Minimize unnecessary reads and writes
2015-07-17 00:45:48 -07:00
David Glasser
9030339a1d Use pre-existing build process for publish's lint 2015-07-16 20:55:29 -07:00
Slava Kim
b5b91562ca meteor publish lints the package and its deps
with tests
2015-07-16 17:50:09 -07:00
David Glasser
2ccaf6a51e Move some files into isobuild subdirectory
The exact borderline between "Isobuild" and "the tool" is a little hazy,
but the idea is that "Isobuild" is the part that you could imagine being
embedded in a non-command-line build tool. It's not about commands or
UI, but just about building packages and apps.

A next step could be moving things that are strictly "the command-line
tool" into their own subdir, and leaving the top directory mostly just
for shared utilities like buildmessage.  (Which could even go in a utils
subdir?)
2015-07-16 15:12:36 -07:00
David Glasser
d9fff9b981 Clean up a test so the next test doesn't fail
For some reason I decided that tests should, on cleanup, stop their
runs *and not wait for the stop to take effect* before running the next
test. Maybe this could be reconsidered but for now, explicitly stop this
run (and wait) so the next test (npm: npm) doesn't fail.
2015-07-16 14:27:48 -07:00
David Glasser
9bda5a5bb1 remove unnecessary metadata files 2015-07-16 14:24:44 -07:00