-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- THE PR TEMPLATE IS NOT AN OPTION. DO NOT DELETE IT, MAKE SURE YOU READ AND EDIT IT! --> <!-- Specify which issues will be fixed/closed. Remove it if this is not related. --> ## Subject Add combined assets
- Loading branch information
Showing
13 changed files
with
8,410 additions
and
4 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,25 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"node": true, | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:import/warnings", | ||
], | ||
"globals": { | ||
"Atomics": "readonly", | ||
"SharedArrayBuffer": "readonly" | ||
}, | ||
"parserOptions": { | ||
"ecmaVersion": 2018, | ||
"sourceType": "module" | ||
}, | ||
"plugins": [ | ||
"import", | ||
], | ||
"settings": { | ||
}, | ||
"rules": {} | ||
}; |
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 |
---|---|---|
|
@@ -11,6 +11,29 @@ on: | |
name: "Continuous Integration" | ||
|
||
jobs: | ||
webpack: | ||
name: "Webpack build" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: actions/[email protected] | ||
|
||
- name: "Using Node" | ||
uses: actions/[email protected] | ||
|
||
- name: "Install dependencies" | ||
run: | | ||
yarn | ||
- name: "Build" | ||
run: yarn build | ||
|
||
- name: "Check size" | ||
run: | | ||
yarn size | ||
coding-standards: | ||
name: "Coding Standards" | ||
|
||
|
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 |
---|---|---|
|
@@ -4,6 +4,7 @@ coverage | |
composer.lock | ||
phpunit.xml | ||
/build | ||
/node_modules | ||
/vendor | ||
/vendor-bin | ||
!/vendor-bin/*/composer.json |
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,3 +1,3 @@ | ||
import Autocomplete from './js/Autocomplete'; | ||
|
||
export default Autocomplete | ||
export {Autocomplete}; |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"entrypoints": { | ||
"widget": { | ||
"css": [ | ||
"/bundles/nucleosform/widget.css" | ||
], | ||
"js": [ | ||
"/bundles/nucleosform/widget.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"widget.css": "/bundles/nucleosform/widget.css", | ||
"widget.js": "/bundles/nucleosform/widget.js" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,14 @@ | ||
const Encore = require('@symfony/webpack-encore'); | ||
|
||
Encore | ||
.setOutputPath('src/Bridge/Symfony/Resources/public') | ||
.setPublicPath('/bundles/nucleosform') | ||
.setManifestKeyPrefix('') | ||
.cleanupOutputBeforeBuild() | ||
.disableSingleRuntimeChunk() | ||
.enableSourceMaps(!Encore.isProduction()) | ||
.enableEslintLoader() | ||
.addEntry('widget', './assets/widget.js') | ||
; | ||
|
||
module.exports = Encore.getWebpackConfig(); |
Oops, something went wrong.