Permalink
Browse files

Fix line endings... >.>

  • Loading branch information...
1 parent b7a5876 commit 61a01460ce54f50984c55c8362d85646b3dfb8e5 @OvermindDL1 OvermindDL1 committed Sep 16, 2016
Showing with 73 additions and 71 deletions.
  1. +73 −71 Gruntfile.js
View
@@ -1,71 +1,73 @@
-module.exports = function (grunt) {
-
- // Project configuration.
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- umd: {
- intercooler: {
- options: {
- src: 'src/intercooler.js',
- dest: 'www/release/intercooler-<%= pkg.version %>.js',
- // amdModuleId: 'intercooler', // The `require('intercooler')` id used to import, lower-case name is traditional
- objectToExport: 'Intercooler',
- globalAlias: 'Intercooler', // Always force an Intercooler object
- deps: {
- 'default': [{jquery: '$'}],
- amd: [{jquery: '$'}],
- cjs: [{jquery: '$'}],
- global: [{jQuery: '$'}] // Capital Q because that is how jQuery is in the global scope unlike the others
- }
- }
- }
- },
- uglify: {
- options: {
- banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
- },
- build: {
- src: 'www/release/intercooler-<%= pkg.version %>.js',
- dest: 'www/release/intercooler-<%= pkg.version %>.min.js'
- }
- },
- "regex-replace": {
- "update-test-ref": { //specify a target with any name
- src: ['www/release/unit-tests-<%= pkg.version %>.html'],
- actions: [
- {
- name: 'lib ref',
- search: "../src/intercooler.js",
- replace: './intercooler-<%= pkg.version %>.js',
- flags: 'g'
- }
- ]
- }
- }
- });
-
- // Load the plugin that provides the "uglify" task.
- grunt.loadNpmTasks('grunt-contrib-uglify');
- grunt.loadNpmTasks('grunt-regex-replace');
- grunt.loadNpmTasks('grunt-umd');
-
- grunt.registerTask('dist', "Copy Distribution files", function () {
- grunt.file.copy('www/release/intercooler-' + grunt.config.get('pkg').version + '.js', 'dist/intercooler.js');
- grunt.file.copy('www/release/intercooler-' + grunt.config.get('pkg').version + '.min.js', 'dist/intercooler.min.js');
- });
-
- grunt.registerTask('release', "Releases a new version of the library", function () {
- grunt.file.copy("src/intercooler-debugger.js", 'www/release/intercooler-debugger.js');
- grunt.file.copy("test/blanket.min.js", 'www/release/blanket.min.js');
- grunt.file.copy("test/jquery.mockjax.js", 'www/release/jquery.mockjax.js');
- grunt.file.copy("test/unit_tests.html", 'www/release/unit-tests-' + grunt.config.get('pkg').version + '.html');
- grunt.task.run('umd:intercooler');
- grunt.task.run('uglify');
- grunt.task.run('regex-replace');
- grunt.task.run('dist');
- });
-
- // Default task(s).
- grunt.registerTask('default', ['release']);
-
-};
+module.exports = function (grunt) {
+
+ // Project configuration.
+ grunt.initConfig({
+ pkg: grunt.file.readJSON('package.json'),
+ umd: {
+ intercooler: {
+ options: {
+ src: 'src/intercooler.js',
+ dest: 'www/release/intercooler-<%= pkg.version %>.js',
+ // amdModuleId if commented out defaults to the filename without the `.js`, since Intercooler keeps copies of
+ // older Intercoolers in its www/release directory, keep this commented to prevent conflicts with older ones.
+ // amdModuleId: 'intercooler', // The `require('intercooler')` id used to import, lower-case name is usual
+ objectToExport: 'Intercooler',
+ globalAlias: 'Intercooler', // Always force an Intercooler object
+ deps: {
+ 'default': [{jquery: '$'}],
+ amd: [{jquery: '$'}],
+ cjs: [{jquery: '$'}],
+ global: [{jQuery: '$'}] // Capital Q because that is how jQuery is in the global scope unlike the others
+ }
+ }
+ }
+ },
+ uglify: {
+ options: {
+ banner: '/*! <%= pkg.name %> <%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
+ },
+ build: {
+ src: 'www/release/intercooler-<%= pkg.version %>.js',
+ dest: 'www/release/intercooler-<%= pkg.version %>.min.js'
+ }
+ },
+ "regex-replace": {
+ "update-test-ref": { //specify a target with any name
+ src: ['www/release/unit-tests-<%= pkg.version %>.html'],
+ actions: [
+ {
+ name: 'lib ref',
+ search: "../src/intercooler.js",
+ replace: './intercooler-<%= pkg.version %>.js',
+ flags: 'g'
+ }
+ ]
+ }
+ }
+ });
+
+ // Load the plugin that provides the "uglify" task.
+ grunt.loadNpmTasks('grunt-contrib-uglify');
+ grunt.loadNpmTasks('grunt-regex-replace');
+ grunt.loadNpmTasks('grunt-umd');
+
+ grunt.registerTask('dist', "Copy Distribution files", function () {
+ grunt.file.copy('www/release/intercooler-' + grunt.config.get('pkg').version + '.js', 'dist/intercooler.js');
+ grunt.file.copy('www/release/intercooler-' + grunt.config.get('pkg').version + '.min.js', 'dist/intercooler.min.js');
+ });
+
+ grunt.registerTask('release', "Releases a new version of the library", function () {
+ grunt.file.copy("src/intercooler-debugger.js", 'www/release/intercooler-debugger.js');
+ grunt.file.copy("test/blanket.min.js", 'www/release/blanket.min.js');
+ grunt.file.copy("test/jquery.mockjax.js", 'www/release/jquery.mockjax.js');
+ grunt.file.copy("test/unit_tests.html", 'www/release/unit-tests-' + grunt.config.get('pkg').version + '.html');
+ grunt.task.run('umd:intercooler');
+ grunt.task.run('uglify');
+ grunt.task.run('regex-replace');
+ grunt.task.run('dist');
+ });
+
+ // Default task(s).
+ grunt.registerTask('default', ['release']);
+
+};

0 comments on commit 61a0146

Please sign in to comment.