quatrocode / simplr-gulp Goto Github PK
View Code? Open in Web Editor NEWFully functional gulpfile.js implementation. Tailored for Single Page Application. Written in TypeScript
License: GNU Affero General Public License v3.0
Fully functional gulpfile.js implementation. Tailored for Single Page Application. Written in TypeScript
License: GNU Affero General Public License v3.0
For non-VS projects there might be no web.config
file, therefore we need to make WebConfig value nullable and do nothing if it's null and copy file if it's defined.
Add Logger.Info
with Typescript
version.
When trying to run :build for the first time, gulp dependency missing:
gulp-sourcemaps
At the moment, we have multiple server values prefixed with "Server":
"ServerPort": 4000,
"LiveReloadPort": 4400,
"ServerIp": "127.0.0.1",
I think it'd be better to combine them into one object:
"Server" : {
"Ip" : "127.0.0.1",
"Port" : 4000,
"LiveReloadPort" : 4400
}
Minify and uglify .js
files in production enviroment.
Watch tsconfig.json and rebuild project if it changes
Uglify Typescript build output in production
react-dom
resolved with not minified file (react-dom.js
).
[17:06:11] INFO JSPM [npm:react-dom@15.2.1]: Downloading https://api.cdnjs.com/libraries?fields=assets%2Cversion&search=react-dom
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Response 200 (OK).
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Downloaded and parsed 0 result.
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Trying to use splited package name: react
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Downloading https://api.cdnjs.com/libraries?fields=assets%2Cversion&search=react
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Response 200 (OK).
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Downloaded and parsed 78 results.
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Not targeting the latest version 15.3.0, trying to find version 15.2.1
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Version 15.2.1 found.
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: File react-dom.js found.
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: Cdn link successfully resolved.
[17:06:12] INFO JSPM [npm:react-dom@15.2.1]: https://cdnjs.cloudflare.com/ajax/libs/react/15.2.1/react-dom.js
Clean
task remove .gitkeep
files from build directory.
[13:47:13] ERROR TS: undefined[6, 1]: File 'D:/Project/node_modules/@types/react/react.d.ts' not found.
Example below:
"quatrodev:": "wwwroot/libs/quatrodev/",
"quatrodev-insider:": "wwwroot/libs/quatrodev-insider/"
Unhandled typescript error:
ERROR TS: src\app\routes\start\start-route.tsx[19, 7]: { messageText: 'Class \'StartRoute\' incorrectly extends base class \'Component<Props, State>\'.',
category: 1,
code: 2415,
next:
{ messageText: 'Property \'state\' is private in type \'StartRoute\' but not in type \'Component<Props, State>\'.',
category: 1,
code: 2325,
next: undefined } }
Now, when gulpfile.js
is copied and you try to use it, it says it cannot find tsconfig.json
file. Of course, if you use TypeScript, you most probably have it already, but generating one for people who are just starting with it is crucial for good experience.
index.html could have CSS file included:
<link rel="stylesheet" href="app/app.css" type="text/css" media="all" />
Console error:
`-- UNMET PEER DEPENDENCY [email protected]
When following instructions from the read-me, error occurs while trying to install JSPM dependencies by running "jspm install".
Error details below:
err Registry quatrodev not found.
err Unable to load registry quatrodev
warn Installation changes not saved.
Change CleanAllTask
to CleanTask
:
https://github.com/QuatroCode/simplr-gulp/blob/master/src/tasks/clean/tasks/clean-task.ts#L5
Ignore .gitkeep
file in Clean.All
task.
Package: http://momentjs.com/
[17:06:24] INFO JSPM [npm:moment@2.14.1]: Downloading https://api.cdnjs.com/libraries?fields=assets%2Cversion&search=moment
[17:06:25] INFO JSPM [npm:moment@2.14.1]: Response 200 (OK).
[17:06:25] INFO JSPM [npm:moment@2.14.1]: Downloaded and parsed 12 results.
[17:06:25] WARNING JSPM [npm:moment@2.14.1]: Cannot resolve cdn link with version 2.14.1.
.js
filesWebConfig
from gulpconfig.json
gulpconfig.json
Helpers.Pad()
functionBuild.Assets
, Build.Configs
)package.json
on start (return Promise).Skip all d.ts
files from ts-lint.
ERROR TS: src\app\app.ts[12, 17]: [object Object]
ERROR TS: undefined[14569, 6]: Duplicate identifier 'AlgorithmIdentifier'.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.