Skip to content

Commit

Permalink
Merge pull request #103 from josemarluedke/bug/move-tailwind-file
Browse files Browse the repository at this point in the history
Move tailwind/default-options to a new location
  • Loading branch information
josemarluedke committed Oct 21, 2020
2 parents ad76f9d + 582434d commit 5572bc9
Show file tree
Hide file tree
Showing 15 changed files with 7 additions and 45 deletions.
3 changes: 1 addition & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ module.exports = {
'packages/*/config/**/*.js',
'packages/*/tests/dummy/config/**/*.js',
'packages/**/tailwind.config.js',
'packages/**/tailwind.js',
'packages/*/addon/tailwind/*.js',
'packages/**/tailwind/*.js',
'packages/tailwindcss-plugin-helpers/**/*.js'
],
extends: ['@underline/eslint-config-node'],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = plugin.withOptions(function (userConfig) {
return function ({ addComponents, theme }) {
const { options } = resolve(
'@frontile/buttons',
require('./addon/tailwind/default-options'),
require('.//default-options'),
userConfig,
theme
);
Expand Down
9 changes: 0 additions & 9 deletions packages/buttons/tests/dummy/app/styles/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/* eslint-disable node/no-extraneous-require */

// Remove cache to allow rebuilds
const path = require('path');
delete require.cache[
path.join(
path.dirname(require.resolve('@frontile/buttons')),
'addon/tailwind/default-options.js'
)
];

module.exports = {
future: {
removeDeprecatedGapUtilities: true
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ module.exports = plugin.withOptions(function (userConfig) {
return function ({ addComponents, theme }) {
const { config, options } = resolve(
'@frontile/forms',
require('./addon/tailwind/default-options'),
require('./default-options'),
userConfig,
theme
);
Expand Down
9 changes: 0 additions & 9 deletions packages/forms/tests/dummy/app/styles/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/* eslint-disable node/no-extraneous-require */

// Remove cache to allow rebuilds
const path = require('path');
delete require.cache[
path.join(
path.dirname(require.resolve('@frontile/forms')),
'addon/tailwind/default-options.js'
)
];

module.exports = {
future: {
removeDeprecatedGapUtilities: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = plugin.withOptions(function (userConfig) {
return function ({ addComponents, theme }) {
const { options } = resolve(
'@frontile/notifications',
require('./addon/tailwind/default-options'),
require('./default-options'),
userConfig,
theme
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/* eslint-disable node/no-extraneous-require */

// Remove cache to allow rebuilds
const path = require('path');
delete require.cache[
path.join(
path.dirname(require.resolve('@frontile/notifications')),
'addon/tailwind/default-options.js'
)
];

module.exports = {
future: {
removeDeprecatedGapUtilities: true
Expand Down
2 changes: 1 addition & 1 deletion packages/notifications/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
"tests/**/*",
"types/**/*",
"test-support/**/*",
"addon-test-support/**/*"
"addon-test-support/**/*", "tailwind/default-options.js"
]
}
3 changes: 1 addition & 2 deletions packages/overlays/ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ module.exports = function (defaults) {
compile: {
enabled: true,
cacheExclude: [],
cacheInclude: [],
// cacheInclude: [/.*\.css$/, /.tailwind\.config\.js$/],
cacheInclude: [/.*\.css$/, /(.*?)tailwind(.*)?\.js$/],
plugins: [
require('tailwindcss')(
path.join('tests', 'dummy', 'app', 'styles', 'tailwind.config.js')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = plugin.withOptions(function (userConfig) {
return function ({ addComponents, theme }) {
const { options } = resolve(
'@frontile/overlays',
require('./addon/tailwind/default-options'),
require('./default-options'),
userConfig,
theme
);
Expand Down
9 changes: 0 additions & 9 deletions packages/overlays/tests/dummy/app/styles/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
/* eslint-disable node/no-extraneous-require */

// Remove cache to allow rebuilds
const path = require('path');
delete require.cache[
path.join(
path.dirname(require.resolve('@frontile/overlays')),
'addon/tailwind/default-options.js'
)
];

module.exports = {
future: {
removeDeprecatedGapUtilities: true
Expand Down

0 comments on commit 5572bc9

Please sign in to comment.