Skip to content

Commit

Permalink
πŸ“¦ v1.2.0
Browse files Browse the repository at this point in the history
- πŸ‘·β€β™‚οΈ Possibly fixing #64 and #63
- 🀝 Compatibility with `[email protected]`
  • Loading branch information
dr-dimitru committed Jun 14, 2022
1 parent 155173b commit 459556f
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 60 deletions.
35 changes: 18 additions & 17 deletions .versions
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
babel-compiler@7.5.3
[email protected].0
dynamic-import@0.5.2
ecmascript@0.14.3
ecmascript-runtime@0.7.0
ecmascript-runtime-client@0.10.0
ecmascript-runtime-server@0.9.0
babel-compiler@7.9.0
[email protected].1
dynamic-import@0.7.2
ecmascript@0.16.2
ecmascript-runtime@0.8.0
ecmascript-runtime-client@0.12.1
ecmascript-runtime-server@0.11.0
[email protected]
frozeman:build-client@1.0.1
frozeman:build-client@1.2.0
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ Example:
</body>
```

**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.
**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.

### Command line usage
List all available options and show docs:
Expand Down
31 changes: 15 additions & 16 deletions meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,25 +176,24 @@ module.exports = {
});

let primaryCSSfile = files.css[0];
const json = fs.readFileSync(path.resolve(path.join(outputPath, 'program.json')), {encoding: 'utf-8'});
const prog = JSON.parse(json);

_.each(prog.manifest, (item) => {
if (item.type === 'js' && item.url) {
files.js.push(item.path.replace(RE.path.app, '') + '?hash=' + item.hash);
} else if (item.type === 'css' && item.url) {
// for css file cases, do not append hash.
files.css.push(item.path.replace(RE.path.app, ''));

if (item.url.includes('meteor_css_resource=true')) {
primaryCSSfile = item.path.replace(RE.path.app, '');
}
}
});

// --debug case
if (program.debug) {
const json = fs.readFileSync(path.resolve(path.join(outputPath, 'program.json')), {encoding: 'utf-8'});
const prog = JSON.parse(json);

_.each(prog.manifest, (item) => {
if (item.type === 'js' && item.url) {
files.js.push(item.path.replace(RE.path.app, '') + '?hash=' + item.hash);
} else if (item.type === 'css' && item.url) {
// for css file cases, do not append hash.
files.css.push(item.path.replace(RE.path.app, ''));

if (item.url.includes('meteor_css_resource=true')) {
primaryCSSfile = item.path.replace(RE.path.app, '');
}
}
});

print('[DEBUG] Files:', files, {primaryCSSfile});
}

Expand Down
42 changes: 21 additions & 21 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package.describe({
name: 'frozeman:build-client',
summary: 'Placeholder package for meteor-build-client (npm). Do not install!',
version: '1.0.1',
version: '1.2.0',
git: 'https://github.com/frozeman/meteor-build-client'
});

Expand Down
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "meteor-build-client",
"version": "1.0.1",
"version": "1.2.0",
"description": "A bundles the client part of a Meteor app.",
"author": "Fabian Vogelsteller <[email protected]>",
"contributors": [
Expand All @@ -21,6 +21,9 @@
},
"keywords": [
"meteor",
"meteor build",
"meteor build client",
"meteor build browser",
"client",
"client-only",
"browser-only"
Expand All @@ -30,11 +33,11 @@
},
"main": "main.js",
"dependencies": {
"bluebird": "^3.4.6",
"bluebird": "^3.7.2",
"buffered-spawn": "^3.3.2",
"commander": "^5.1.0",
"commander": "^6.2.0",
"fs-extra": "^9.0.1",
"underscore": "^1.8.3"
"underscore": "^1.12.0"
},
"devDependencies": {}
}

0 comments on commit 459556f

Please sign in to comment.