ember-web-app
Advanced tools
Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2
@@ -5,3 +5,9 @@ /*jshint node:true*/ | ||
normalizeEntityName: function() {} | ||
normalizeEntityName: function() {}, | ||
locals: function(options) { | ||
return { | ||
name: options.project.name() | ||
}; | ||
} | ||
}; |
34
index.js
@@ -7,7 +7,37 @@ /* jshint node: true */ | ||
included: function(app) { | ||
this.app = app; | ||
app.options = app.options || {}; | ||
this._configureFingerprint(); | ||
this.manifest = this._getManifest(); | ||
this._super.included.apply(this, arguments); | ||
}, | ||
treeForPublic: function() { | ||
var ProcessManifest = require('./lib/process-manifest'); | ||
var GenerateManifest = require('./lib/broccoli/generate-manifest'); | ||
return new ProcessManifest('config', 'project name', 'project description'); | ||
return new GenerateManifest('.', this.manifest); | ||
}, | ||
contentFor: function(section, config) { | ||
if (section === 'head') { | ||
return `<link rel="manifest" href="${config.rootURL}manifest.json">`; | ||
} | ||
}, | ||
_configureFingerprint() { | ||
var configureFingerprint = require('./lib/configure-fingerprint'); | ||
this.app.options.fingerprint = configureFingerprint(this.app.options.fingerprint); | ||
}, | ||
_getManifest() { | ||
var path = require('path'); | ||
var env = this.app.env; | ||
var appConfig = this.app.project.config(env); | ||
return require(path.join(this.app.project.root, 'config/manifest.js'))(env, appConfig); | ||
} | ||
}; |
{ | ||
"name": "ember-web-app", | ||
"version": "1.0.0-alpha.1", | ||
"version": "1.0.0-alpha.2", | ||
"description": "This addon helps you configure and manage the manifest.json and meta tags needed to create progressive web applications", | ||
@@ -13,3 +13,3 @@ "directories": { | ||
"test": "npm run browser-test && npm run node-test", | ||
"node-test": "mocha node-tests/**/*-test.js", | ||
"node-test": "mocha --recursive node-tests", | ||
"browser-test": "ember try:each" | ||
@@ -24,4 +24,4 @@ }, | ||
"devDependencies": { | ||
"broccoli-asset-rev": "^2.4.2", | ||
"broccoli-filter": "^1.2.4", | ||
"broccoli-asset-rev": "^2.5.0", | ||
"broccoli-plugin": "^1.2.2", | ||
"broccoli-test-helpers": "0.0.9", | ||
@@ -31,2 +31,3 @@ "ember-ajax": "^2.0.1", | ||
"ember-cli-app-version": "^1.0.0", | ||
"ember-cli-blueprint-test-helpers": "0.13.0", | ||
"ember-cli-dependency-checker": "^1.2.0", | ||
@@ -49,3 +50,3 @@ "ember-cli-htmlbars": "^1.0.3", | ||
"loader.js": "^4.0.1", | ||
"mocha": "^3.1.2" | ||
"mocha": "2.5.3" | ||
}, | ||
@@ -65,4 +66,5 @@ "keywords": [ | ||
"ember-addon": { | ||
"configPath": "tests/dummy/config" | ||
"configPath": "tests/dummy/config", | ||
"before": "broccoli-asset-rev" | ||
} | ||
} |
@@ -26,3 +26,3 @@ # ember-web-app | ||
```sh | ||
$ git clone https://github.com/san650/ember-cli-page-object.git | ||
$ git clone https://github.com/san650/ember-web-app.git | ||
$ cd $_ | ||
@@ -29,0 +29,0 @@ $ yarn # (or npm install) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7960
5240
122
25
10
3
1