Skip to content

Commit 43f3e4f

Browse files
committed
fix: update addon blueprint config files, index.js and config files for dummy
1 parent c405f28 commit 43f3e4f

File tree

5 files changed

+31
-19
lines changed

5 files changed

+31
-19
lines changed

blueprints/addon/files/__name__/test/.eslintrc

-3
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": "current"
6+
}
7+
}]
8+
],
29
"plugins": [
3-
"transform-exponentiation-operator",
4-
"syntax-trailing-function-commas",
5-
"transform-es2015-arrow-functions",
6-
"transform-es2015-template-literals",
7-
"transform-es2015-spread",
8-
"transform-es2015-shorthand-properties",
9-
"transform-es2015-destructuring",
10-
"transform-class-properties",
11-
"transform-es2015-modules-commonjs",
12-
"transform-regenerator",
13-
"syntax-async-functions",
14-
"transform-runtime"
10+
["transform-class-properties", { "spec": true }]
1511
],
1612
"ignore": [
17-
"blueprints/*/files/**"
13+
"blueprints/*/files/**",
14+
"test/dummy/**",
15+
"denali-build.js"
1816
]
1917
}
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
11
{
2-
"extends": "denali"
2+
"extends": "eslint:recommended",
3+
"parser": "babel-eslint",
4+
"env": {
5+
"node": true
6+
},
7+
"parserOptions": {
8+
"sourceType": "module"
9+
}
310
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const bundle = require('../../tmp/-dummy/dummy.bundle');
2+
const container = bundle();
3+
4+
const Application = container.lookup('app:application');
5+
const application = new Application(container.loader, { environment: process.env.NODE_ENV || 'development' });
6+
application.start();
7+
8+
module.exports = application;
9+

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
"typescript": "^2.4.2"
3636
},
3737
"scripts": {
38-
"build": "npm run build:clean && npm run build:compile && npm run build:bin && npm run build:templates",
39-
"build:clean": "rm -rf dist coverage .nyc_output",
38+
"build": "npm run build:clean && npm run build:blueprints && npm run build:compile && npm run build:bin && npm run build:templates",
39+
"build:clean": "rm -rf dist coverage .nyc_output && mkdir dist",
40+
"build:blueprints": "cp -R blueprints dist/blueprints",
4041
"build:compile": "tsc",
4142
"build:bin": "mv dist/bin/denali.js dist/bin/denali && chmod +x dist/bin/denali",
4243
"build:templates": "cp -r lib/templates dist/lib/templates",

0 commit comments

Comments
 (0)