Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ember-web-app

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-web-app - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

blueprints/ember-web-app/files/config/manifest.js

8

blueprints/ember-web-app/index.js

@@ -5,3 +5,9 @@ /*jshint node:true*/

normalizeEntityName: function() {}
normalizeEntityName: function() {},
locals: function(options) {
return {
name: options.project.name()
};
}
};

@@ -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);
}
};

14

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc