Skip to content

Commit

Permalink
πŸ“¦ v1.2.2
Browse files Browse the repository at this point in the history
- πŸ‘¨β€πŸ’» Address exception mention in #71
- πŸ“¦ Update dependencies
- πŸ‘¨β€πŸ”¬ Test with latest meteor
- πŸ‘·β€β™‚οΈ Add `.npmignore`
  • Loading branch information
dr-dimitru committed Sep 6, 2022
1 parent a4b51ed commit 95c3040
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 16 deletions.
13 changes: 13 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
*.md
.DS_Store
.eslintcache
.eslintrc
.github
.meteor
.npm
.meteorignore
.versions
.editorconfig
node_modules
npm-debug.log*
package.js
28 changes: 17 additions & 11 deletions meteor.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,15 @@ const deleteFolderRecursive = (_path) => {
if(fs.existsSync(_path)) {
files = fs.readdirSync(_path);
files.forEach((file) => {
const curPath = `${_path}/${file}`;
if (fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
try {
const curPath = `${_path}/${file}`;
if (fs.lstatSync(curPath).isDirectory()) { // recurse
deleteFolderRecursive(curPath);
} else { // delete file
fs.unlinkSync(curPath);
}
} catch (_e) {
// silence here
}
});
fs.rmdirSync(_path);
Expand Down Expand Up @@ -109,13 +113,15 @@ module.exports = {
const legacyDirs = ['/bundle/programs/web.browser.legacy', '/bundle/programs/web.browser.legacy/app'];
const dataPaths = fs.lstatSync(path.join(buildPath, legacyDirs[0])).isDirectory() ? legacyDirs : modernDirs;

_.each(dataPaths, (givenPath) => {
dataPaths.forEach((givenPath) => {
const clientPath = path.join(buildPath, givenPath);
let rootFolder = fs.readdirSync(clientPath);
rootFolder = _.without(rootFolder, 'app');
rootFolder.forEach((file) => {
fs.copySync(path.join(clientPath, file), path.join(outputPath, file));
});
if (fs.lstatSync(clientPath).isDirectory()) {
let rootFolder = fs.readdirSync(clientPath);
rootFolder = _.without(rootFolder, 'app');
rootFolder.forEach((file) => {
fs.copySync(path.join(clientPath, file), path.join(outputPath, file));
});
}
});
} catch(e) {
print('[move()] Exception:', e);
Expand Down
2 changes: 1 addition & 1 deletion 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.2.1',
version: '1.2.2',
git: 'https://github.com/frozeman/meteor-build-client'
});

Expand Down
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"name": "meteor-build-client",
"version": "1.2.1",
"description": "A bundles the client part of a Meteor app.",
"version": "1.2.2",
"description": "Meteor bundler for the client part of an app.",
"author": "Fabian Vogelsteller <fabian@frozeman.de>",
"contributors": [
{
"name": "Morten N.O. NΓΈrgaard Henriksen",
"email": "mh@gi2.dk"
},
{
"name": "dr-dimitru",
"url": "https://github.com/dr-dimitru"
}
],
"preferGlobal": true,
Expand Down Expand Up @@ -36,7 +40,7 @@
"bluebird": "^3.7.2",
"buffered-spawn": "^3.3.2",
"commander": "^6.2.0",
"fs-extra": "^9.0.1",
"fs-extra": "^9.1.0",
"underscore": "^1.12.0"
},
"devDependencies": {}
Expand Down

0 comments on commit 95c3040

Please sign in to comment.