Skip to content

Commit

Permalink
Upgraded to SPFx 1.12
Browse files Browse the repository at this point in the history
  • Loading branch information
s-KaiNet committed Oct 20, 2021
1 parent 34558e1 commit 065a00c
Show file tree
Hide file tree
Showing 22 changed files with 51,864 additions and 14,532 deletions.
25 changes: 0 additions & 25 deletions .editorconfig

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ node_modules
# Build generated files
dist
lib
release
solution
temp
*.sppkg
Expand All @@ -30,3 +31,4 @@ obj

# Styles Generated Code
*.scss.ts
*.scss.d.ts
6 changes: 3 additions & 3 deletions .yo-rc.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"@microsoft/generator-sharepoint": {
"isCreatingSolution": false,
"isCreatingSolution": true,
"environment": "spo",
"version": "1.10.0",
"version": "1.12.1",
"libraryName": "spfx-css-in-js",
"libraryId": "d07a3ba7-a2e7-41df-b2e6-acaf2ed00a33",
"libraryId": "ae4409ca-d854-4aea-8274-95b195b88fed",
"packageManager": "npm",
"isDomainIsolated": false,
"componentType": "webpart"
Expand Down
2 changes: 1 addition & 1 deletion config/copy-assets.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/copy-assets.schema.json",
"deployCdnPath": "temp/deploy"
"deployCdnPath": "./release/assets/"
}
2 changes: 1 addition & 1 deletion config/deploy-azure-storage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/deploy-azure-storage.schema.json",
"workingDir": "./temp/deploy/",
"workingDir": "./release/assets/",
"account": "<!-- STORAGE ACCOUNT NAME -->",
"container": "spfx-css-in-js",
"accessKey": "<!-- ACCESS KEY -->"
Expand Down
11 changes: 9 additions & 2 deletions config/package-solution.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,17 @@
"$schema": "https://developer.microsoft.com/json-schemas/spfx-build/package-solution.schema.json",
"solution": {
"name": "spfx-css-in-js-client-side-solution",
"id": "d07a3ba7-a2e7-41df-b2e6-acaf2ed00a33",
"id": "ae4409ca-d854-4aea-8274-95b195b88fed",
"version": "1.0.0.0",
"includeClientSideAssets": true,
"isDomainIsolated": false
"isDomainIsolated": false,
"developer": {
"name": "",
"websiteUrl": "",
"privacyUrl": "",
"termsOfUseUrl": "",
"mpnId": ""
}
},
"paths": {
"zippedPackage": "solution/spfx-css-in-js.sppkg"
Expand Down
6 changes: 6 additions & 0 deletions fast-serve/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/s-KaiNet/spfx-fast-serve/master/schema/config.latest.schema.json",
"cli": {
"isLibraryComponent": false
}
}
24 changes: 24 additions & 0 deletions fast-serve/webpack.extend.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* User webpack settings file. You can add your own settings here.
* Changes from this file will be merged into the base webpack configuration file.
* This file will not be overwritten by the subsequent spfx-fast-serve calls.
*/

// you can add your project related webpack configuration here, it will be merged using webpack-merge module
// i.e. plugins: [new webpack.Plugin()]
const webpackConfig = {

}

// for even more fine-grained control, you can apply custom webpack settings using below function
const transformConfig = function (initialWebpackConfig) {
// transform the initial webpack config here, i.e.
// initialWebpackConfig.plugins.push(new webpack.Plugin()); etc.

return initialWebpackConfig;
}

module.exports = {
webpackConfig,
transformConfig
}
15 changes: 15 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,19 @@ const build = require('@microsoft/sp-build-web');

build.addSuppression(`Warning - [sass] The local CSS class 'ms-Grid' is not camelCase and will not be type-safe.`);

var getTasks = build.rig.getTasks;
build.rig.getTasks = function () {
var result = getTasks.call(build.rig);

result.set('serve', result.get('serve-deprecated'));

return result;
};

/* fast-serve */
const { addFastServe } = require("spfx-fast-serve-helpers");
addFastServe(build);
/* end of fast-serve */

build.initialize(require('gulp'));

Loading

0 comments on commit 065a00c

Please sign in to comment.