Skip to content
This repository was archived by the owner on Apr 20, 2018. It is now read-only.

Commit f3e8b6d

Browse files
Updating build for grunt
1 parent 6809e2f commit f3e8b6d

16 files changed

+782
-815
lines changed

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
npm-debug.log

Gruntfile.js

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
module.exports = function (grunt) {
2+
3+
grunt.initConfig({
4+
meta: {
5+
banner:
6+
'/*'+
7+
'Copyright (c) Microsoft Open Technologies, Inc. All rights reserved.\r\n' +
8+
'Microsoft Open Technologies would like to thank its contributors, a list.\r\n' +
9+
'of whom are at http://aspnetwebstack.codeplex.com/wikipage?title=Contributors..\r\n' +
10+
'Licensed under the Apache License, Version 2.0 (the "License"); you.\r\n' +
11+
'may not use this file except in compliance with the License. You may.\r\n' +
12+
'obtain a copy of the License at.\r\n\r\n' +
13+
'http://www.apache.org/licenses/LICENSE-2.0.\r\n\r\n' +
14+
'Unless required by applicable law or agreed to in writing, software.\r\n' +
15+
'distributed under the License is distributed on an "AS IS" BASIS,.\r\n' +
16+
'WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or.\r\n' +
17+
'implied. See the License for the specific language governing permissions.\r\n' +
18+
'and limitations under the License..\r\n' +
19+
'*/'
20+
},
21+
concat: {
22+
options: {
23+
separator: ''
24+
},
25+
basic: {
26+
src: [
27+
'src/license.js',
28+
'src/intro.js',
29+
'src/basicheader.js',
30+
'src/polyfills',
31+
'src/rx-jquery.js',
32+
'src/outro.js'
33+
],
34+
dest: 'rx.jquery.js'
35+
}
36+
},
37+
uglify: {
38+
basic: {
39+
src: ['<banner>', 'rx.jquery.js'],
40+
dest: 'rx.jquery.min.js'
41+
}
42+
43+
},
44+
qunit: {
45+
all: ['tests/*.html']
46+
}
47+
});
48+
49+
grunt.loadNpmTasks('grunt-contrib-concat');
50+
grunt.loadNpmTasks('grunt-contrib-uglify');
51+
grunt.loadNpmTasks('grunt-contrib-qunit');
52+
53+
// Default task(s).
54+
grunt.registerTask('default', ['concat:basic', 'uglify:basic']);
55+
56+
};

authors.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Matthew Podwysocki <[email protected]>
2+
Bart de Smet <[email protected]>
3+
Erik Meijer <[email protected]>

build_core.bat

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@echo off
2+
3+
echo Core build
4+
echo ==========
5+
echo.
6+
7+
for %%a in (%1) do set __OutDir=%%~a
8+
for %%a in (%2) do set __BuildNumber=%%~a
9+
10+
echo Output directory: "%__OutDir%"
11+
echo Build number: "%__BuildNumber%"
12+
echo.
13+
14+
echo Executing grunt...
15+
start /B /WAIT npm.cmd install
16+
start /B /WAIT grunt.cmd
17+
echo.

0 commit comments

Comments
 (0)