node.js

Git Ingnore vscode for (SPFx)

Posted on Updated on

.gitignore file

# Logs
logs
*.log
npm-debug.log*

# Dependency directories
node_modules

# Build generated files
dist
lib
solution
temp
*.spapp

# Coverage directory used by tools like istanbul
coverage

# OSX
.DS_Store

# Visual Studio files
.ntvs_analysis.dat
.vs
bin
obj

# Resx Generated Code
*.resx.ts

# Styles Generated Code
*.scss.ts 

.npmignore file

# Folders
.vscode
coverage
node_modules
sharepoint
src
temp

# Files
*.csproj
.git*
.yo-rc.json
gulpfile.js
tsconfig.json

SFPx on Debian 8

Posted on Updated on

Debian 8 is a minimum consuming resources. Comparing with Ubuntu (Mate) i have allocated < 1 GB instead of 1.6 GB on MATE. This is very nice because with 12 GB of ram, i can allocate 6GB to Windows 10 on VirtualBox and 3 vCores, instead of 2.

screenshot

The real pain is configuring the environment to run npm and gulp so, here it is some tips:

 

sudo npm cache clean -f
sudo npm install -g n
sudo n stable
node -v
sudo npm rebuild node-sass

MORE FIXES

#Pnp JS Core Typings Related
sudo npm install typings -g
#Now CLONE and
sudo npm install

#INSTALL VSCODE NOW

 

CONCLUSIONS

  1. With Debian I have 65% of RAM instead of 80% in MATE;
  2. Windows 10 will not push your vCores to 100%

Read the rest of this entry »

SPFx CRUD & Populating Options

Posted on Updated on

This article will help you to create a SharePoint WebPart using the new Framework SPFx and the PnP JS Core. My first though was how populate my PropertyPaneDropdown in the Properties Panel. After some research, there is and Interface, the IPropertyPaneDropdownOption that must be imported from the preview of ‘@microsoft/sp-client-preview’ This is great because you can populate OnInit before the DOM render. The other big deal is CRUD among Typescript. SPFx is flexibly enough to use your favorite Framework, but the preferred is React. All source code is in my Repository on GitHub, if i need help somehow please, comment here or Clone my project for SPFx demos CLONE

git clone https://github.com/jtlivio/jl-spfx-project-webparts.git

INSTRUCTIONS

https://github.com/jtlivio/jl-spfx-project-webparts

DEMO

Erros after upgrade node.js version (SPFx)

Posted on Updated on

I just recently upgrade node.js on Linux for version v6.6.0, so all my #SPFx webparts stoped working, try to run the command bellow, worked for me @OfficeDev #SPFx-webparts

sudo npm rebuild node-sass

image 1

Finally

image 2