{"action":"created","issue":{"url":"https://api.github.com/repos/brunch/sass-brunch/issues/180","repository_url":"https://api.github.com/repos/brunch/sass-brunch","labels_url":"https://api.github.com/repos/brunch/sass-brunch/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/brunch/sass-brunch/issues/180/comments","events_url":"https://api.github.com/repos/brunch/sass-brunch/issues/180/events","html_url":"https://github.com/brunch/sass-brunch/issues/180","id":365231617,"node_id":"MDU6SXNzdWUzNjUyMzE2MTc=","number":180,"title":"Partial .scss files are compiled although they were not included in main .scss file","user":{"login":"jualoppaz","id":5088244,"node_id":"MDQ6VXNlcjUwODgyNDQ=","avatar_url":"https://avatars3.githubusercontent.com/u/5088244?v=4","gravatar_id":"","url":"https://api.github.com/users/jualoppaz","html_url":"https://github.com/jualoppaz","followers_url":"https://api.github.com/users/jualoppaz/followers","following_url":"https://api.github.com/users/jualoppaz/following{/other_user}","gists_url":"https://api.github.com/users/jualoppaz/gists{/gist_id}","starred_url":"https://api.github.com/users/jualoppaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jualoppaz/subscriptions","organizations_url":"https://api.github.com/users/jualoppaz/orgs","repos_url":"https://api.github.com/users/jualoppaz/repos","events_url":"https://api.github.com/users/jualoppaz/events{/privacy}","received_events_url":"https://api.github.com/users/jualoppaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-09-30T15:01:09Z","updated_at":"2018-10-15T09:43:22Z","closed_at":null,"author_association":"NONE","body":"Hi!\r\n\r\nI am starting a new brunch project after so long time.\r\n\r\nBy the moment I have the following scss structure:\r\n\r\nstyles/\r\n├──features/\r\n├──├──directives/\r\n├──├──├──loading/\r\n├──├──├──├──_loading.scss\r\n├──lib/\r\n├──├──_global.scss\r\n├──├──_globalLasts.scss\r\n├──├──_variables.scss\r\n├──views/\r\n├──├──_gallery.scss\r\n├──├──_home.scss\r\n├──styles.scss\r\n\r\nThe **styles.scss** content is:\r\n\r\n```\r\n// Libraries\r\n@import \"lib/variables\";\r\n@import \"lib/global\";\r\n\r\n// Components\r\n@import \"features/directives/loading/loading\";\r\n\r\n// Layouts\r\n\r\n// Views\r\n@import \"views/gallery\";\r\n@import \"views/home\";\r\n\r\n@import \"lib/globalLasts\";\r\n```\r\n\r\nMy **brunch-config.js** file is the fllowing one:\r\n\r\n```\r\nexports.config = {\r\n    npm: {\r\n        enabled: false\r\n    },\r\n    fileListInterval: 2000,\r\n    files: {\r\n        javascripts: {\r\n            joinTo: {\r\n                'js/app.js': /^app(\\/|\\\\)angular/,\r\n                'js/vendor.js': /^(app(\\/|\\\\)vendor|bower_components)/\r\n            },\r\n            order: {\r\n                before: [\r\n                    'bower_components/angular/angular.js',\r\n                    'bower_components/angular-ui-router/release/angular-ui-router.js',\r\n                    'bower_components/angular-animate/angular-animate.js',\r\n                    'bower_components/angular-touch/angular-touch.js',\r\n                    'bower_components/angular-bootstrap/ui-bootstrap-tpls.js',\r\n                ],\r\n                after: [\r\n                    'app/angular/router/router.js',\r\n                    'app/angular/app.js'\r\n                ]\r\n            }\r\n        },\r\n        stylesheets: {\r\n            order: {\r\n                before: []\r\n            },\r\n            joinTo: {\r\n                'css/app.css': /^app(\\/|\\\\)angular(\\/|\\\\)styles/,\r\n                'css/vendor.css': /^(app(\\/|\\\\)vendor|bower_components)/\r\n            }\r\n        },\r\n        templates: {\r\n            joinTo: {\r\n                'js/templates.js': /^app(\\/|\\\\)angular(\\/|\\\\)views/\r\n            }\r\n        }\r\n    },\r\n    modules: {\r\n        wrapper: false,\r\n        definition: false\r\n    },\r\n    plugins: {\r\n        jshint: {\r\n            pattern: /^app(\\/|\\\\)angular(\\/|\\\\).*\\.js$/,\r\n            options: {\r\n                strict: true,\r\n                bitwise: true,\r\n                curly: true,\r\n                unused: true,\r\n                eqeqeq: true\r\n            },\r\n            warnOnly: true\r\n        },\r\n        digest: {\r\n            alwaysRun: false,\r\n            environments: ['production']\r\n        },\r\n        afterBrunch: [\r\n            'rm -f public/config/config_*.json',\r\n            'cp bower_components/components-font-awesome/fonts/* public/fonts',\r\n            'cp bower_components/bootstrap/fonts/* public/fonts'\r\n        ],\r\n        uglify: {\r\n            mangle: false\r\n        },\r\n        browserSync: {\r\n            watch: true,\r\n            port: 3333,\r\n            logLevel: \"debug\"\r\n        }\r\n    },\r\n    // Configuracion especifica del servidor NodeJS utilizado mediante Brunch\r\n    server: {\r\n        path: 'app.js',\r\n        port: 3333,\r\n        base: '/'\r\n    }\r\n};\r\n```\r\n\r\nI remember that the correct way is define a main file (**style.scss**) and other like partials (starting with underscore: _). \r\n\r\nHowever, I am getting an error when compiling my brunch project, because I am using a $color variable in **_loading.scss** file that is declared in **lib/_variables.scss** file.\r\n\r\nI tried to comment all @imports from my **styles.scss** file and I saw that the partials file are compiled always, although I don't add them yo my main file.\r\n\r\nI reviewed the docs and I can see that the partial files are ignored if they starts with underscore.\r\n\r\nThe version of **sass-brunch** I am using is **2.10.7**.\r\n\r\nAm I doing something wrong? Or there is now another way for ignore the partials file?\r\n\r\nThank you so much.\r\n"},"comment":{"url":"https://api.github.com/repos/brunch/sass-brunch/issues/comments/429777386","html_url":"https://github.com/brunch/sass-brunch/issues/180#issuecomment-429777386","issue_url":"https://api.github.com/repos/brunch/sass-brunch/issues/180","id":429777386,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTc3NzM4Ng==","user":{"login":"dlepaux","id":3735879,"node_id":"MDQ6VXNlcjM3MzU4Nzk=","avatar_url":"https://avatars0.githubusercontent.com/u/3735879?v=4","gravatar_id":"","url":"https://api.github.com/users/dlepaux","html_url":"https://github.com/dlepaux","followers_url":"https://api.github.com/users/dlepaux/followers","following_url":"https://api.github.com/users/dlepaux/following{/other_user}","gists_url":"https://api.github.com/users/dlepaux/gists{/gist_id}","starred_url":"https://api.github.com/users/dlepaux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlepaux/subscriptions","organizations_url":"https://api.github.com/users/dlepaux/orgs","repos_url":"https://api.github.com/users/dlepaux/repos","events_url":"https://api.github.com/users/dlepaux/events{/privacy}","received_events_url":"https://api.github.com/users/dlepaux/received_events","type":"User","site_admin":false},"created_at":"2018-10-15T09:43:22Z","updated_at":"2018-10-15T09:43:22Z","author_association":"NONE","body":"Hello, same error but i have downgrade to 2.10.4 because 2.10.5 cause ELIFECYCLE error.. :("}}
{"actor":{"display_login":"dlepaux"}}