Update to Version 1.4.1 (#428)
* handlebarsjs webpack loader sample * removed trashed folder * Updated Package.json * Added ES6 Collections * Update HandlebarJS gulpfile.js * Update to Version 1.4.1 * Update Drop Icon
This commit is contained in:
parent
546e353301
commit
34579c2e1a
|
@ -4,7 +4,7 @@ This sample demonstrate how to set up SPFX to use [Handlebars](http://handlebars
|
||||||
|
|
||||||
|
|
||||||
## Used SharePoint Framework Version
|
## Used SharePoint Framework Version
|
||||||
![drop](https://img.shields.io/badge/drop-GA-green.svg)
|
![drop](https://img.shields.io/badge/drop-1.4.1-green.svg)
|
||||||
|
|
||||||
## Applies to
|
## Applies to
|
||||||
|
|
||||||
|
@ -15,12 +15,13 @@ This sample demonstrate how to set up SPFX to use [Handlebars](http://handlebars
|
||||||
|
|
||||||
Solution|Author(s)
|
Solution|Author(s)
|
||||||
--------|---------
|
--------|---------
|
||||||
SPFx-handlebars | Stefan Bauer - n8d ([@stfbauer](https://twitter.com/stfbauer))
|
SPFx-Handlebars | Stefan Bauer - n8d ([@stfbauer](https://twitter.com/stfbauer))
|
||||||
|
|
||||||
## Version history
|
## Version history
|
||||||
|
|
||||||
Version|Date|Comments
|
Version|Date|Comments
|
||||||
-------|----|--------
|
-------|----|--------
|
||||||
|
1.1|March 21, 2018|Update to Version 1.4.1
|
||||||
1.0|March 5, 2017|Initial release
|
1.0|March 5, 2017|Initial release
|
||||||
|
|
||||||
## Disclaimer
|
## Disclaimer
|
||||||
|
@ -32,7 +33,7 @@ Version|Date|Comments
|
||||||
git clone the repo
|
git clone the repo
|
||||||
npm i
|
npm i
|
||||||
npm i -g gulp
|
npm i -g gulp
|
||||||
gulp
|
gulp serve
|
||||||
```
|
```
|
||||||
|
|
||||||
This package produces the following:
|
This package produces the following:
|
||||||
|
@ -42,4 +43,4 @@ This package produces the following:
|
||||||
* deploy/* - all resources which should be uploaded to a CDN.
|
* deploy/* - all resources which should be uploaded to a CDN.
|
||||||
|
|
||||||
|
|
||||||
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/handlebarsjs-webpack-loader" />
|
<img src="https://telemetry.sharepointpnp.com/sp-dev-fx-webparts/samples/handlebarsjs-webpack-loader" />
|
||||||
|
|
|
@ -2,17 +2,17 @@
|
||||||
|
|
||||||
const gulp = require('gulp');
|
const gulp = require('gulp');
|
||||||
const build = require('@microsoft/sp-build-web');
|
const build = require('@microsoft/sp-build-web');
|
||||||
|
const loaderConfig = {
|
||||||
// Custom config section starts here
|
|
||||||
const loaderConfig = [{
|
|
||||||
test: /\.hbs/,
|
test: /\.hbs/,
|
||||||
loader: "handlebars-template-loader"
|
loader: "handlebars-template-loader"
|
||||||
}];
|
};
|
||||||
|
|
||||||
|
build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);
|
||||||
|
|
||||||
// push loader configuration to SPFx configuration
|
|
||||||
build.configureWebpack.mergeConfig({
|
build.configureWebpack.mergeConfig({
|
||||||
additionalConfiguration: (generatedConfiguration) => {
|
additionalConfiguration: (generatedConfiguration) => {
|
||||||
generatedConfiguration.module.loaders.push(loaderConfig);
|
|
||||||
|
generatedConfiguration.module.rules.push(loaderConfig);
|
||||||
|
|
||||||
return generatedConfiguration;
|
return generatedConfiguration;
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,25 +1,26 @@
|
||||||
{
|
{
|
||||||
"name": "spfx-handlebars",
|
"name": "spfx-handlebars",
|
||||||
"version": "0.0.1",
|
"version": "1.1.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=0.10.0"
|
"node": ">=0.10.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@microsoft/sp-client-base": "~1.0.0",
|
"@microsoft/sp-client-base": "~1.0.0",
|
||||||
"@microsoft/sp-core-library": "~1.0.0",
|
"@microsoft/sp-core-library": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-base": "~1.0.0",
|
"@microsoft/sp-webpart-base": "~1.4.1",
|
||||||
"@types/webpack-env": ">=1.12.1 <1.14.0",
|
"@types/webpack-env": "~1.13.5",
|
||||||
"handlebars": "^4.0.6"
|
"handlebars": "^4.0.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@microsoft/sp-build-web": "~1.0.0",
|
"@microsoft/sp-build-web": "~1.4.1",
|
||||||
"@microsoft/sp-module-interfaces": "~1.0.0",
|
"@microsoft/sp-module-interfaces": "~1.4.1",
|
||||||
"@microsoft/sp-webpart-workbench": "~1.0.0",
|
"@microsoft/sp-webpart-workbench": "~1.4.1",
|
||||||
"@types/chai": ">=3.4.34 <3.6.0",
|
"@types/chai": "~4.1.2",
|
||||||
"@types/mocha": ">=2.2.33 <2.6.0",
|
"@types/es6-collections": "^0.5.31",
|
||||||
|
"@types/mocha": "~2.2.48",
|
||||||
"gulp": "~3.9.1",
|
"gulp": "~3.9.1",
|
||||||
"handlebars-template-loader": "^0.7.0"
|
"handlebars-template-loader": "^0.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "gulp bundle",
|
"build": "gulp bundle",
|
||||||
|
|
Loading…
Reference in New Issue