Skip to content

Commit 459556f

Browse files
committed
πŸ“¦ v1.2.0
- πŸ‘·β€β™‚οΈ Possibly fixing #64 and #63 - 🀝 Compatibility with `[email protected]`
1 parent 155173b commit 459556f

File tree

6 files changed

+63
-60
lines changed

6 files changed

+63
-60
lines changed

β€Ž.versions

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
babel-compiler@7.5.3
2-
3-
dynamic-import@0.5.2
4-
ecmascript@0.14.3
5-
ecmascript-runtime@0.7.0
6-
ecmascript-runtime-client@0.10.0
7-
ecmascript-runtime-server@0.9.0
1+
babel-compiler@7.9.0
2+
3+
dynamic-import@0.7.2
4+
ecmascript@0.16.2
5+
ecmascript-runtime@0.8.0
6+
ecmascript-runtime-client@0.12.1
7+
ecmascript-runtime-server@0.11.0
88
9-
frozeman:build-client@1.0.1
9+
frozeman:build-client@1.2.0
1010
11-
12-
13-
14-
15-
16-
17-
18-
19-
11+
12+
13+
14+
15+
16+
17+
18+
19+
20+
2021

β€ŽREADME.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Example:
6767
</body>
6868
```
6969

70-
**Note**: this does not work for blaze projects. For blaze projects you can only set `<meteor-bundled-css />` in your header. It is invalid to set `<meteor-bundled-js />` in your body, simply leave it out and the right thing will happen.
70+
**Note**: this does not work for blaze projects. For blaze projects you can only set `<meteor-bundled-css />` in your header. It is invalid to set `<meteor-bundled-js />` in your body, simply leave it out and the right thing will happen.
7171

7272
### Command line usage
7373
List all available options and show docs:

β€Žmeteor.js

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -176,25 +176,24 @@ module.exports = {
176176
});
177177

178178
let primaryCSSfile = files.css[0];
179+
const json = fs.readFileSync(path.resolve(path.join(outputPath, 'program.json')), {encoding: 'utf-8'});
180+
const prog = JSON.parse(json);
181+
182+
_.each(prog.manifest, (item) => {
183+
if (item.type === 'js' && item.url) {
184+
files.js.push(item.path.replace(RE.path.app, '') + '?hash=' + item.hash);
185+
} else if (item.type === 'css' && item.url) {
186+
// for css file cases, do not append hash.
187+
files.css.push(item.path.replace(RE.path.app, ''));
188+
189+
if (item.url.includes('meteor_css_resource=true')) {
190+
primaryCSSfile = item.path.replace(RE.path.app, '');
191+
}
192+
}
193+
});
179194

180195
// --debug case
181196
if (program.debug) {
182-
const json = fs.readFileSync(path.resolve(path.join(outputPath, 'program.json')), {encoding: 'utf-8'});
183-
const prog = JSON.parse(json);
184-
185-
_.each(prog.manifest, (item) => {
186-
if (item.type === 'js' && item.url) {
187-
files.js.push(item.path.replace(RE.path.app, '') + '?hash=' + item.hash);
188-
} else if (item.type === 'css' && item.url) {
189-
// for css file cases, do not append hash.
190-
files.css.push(item.path.replace(RE.path.app, ''));
191-
192-
if (item.url.includes('meteor_css_resource=true')) {
193-
primaryCSSfile = item.path.replace(RE.path.app, '');
194-
}
195-
}
196-
});
197-
198197
print('[DEBUG] Files:', files, {primaryCSSfile});
199198
}
200199

β€Žpackage-lock.json

Lines changed: 21 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

β€Žpackage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package.describe({
22
name: 'frozeman:build-client',
33
summary: 'Placeholder package for meteor-build-client (npm). Do not install!',
4-
version: '1.0.1',
4+
version: '1.2.0',
55
git: 'https://github.com/frozeman/meteor-build-client'
66
});
77

β€Žpackage.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "meteor-build-client",
3-
"version": "1.0.1",
3+
"version": "1.2.0",
44
"description": "A bundles the client part of a Meteor app.",
55
"author": "Fabian Vogelsteller <[email protected]>",
66
"contributors": [
@@ -21,6 +21,9 @@
2121
},
2222
"keywords": [
2323
"meteor",
24+
"meteor build",
25+
"meteor build client",
26+
"meteor build browser",
2427
"client",
2528
"client-only",
2629
"browser-only"
@@ -30,11 +33,11 @@
3033
},
3134
"main": "main.js",
3235
"dependencies": {
33-
"bluebird": "^3.4.6",
36+
"bluebird": "^3.7.2",
3437
"buffered-spawn": "^3.3.2",
35-
"commander": "^5.1.0",
38+
"commander": "^6.2.0",
3639
"fs-extra": "^9.0.1",
37-
"underscore": "^1.8.3"
40+
"underscore": "^1.12.0"
3841
},
3942
"devDependencies": {}
4043
}

0 commit comments

Comments
Β (0)