-
Notifications
You must be signed in to change notification settings - Fork 378
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,114 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"eslint.validate": [ | ||
"glimmer-ts", | ||
"glimmer-js" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ | |
# compiled output | ||
/dist | ||
/declarations | ||
/vendor | ||
|
||
# npm/pnpm/yarn pack output | ||
*.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import 'less/variables'; | ||
@import './less/variables'; | ||
|
||
@import '~ember-basic-dropdown/app/styles/ember-basic-dropdown'; | ||
@import 'ember-basic-dropdown/app/styles/ember-basic-dropdown'; | ||
|
||
@import 'less/base'; | ||
@import './less/base'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
@import 'scss/variables'; | ||
@import './scss/variables'; | ||
|
||
@import '~ember-basic-dropdown/app/styles/ember-basic-dropdown'; | ||
@import 'ember-basic-dropdown/app/styles/ember-basic-dropdown'; | ||
|
||
@import 'scss/base'; | ||
@import './scss/base'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,100 +1,113 @@ | ||
import { babel } from '@rollup/plugin-babel'; | ||
import copy from 'rollup-plugin-copy'; | ||
import { Addon } from '@embroider/addon-dev/rollup'; | ||
import styles from 'rollup-plugin-styles'; | ||
import path from 'path'; | ||
|
||
const addon = new Addon({ | ||
srcDir: 'src', | ||
destDir: 'dist', | ||
}); | ||
|
||
export default { | ||
// This provides defaults that work well alongside `publicEntrypoints` below. | ||
// You can augment this if you need to. | ||
output: addon.output(), | ||
|
||
plugins: [ | ||
// These are the modules that users should be able to import from your | ||
// addon. Anything not listed here may get optimized away. | ||
// By default all your JavaScript modules (**/*.js) will be importable. | ||
// But you are encouraged to tweak this to only cover the modules that make | ||
// up your addon's public API. Also make sure your package.json#exports | ||
// is aligned to the config here. | ||
// See https://github.com/embroider-build/embroider/blob/main/docs/v2-faq.md#how-can-i-define-the-public-exports-of-my-addon | ||
addon.publicEntrypoints(["index.js", "**/*.js"]), | ||
export default [ | ||
// Compile scss file for js import | ||
{ | ||
input: './_index.scss', | ||
output: { | ||
file: './vendor/ember-power-select.js', | ||
assetFileNames: '[name][extname]', | ||
}, | ||
plugins: [ | ||
styles({ | ||
mode: ['extract', 'ember-power-select.css'], | ||
sass: { | ||
includePaths: [path.resolve('node_modules')], | ||
}, | ||
}), | ||
], | ||
}, | ||
{ | ||
input: './scss/bootstrap-complete.scss', | ||
output: { | ||
file: './vendor/ember-power-select-bootstrap.js', | ||
assetFileNames: '[name][extname]', | ||
}, | ||
plugins: [ | ||
styles({ | ||
mode: ['extract', 'ember-power-select-bootstrap.css'], | ||
sass: { | ||
includePaths: [path.resolve('node_modules')], | ||
}, | ||
}), | ||
], | ||
}, | ||
{ | ||
input: './scss/material-complete.scss', | ||
output: { | ||
file: './vendor/ember-power-select-material.js', | ||
assetFileNames: '[name][extname]', | ||
}, | ||
plugins: [ | ||
styles({ | ||
mode: ['extract', 'ember-power-select-material.css'], | ||
sass: { | ||
includePaths: [path.resolve('node_modules')], | ||
}, | ||
}), | ||
], | ||
}, | ||
{ | ||
// This provides defaults that work well alongside `publicEntrypoints` below. | ||
// You can augment this if you need to. | ||
output: addon.output(), | ||
|
||
// These are the modules that should get reexported into the traditional | ||
// "app" tree. Things in here should also be in publicEntrypoints above, but | ||
// not everything in publicEntrypoints necessarily needs to go here. | ||
addon.appReexports([ | ||
'components/**/*.js', | ||
'helpers/**/*.js', | ||
'test-support/*.js', | ||
'utils/*.js', | ||
]), | ||
plugins: [ | ||
// These are the modules that users should be able to import from your | ||
// addon. Anything not listed here may get optimized away. | ||
// By default all your JavaScript modules (**/*.js) will be importable. | ||
// But you are encouraged to tweak this to only cover the modules that make | ||
// up your addon's public API. Also make sure your package.json#exports | ||
// is aligned to the config here. | ||
// See https://github.com/embroider-build/embroider/blob/main/docs/v2-faq.md#how-can-i-define-the-public-exports-of-my-addon | ||
addon.publicEntrypoints(['index.js', '**/*.js']), | ||
|
||
// Follow the V2 Addon rules about dependencies. Your code can import from | ||
// `dependencies` and `peerDependencies` as well as standard Ember-provided | ||
// package names. | ||
addon.dependencies(), | ||
// These are the modules that should get reexported into the traditional | ||
// "app" tree. Things in here should also be in publicEntrypoints above, but | ||
// not everything in publicEntrypoints necessarily needs to go here. | ||
addon.appReexports([ | ||
'components/**/*.js', | ||
'helpers/**/*.js', | ||
'test-support/*.js', | ||
'utils/*.js', | ||
]), | ||
|
||
// This babel config should *not* apply presets or compile away ES modules. | ||
// It exists only to provide development niceties for you, like automatic | ||
// template colocation. | ||
// | ||
// By default, this will load the actual babel config from the file | ||
// babel.config.json. | ||
babel({ | ||
extensions: ['.js', '.gjs', '.ts', '.gts'], | ||
babelHelpers: 'bundled', | ||
}), | ||
// Follow the V2 Addon rules about dependencies. Your code can import from | ||
// `dependencies` and `peerDependencies` as well as standard Ember-provided | ||
// package names. | ||
addon.dependencies(), | ||
|
||
// Ensure that standalone .hbs files are properly integrated as Javascript. | ||
addon.hbs(), | ||
// This babel config should *not* apply presets or compile away ES modules. | ||
// It exists only to provide development niceties for you, like automatic | ||
// template colocation. | ||
// | ||
// By default, this will load the actual babel config from the file | ||
// babel.config.json. | ||
babel({ | ||
extensions: ['.js', '.gjs', '.ts', '.gts'], | ||
babelHelpers: 'bundled', | ||
}), | ||
|
||
// Ensure that .gjs files are properly integrated as Javascript | ||
addon.gjs(), | ||
// Ensure that standalone .hbs files are properly integrated as Javascript. | ||
addon.hbs(), | ||
|
||
// addons are allowed to contain imports of .css files, which we want rollup | ||
// to leave alone and keep in the published output. | ||
addon.keepAssets(['**/*.css']), | ||
// Ensure that .gjs files are properly integrated as Javascript | ||
addon.gjs(), | ||
|
||
// Remove leftover build artifacts when starting a new build. | ||
addon.clean(), | ||
// addons are allowed to contain imports of .css files, which we want rollup | ||
// to leave alone and keep in the published output. | ||
addon.keepAssets(['**/*.css']), | ||
|
||
// Copy SCSS / LESS into published package | ||
copy({ | ||
targets: [ | ||
{ | ||
src: 'src/css/ember-power-select.scss', | ||
dest: '.', | ||
rename: '_index.scss', | ||
}, | ||
{ | ||
src: 'src/css/ember-power-select.less', | ||
dest: '.', | ||
rename: '_index.less', | ||
}, | ||
{ | ||
src: 'src/css/ember-power-select/variables.scss', | ||
dest: 'scss', | ||
rename: 'variables.scss', | ||
}, | ||
{ | ||
src: 'src/css/ember-power-select/variables.less', | ||
dest: 'less', | ||
rename: 'variables.less', | ||
}, | ||
{ | ||
src: 'src/css/ember-power-select/base.scss', | ||
dest: 'scss', | ||
rename: 'base.scss', | ||
}, | ||
{ | ||
src: 'src/css/ember-power-select/base.less', | ||
dest: 'less', | ||
rename: 'base.less', | ||
}, | ||
], | ||
}), | ||
], | ||
}; | ||
// Remove leftover build artifacts when starting a new build. | ||
addon.clean(), | ||
], | ||
}, | ||
]; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './themes/bootstrap'; | ||
@import '../_index.scss'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
@import './themes/material'; | ||
@import '../_index.scss'; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '../vendor/ember-power-select.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '../../vendor/ember-power-select-bootstrap.css'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
import '../../vendor/ember-power-select-material.css'; |
Oops, something went wrong.