From c2dc8874c29266dbccfd3339b102f490b54b0c1c Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Wed, 22 Feb 2017 21:23:44 +0100 Subject: [PATCH] Update naming according to the Angular presskit (#56) --- README.md | 2 +- package.json | 4 ++-- test/fixtures/index.js | 4 ++-- ...mple.js => sample_angular_component_file_string_simple.js} | 4 ++-- test/loader.spec.js | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) rename test/fixtures/{sample_angular2_component_file_string_simple.js => sample_angular_component_file_string_simple.js} (65%) diff --git a/README.md b/README.md index c1c481f..59ff731 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # angular2-template-loader -Chain-to loader for webpack that inlines all html and style's in angular2 components. +Chain-to loader for webpack that inlines all html and style's in angular components. [![Build Status](https://travis-ci.org/TheLarkInn/angular2-template-loader.svg?branch=master)](https://travis-ci.org/TheLarkInn/angular2-template-loader) [![Coverage](https://codecov.io/gh/TheLarkInn/angular2-template-loader/branch/master/graph/badge.svg)](https://codecov.io/gh/TheLarkInn/angular2-template-loader) diff --git a/package.json b/package.json index 51d2714..48a5795 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "angular2-template-loader", "version": "0.6.2", - "description": "Angular2 webpack loader that inlines your angular2 templates and stylesheets into angular components. ", + "description": "Angular webpack loader that inlines your angular templates and stylesheets into angular components. ", "main": "index.js", "scripts": { "test": "mocha --reporter spec", @@ -16,7 +16,7 @@ "url": "git+https://github.com/TheLarkInn/angular2-template-loader.git" }, "keywords": [ - "angular2", + "angular", "webpack", "angularjs", "loader", diff --git a/test/fixtures/index.js b/test/fixtures/index.js index e4c899b..b45a94a 100644 --- a/test/fixtures/index.js +++ b/test/fixtures/index.js @@ -1,4 +1,4 @@ -var sampleAngular2ComponentSimpleFixture = require('./sample_angular2_component_file_string_simple.js'); +var sampleAngularComponentSimpleFixture = require('./sample_angular_component_file_string_simple.js'); var componentWithQuoteInUrls = require('./component_with_quote_in_urls.js'); var componentWithMultipleStyles = require('./component_with_multiple_styles.js'); var componentWithoutRelPeriodSlash = require('./component_without_relative_period_slash.js'); @@ -6,7 +6,7 @@ var componentWithSpacing = require('./component_with_spacing.js'); var componentWithSingleLineDecorator = require('./component_with_single_line_decorator.js'); var componentWithTemplateUrlEndingBySpace = require('./component_with_template_url_ending_by_space.js'); -exports.simpleAngular2TestComponentFileStringSimple = sampleAngular2ComponentSimpleFixture; +exports.simpleAngularTestComponentFileStringSimple = sampleAngularComponentSimpleFixture; exports.componentWithQuoteInUrls = componentWithQuoteInUrls; exports.componentWithMultipleStyles = componentWithMultipleStyles; exports.componentWithoutRelPeriodSlash = componentWithoutRelPeriodSlash; diff --git a/test/fixtures/sample_angular2_component_file_string_simple.js b/test/fixtures/sample_angular_component_file_string_simple.js similarity index 65% rename from test/fixtures/sample_angular2_component_file_string_simple.js rename to test/fixtures/sample_angular_component_file_string_simple.js index 3f0c35c..6914ce8 100644 --- a/test/fixtures/sample_angular2_component_file_string_simple.js +++ b/test/fixtures/sample_angular_component_file_string_simple.js @@ -1,4 +1,4 @@ -var simpleAngular2TestComponentFileStringSimple = ` +var simpleAngularTestComponentFileStringSimple = ` import {Component} from '@angular/core'; @Component({ @@ -9,4 +9,4 @@ var simpleAngular2TestComponentFileStringSimple = ` export class TestComponent {} `; -module.exports = simpleAngular2TestComponentFileStringSimple; +module.exports = simpleAngularTestComponentFileStringSimple; diff --git a/test/loader.spec.js b/test/loader.spec.js index 1cac568..ea730ac 100644 --- a/test/loader.spec.js +++ b/test/loader.spec.js @@ -6,7 +6,7 @@ var fixtures = require("./fixtures"); describe("loader", function() { it("Should convert html and style file strings to require()s", function(){ - loader.call({}, fixtures.simpleAngular2TestComponentFileStringSimple) + loader.call({}, fixtures.simpleAngularTestComponentFileStringSimple) .should .be .eql(`