File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = {
4+ extends : 'recommended'
5+ } ;
Original file line number Diff line number Diff line change 1+ # How To Contribute
2+
3+ ## Installation
4+
5+ * ` git clone <repository-url> `
6+ * ` cd @clark/ember-css-modules-config `
7+ * ` npm install `
8+
9+ ## Linting
10+
11+ * ` npm run lint:hbs `
12+ * ` npm run lint:js `
13+ * ` npm run lint:js -- --fix `
14+
15+ ## Running tests
16+
17+ * ` ember test ` – Runs the test suite on the current Ember version
18+ * ` ember test --server ` – Runs the test suite in "watch mode"
19+ * ` ember try:each ` – Runs the test suite against multiple Ember versions
20+
21+ ## Running the dummy application
22+
23+ * ` ember serve `
24+ * Visit the dummy application at [ http://localhost:4200 ] ( http://localhost:4200 ) .
25+
26+ For more information on using ember-cli, visit [ https://ember-cli.com/ ] ( https://ember-cli.com/ ) .
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ const getChannelURL = require ( 'ember-source-channel-url' ) ;
4+
5+ module . exports = function ( ) {
6+ return Promise . all ( [
7+ getChannelURL ( 'release' ) ,
8+ getChannelURL ( 'beta' ) ,
9+ getChannelURL ( 'canary' )
10+ ] ) . then ( urls => {
11+ return {
12+ scenarios : [
13+ {
14+ name : 'ember-lts-2.18' ,
15+ env : {
16+ EMBER_OPTIONAL_FEATURES : JSON . stringify ( {
17+ 'jquery-integration' : true
18+ } )
19+ } ,
20+ npm : {
21+ devDependencies : {
22+ '@ember/jquery' : '^0.5.1' ,
23+ 'ember-source' : '~2.18.0'
24+ }
25+ }
26+ } ,
27+ {
28+ name : 'ember-lts-3.4' ,
29+ npm : {
30+ devDependencies : {
31+ 'ember-source' : '~3.4.0'
32+ }
33+ }
34+ } ,
35+ {
36+ name : 'ember-release' ,
37+ npm : {
38+ devDependencies : {
39+ 'ember-source' : urls [ 0 ]
40+ }
41+ }
42+ } ,
43+ {
44+ name : 'ember-beta' ,
45+ npm : {
46+ devDependencies : {
47+ 'ember-source' : urls [ 1 ]
48+ }
49+ }
50+ } ,
51+ {
52+ name : 'ember-canary' ,
53+ npm : {
54+ devDependencies : {
55+ 'ember-source' : urls [ 2 ]
56+ }
57+ }
58+ } ,
59+ // The default `.travis.yml` runs this scenario via `npm test`,
60+ // not via `ember try`. It's still included here so that running
61+ // `ember try:each` manually or from a customized CI config will run it
62+ // along with all the other scenarios.
63+ {
64+ name : 'ember-default' ,
65+ npm : {
66+ devDependencies : { }
67+ }
68+ } ,
69+ {
70+ name : 'ember-default-with-jquery' ,
71+ env : {
72+ EMBER_OPTIONAL_FEATURES : JSON . stringify ( {
73+ 'jquery-integration' : true
74+ } )
75+ } ,
76+ npm : {
77+ devDependencies : {
78+ '@ember/jquery' : '^0.5.1'
79+ }
80+ }
81+ }
82+ ]
83+ } ;
84+ } ) ;
85+ } ;
Original file line number Diff line number Diff line change 1+ 'use strict' ;
2+
3+ module . exports = function ( /* environment, appConfig */ ) {
4+ return { } ;
5+ } ;
Original file line number Diff line number Diff line change @@ -5,6 +5,13 @@ const ClarkPlugin = require('./lib/clark-plugin');
55module . exports = {
66 name : require ( './package' ) . name ,
77
8+ shouldIncludeChildAddon ( childAddon ) {
9+ if ( childAddon . name === 'ember-css-modules' ) {
10+ return false ;
11+ }
12+ return this . _super . shouldIncludeChildAddon . call ( this , childAddon ) ;
13+ } ,
14+
815 createCssModulesPlugin ( parent ) {
916 return new ClarkPlugin ( parent ) ;
1017 }
Original file line number Diff line number Diff line change 1+ module . exports = {
2+ test_page : 'tests/index.html?hidepassed' ,
3+ disable_watching : true ,
4+ launch_in_ci : [ 'Chrome' ] ,
5+ launch_in_dev : [ 'Chrome' ] ,
6+ browser_args : {
7+ Chrome : {
8+ ci : [
9+ // --no-sandbox is needed when running Chrome inside a container
10+ process . env . CI ? '--no-sandbox' : null ,
11+ '--headless' ,
12+ '--disable-gpu' ,
13+ '--disable-dev-shm-usage' ,
14+ '--disable-software-rasterizer' ,
15+ '--mute-audio' ,
16+ '--remote-debugging-port=0' ,
17+ '--window-size=1440,900'
18+ ] . filter ( Boolean )
19+ }
20+ }
21+ } ;
Original file line number Diff line number Diff line change 1+ import Application from '@ember/application' ;
2+ import Resolver from './resolver' ;
3+ import loadInitializers from 'ember-load-initializers' ;
4+ import config from './config/environment' ;
5+
6+ const App = Application . extend ( {
7+ modulePrefix : config . modulePrefix ,
8+ podModulePrefix : config . podModulePrefix ,
9+ Resolver
10+ } ) ;
11+
12+ loadInitializers ( App , config . modulePrefix ) ;
13+
14+ export default App ;
Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html >
3+ < head >
4+ < meta charset ="utf-8 ">
5+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6+ < title > Dummy</ title >
7+ < meta name ="description " content ="">
8+ < meta name ="viewport " content ="width=device-width, initial-scale=1 ">
9+
10+ {{content-for "head"}}
11+
12+ < link integrity ="" rel ="stylesheet " href ="{{rootURL}}assets/vendor.css ">
13+ < link integrity ="" rel ="stylesheet " href ="{{rootURL}}assets/dummy.css ">
14+
15+ {{content-for "head-footer"}}
16+ </ head >
17+ < body >
18+ {{content-for "body"}}
19+
20+ < script src ="{{rootURL}}assets/vendor.js "> </ script >
21+ < script src ="{{rootURL}}assets/dummy.js "> </ script >
22+
23+ {{content-for "body-footer"}}
24+ </ body >
25+ </ html >
Original file line number Diff line number Diff line change 1+ import Resolver from 'ember-resolver' ;
2+
3+ export default Resolver ;
Original file line number Diff line number Diff line change 1+ import EmberRouter from '@ember/routing/router' ;
2+ import config from './config/environment' ;
3+
4+ const Router = EmberRouter . extend ( {
5+ location : config . locationType ,
6+ rootURL : config . rootURL
7+ } ) ;
8+
9+ Router . map ( function ( ) {
10+ } ) ;
11+
12+ export default Router ;
You can’t perform that action at this time.
0 commit comments