Commit Graph

6150 Commits

Author SHA1 Message Date
Ben Newman
e804c00e97 Merge pull request #8037 from mitar/headless
Respect METEOR_HEADLESS environment variable.
2016-12-01 10:18:52 -05:00
Ben Newman
3dc623cb8f Merge pull request #8120 from hwillson/issue-5626-proper
Help address the Unicode asset filename issues discussed in #5626
2016-12-01 09:40:43 -05:00
Hugh Willson
4a10a1b26b Making sure asset filenames are Unicode normalized when loaded (to help address issue #5626). 2016-11-30 20:31:37 -05:00
Hugh Willson
c55d8cca76 Revert "Revert "Merge pull request #7963 from hwillson/issue-5626" (#8118)"
This reverts commit 5754f8ef3e.
2016-11-30 20:28:21 -05:00
Ben Newman
7c148b2a4e Merge branch 'devel' into run-reify-before-babel 2016-11-30 19:51:05 -05:00
Ben Newman
5754f8ef3e Revert "Merge pull request #7963 from hwillson/issue-5626" (#8118)
This reverts commit 11ce2f7bbc, reversing
changes made to dfde4146f7.
2016-11-30 19:48:19 -05:00
Mitar
fca0dccd20 Parse JSON for the flag. 2016-11-30 03:18:52 -08:00
Ben Newman
11ce2f7bbc Merge pull request #7963 from hwillson/issue-5626
Load `program.json` using the Unicode Normalization Form of the loaded JSON string
2016-11-29 18:22:00 -05:00
Ben Newman
dfde4146f7 Merge pull request #8104 from abernix/feature/8034-improve-compiler-error
Improve build plugin error when asset is added with empty contents
2016-11-29 18:12:57 -05:00
Ben Newman
ac86594346 Install npm dependencies automatically when creating apps.
Although I have said I do not think Meteor should run `npm install`
automatically to update application node_modules, my real concern is that
Meteor should not interfere with your preferred node_modules-related
workflow, be it npm, npm-shinkwrap.json, yarn, yarn.lock, checking your
node_modules into git/mercurial/cvs, or whatever other scheme you have.

Automatically installing node_modules from the default package.json file
when a new app is created will eliminate real confusion, and should not
interfere with any workflows, because there is no opportunity to establish
another workflow before Meteor runs `npm install` the very first time.
2016-11-28 12:11:59 -05:00
Ben Newman
c83094ae26 Tolerate module["import"] properties in findImportedModuleIdentifiers. 2016-11-26 13:07:27 -05:00
Jesse Rosenberger
487b41fd75 Improve compiler error when asset is added with empty contents
While not a Meteor bug, this makes the error message more helpful when a compiler tries adding an asset without data, as demonstrated in meteor/meteor#8034.

Thanks to suggestion by @sdarnell for this.

Closes meteor/meteor#8034
2016-11-24 16:20:46 +02:00
Rhywden
b029732a11 Fix for console output in PowerShell on Win10
See https://github.com/meteor/meteor/issues/6785

Basically, 
```
new Array(249).join('\b')
```
is not a good idea for a carriage return. Code has been tested with CMD, PowerShell and PowerShell in Legacy Mode and seems to solve the issue.
2016-11-21 20:34:11 +01:00
Ben Newman
3120b9324d Update modules test app to Meteor 1.4.2.3. 2016-11-18 11:01:47 -05:00
Ben Newman
f4abbccf45 Merge branch 'master' into devel 2016-11-17 16:23:04 -05:00
David Burles
00c6681ae4 remove inline eslint rules 2016-11-17 16:21:40 -05:00
David Burles
76f85113f1 remove validation test 2016-11-17 16:21:40 -05:00
David Burles
9ac8df351f remove url validation 2016-11-17 16:21:40 -05:00
David Burles
180ce53633 more concise export 2016-11-17 16:21:40 -05:00
David Burles
44d3181d1c code style changes for skel-full 2016-11-17 16:21:40 -05:00
Ben Newman
1b855047ae Limit InputFile#findControlFile to package source root directory.
This is an improvement that I noticed while investigating the
feasibility of fixing #8068.
2016-11-17 13:17:49 -05:00
Ben Newman
fc9c56a73e Improve InputFile#resolve. 2016-11-17 13:12:27 -05:00
Ben Newman
4cf06c37a6 Avoid global/method name ambiguity in InputFile#require. 2016-11-17 13:12:27 -05:00
David Burles
dc1bdc3a56 remove inline eslint rules 2016-11-16 11:22:45 -05:00
David Burles
851b6c5ae2 remove validation test 2016-11-16 11:22:45 -05:00
David Burles
311efd58cb remove url validation 2016-11-16 11:22:45 -05:00
David Burles
06fb2fbfb9 more concise export 2016-11-16 11:22:45 -05:00
David Burles
52b815cf33 code style changes for skel-full 2016-11-16 11:22:45 -05:00
Ben Newman
24b0ea9fdd Bump compiler/linker/bundler salts to trigger fresh builds. 2016-11-14 21:18:03 -05:00
Ben Newman
e4c7b0890c Watch all imported files in linked npm packages on server. 2016-11-14 14:25:22 -05:00
Ben Newman
e3387599a2 Test lazy main modules and stray imports in modules test app. 2016-11-14 13:35:50 -05:00
Ben Newman
41713dacf7 Include meteor npm install in new app instructions.
Thanks to @ptica for this suggestion:
https://github.com/meteor/meteor/issues/8042#issuecomment-260277876
2016-11-14 12:51:00 -05:00
Ben Newman
2437f72cd7 Strip unnecessary imports for packages with no modules.
Note that even an empty package needs to define Package[name] = {}, so
that other packages can tell at runtime whether it's installed.

Fixes #7927.
2016-11-14 12:51:00 -05:00
Ben Newman
911f25bbf4 Allow lazy api.mainModule modules.
If you call api.mainModule(path, where, { lazy: true }), that main
module will not be evaluated until other code imports it at runtime, and
won't even be bundled if no other code imports it.

Closes #6132.
2016-11-14 12:51:00 -05:00
Ben Newman
8d1133743d Fix options.transformFilename behavior in files.cp_r.
The options.transformFilename function is only supposed to transform
target file names, not the names of source files to be copied.

This behavior was broken by c5809a4a1c
between Meteor 1.4.0.1 and 1.4.1. Thank goodness for `git bisect`!

The biggest symptom of this mistake was that `meteor create --package`
no longer created files based on the ~fs-name~.js and ~fs-name~-tests.js
template files.

This probably merits a 1.4.1.4 release in addition to 1.4.2.2.
2016-11-14 11:50:50 -05:00
Mehdi AHRAOUI
0466fdd37f Scaffold an official project structure
Scaffold an official project structure
Add --bare option to meteor create

Notice scaffold options on meteor create

add full skeleton

add spaces

remove shell-server package from skew-full + add description of new packages

Add --bare option to meteor create

Notice scaffold options on meteor create

add full skeleton

add spaces

remove shell-server package from skew-full + add description of new packages

improve PR

resolve conflict

Fix rebase

fix static-assets readme

Fix tipo

Remove insecure and auto publish packages

Remove useraccounts-configuration.js

add tests

fix PR
2016-11-11 11:00:33 -05:00
Ben Newman
61ada2d27b Update statOrNull method of cached Resolver objects.
This solves a problem that sometimes occurs when new modules are added
to an app but the cached Resolver object cannot find them because its
statOrNull method is still using a previous instance of the
corresponding ImportScanner.

Related issues and comments:

https://forums.meteor.com/t/meteor-not-detecting-new-files/31151
https://github.com/Akryum/meteor-vue-component/issues/80
https://github.com/meteor/meteor/pull/7975#issuecomment-259263650
https://github.com/meteor/meteor/issues/8008
2016-11-10 17:50:59 -05:00
Ben Newman
7abd832f75 Upgrade modules test app to Meteor 1.4.2.1. 2016-11-10 17:50:59 -05:00
Mitar
3ee60f57e5 Allow global headless setting. 2016-11-09 22:53:28 -08:00
Ben Newman
274a1f6566 Upgrade modules test app to Meteor 1.4.2.1. 2016-11-09 01:52:15 -05:00
Ben Newman
bf7417ff92 Merge branch 'release-1.4.2.1' into devel 2016-11-09 01:35:41 -05:00
Tom Coleman
d26f3fed58 Merge pull request #7807 from mhidou/skel-scaffold
Scaffold an official project structure on with `meteor create`
2016-11-09 10:29:07 +11:00
Ben Newman
8f07a87bd5 Give package test modules access to Npm.depends dependencies.
Similar in spirit to bbac272530.

Fixes #7999.
2016-11-08 15:36:36 -05:00
Ben Newman
932115120f Don't let options.hash override File#hash() salting. 2016-11-08 14:08:08 -05:00
Ben Newman
4ada5c8a17 Bump LINKER_CACHE_SALT and compiler.BUILT_BY for good measure.
This will trigger recompilation and relinking, which should help prevent
various stale caching issues, e.g. #7977.
2016-11-08 13:50:32 -05:00
Ben Newman
940cc4f4d6 Add salt to File#hash in bundler.js.
This is what determines, among other things, source map URL names of the
form <hash>.map, so this may help to avoid #7977.
2016-11-08 13:48:54 -05:00
Ben Newman
a43d66991b Allow watch.sha1 to accept multiple arguments. 2016-11-08 13:48:23 -05:00
Ben Newman
a7ac32e00a Tolerate ENOENT errors in Builder#copyDirectory. 2016-11-08 13:33:20 -05:00
Ben Newman
ad460e0d7d Tolerate files.realpath throwing ELOOP exceptions. 2016-11-04 18:45:51 -04:00
Ben Newman
52697c7167 Cache getProdPackageNames optimistically. 2016-11-04 18:26:03 -04:00