Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gulp build not creating/outputing files #5551

Closed
ericlormul opened this issue Jul 17, 2017 · 3 comments
Closed

gulp build not creating/outputing files #5551

ericlormul opened this issue Jul 17, 2017 · 3 comments

Comments

@ericlormul
Copy link

Scenario 1: semantic.json is in my projects root directory. My working directory is in semantic fold. gulp version command works fine, it outputs version number 2.2.10. However, gulp build runs properly, but nothing is created.

[22:57:56] Starting 'build'...
Building Semantic
[22:57:56] Starting 'build-javascript'...
Building Javascript
[22:57:56] Starting 'build-css'...
Building CSS
[22:57:56] Starting 'build-assets'...
Building assets
[22:57:56] Starting 'package compressed js'...
[22:57:56] Starting 'package uncompressed js'...
[22:57:56] Finished 'build-javascript' after 47 ms
[22:57:56] Starting 'package uncompressed css'...
[22:57:56] Starting 'package compressed css'...
[22:57:56] Finished 'build-assets' after 32 ms
[22:57:56] Finished 'package uncompressed js' after 13 ms
[22:57:56] Finished 'package uncompressed css' after 9.51 ms
[22:57:56] Finished 'package compressed js' after 22 ms
[22:57:56] Finished 'package compressed css' after 5.44 ms
[22:57:56] Finished 'build-css' after 41 ms
[22:57:56] Finished 'build' after 59 ms

scenario 2: I move semantic.json in semantic folder. This time gulp build works fine, it creates files. However, gulp version returns undefined version number.

I'm confused, what's problem. Thank you in advance.

My semantic.json file

{
"base": "/vendor/semantic/",
"paths": {
"source": {
"config": "src/theme.config",
"definitions": "src/definitions/",
"site": "src/site/",
"themes": "src/themes/"
},
"output": {
"packaged": "dist/",
"uncompressed": "dist/components/",
"compressed": "dist/components/",
"themes": "dist/themes/"
},
"clean": "dist/"
},
"permission": false,
"autoInstall": false,
"rtl": false,
"version": "2.2.10"
}

@bryannaegele
Copy link

I am seeing this, as well. What's even more problematic is that with semantic.json in the root directory, the components section of the config is observed. When moved to inside the semantic folder, the components section is ignored and all components are built.

{
  "base": "semantic/",
  "paths": {
    "source": {
      "config": "src/theme.config",
      "definitions": "src/definitions/",
      "site": "src/site/",
      "themes": "src/themes/"
    },
    "output": {
      "packaged": "dist/",
      "uncompressed": "dist/components/",
      "compressed": "dist/components/",
      "themes": "dist/themes/"
    },
    "clean": "dist/"
  },
  "permission": false,
  "autoInstall": false,
  "rtl": false,
  "components": [
    "reset",
    "site",
    "container",
    "header",
    "list",
    "menu",
    "sidebar",
    "state",
    "visibility"
  ],
  "version": "2.2.13"
}

@aschrijver
Copy link

aschrijver commented Jan 3, 2018

I have a whole bunch of errors on a clean install of version 2.2.13 in an existing project with all default settings (/semantic directory and defaults in semantic.json). Tried placing semantic.json in root and in /semantic subdir.. same results:

$ gulp build
[11:43:39] Using gulpfile ~/Documents/my-project/semantic/gulpfile.js
[11:43:39] Starting 'build'...
Building Semantic
[11:43:39] Starting 'build-javascript'...
Building Javascript
[11:43:39] Starting 'build-css'...
Building CSS
[11:43:39] Starting 'build-assets'...
Building assets
[11:43:39] Created: dist/components/site.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/form.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/accordion.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/checkbox.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/dimmer.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/dropdown.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Created: dist/components/embed.js
[11:43:39] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:39] Finished 'build-assets' after 754 ms
[11:43:40] Created: dist/components/modal.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/reset.css
[11:43:40] Created: dist/components/reset.min.css
[11:43:40] Created: dist/components/nag.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/popup.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/progress.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/rating.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/search.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/shape.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/sidebar.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/site.css
[11:43:40] Created: dist/components/site.min.css
[11:43:40] Created: dist/components/sticky.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/tab.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/transition.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/api.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/state.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Created: dist/components/visibility.js
[11:43:40] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:40] Starting 'package compressed js'...
[11:43:40] Starting 'package uncompressed js'...
[11:43:40] Finished 'build-javascript' after 1.62 s
[11:43:41] Created: dist/components/button.min.css
[11:43:41] Created: dist/components/button.css
[11:43:41] Created: dist/components/container.css
[11:43:41] Created: dist/components/container.min.css
[11:43:41] Plumber found unhandled error:
 TypeError: glob.match is not a function
[11:43:41] Finished 'package compressed js' after 1.25 s
[11:43:42] Created: dist/semantic.js
[11:43:42] Finished 'package uncompressed js' after 1.38 s
[11:43:42] Created: dist/components/divider.css
[11:43:42] Created: dist/components/divider.min.css
[11:43:42] Created: dist/components/flag.css
[11:43:42] Created: dist/components/flag.min.css
[11:43:42] Created: dist/components/header.css
[11:43:42] Created: dist/components/header.min.css
[11:43:43] Created: dist/components/icon.css
[11:43:43] Created: dist/components/icon.min.css
[11:43:43] Created: dist/components/image.css
[11:43:43] Created: dist/components/image.min.css
[11:43:43] Created: dist/components/input.css
[11:43:43] Created: dist/components/input.min.css
[11:43:43] Created: dist/components/label.css
[11:43:43] Created: dist/components/label.min.css
[11:43:43] Created: dist/components/list.css
[11:43:43] Created: dist/components/list.min.css
[11:43:43] Created: dist/components/loader.css
[11:43:43] Created: dist/components/loader.min.css
[11:43:43] Created: dist/components/rail.css
[11:43:43] Created: dist/components/rail.min.css
[11:43:43] Created: dist/components/reveal.css
[11:43:43] Created: dist/components/reveal.min.css
[11:43:44] Created: dist/components/segment.css
[11:43:44] Created: dist/components/segment.min.css
[11:43:44] Created: dist/components/step.css
[11:43:44] Created: dist/components/step.min.css
[11:43:44] Created: dist/components/breadcrumb.css
[11:43:44] Created: dist/components/breadcrumb.min.css
[11:43:44] Created: dist/components/form.css
[11:43:44] Created: dist/components/form.min.css
[11:43:44] Created: dist/components/grid.css
[11:43:44] Created: dist/components/grid.min.css
[11:43:44] Created: dist/components/menu.min.css
[11:43:44] Created: dist/components/menu.css
[11:43:45] Created: dist/components/message.css
[11:43:45] Created: dist/components/message.min.css
[11:43:45] Created: dist/components/table.css
[11:43:45] Created: dist/components/table.min.css
[11:43:45] Created: dist/components/ad.css
[11:43:45] Created: dist/components/ad.min.css
[11:43:45] Created: dist/components/card.css
[11:43:45] Created: dist/components/card.min.css
[11:43:45] Created: dist/components/comment.css
[11:43:45] Created: dist/components/comment.min.css
[11:43:45] Created: dist/components/feed.css
[11:43:45] Created: dist/components/feed.min.css
[11:43:45] Created: dist/components/item.css
[11:43:45] Created: dist/components/item.min.css
[11:43:45] Created: dist/components/statistic.css
[11:43:45] Created: dist/components/statistic.min.css
[11:43:45] Created: dist/components/accordion.css
[11:43:45] Created: dist/components/accordion.min.css
[11:43:45] Created: dist/components/checkbox.css
[11:43:45] Created: dist/components/checkbox.min.css
[11:43:46] Created: dist/components/dimmer.css
[11:43:46] Created: dist/components/dimmer.min.css

The semantic.css, semantic.min.css are not generated.


UPDATE: The errors above disappeared after a node_modules removal, and the css files where finally generated by applying this fix: #6067

@stale
Copy link

stale bot commented Apr 4, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Apr 4, 2018
@stale stale bot closed this as completed May 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants