Socket
Socket
Sign inDemoInstall

grunt-ts

Package Overview
Dependencies
Maintainers
3
Versions
149
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-ts - npm Package Compare versions

Comparing version 1.10.0 to 1.11.0

13

CHANGELOG.md

@@ -18,4 +18,2 @@ # Released

# Planned
## v1.10.0

@@ -26,2 +24,10 @@ * **Breaking Change**: updated `fast` task option to have three levels: https://github.com/grunt-ts/grunt-ts/issues/96#issuecomment-38987023 `watch` (default) | `always` | `never`. If you never specified it than you don't need to do anything as the new default `'watch'` is same as old default `true`

## v1.11.0
* Fix LKG https://github.com/grunt-ts/grunt-ts/issues/97 i.e. `grunt upgrade`
* Cleanup `.npmignore`
* **Breaking Change**: Update the bundled TSC to v1.0.0
* **Breaking Change**: Remove `index` option (https://github.com/grunt-ts/grunt-ts/issues/68). This has been replaced by transformers. Plus the blindly created index is unreliable for when we have any file that doesn't `export` anything.
# Planned
## Not yet associated with a release

@@ -33,6 +39,5 @@ * change `'./path/to/file'` to be `'path/to/file'` when doing transforms for `///ts:import` and `///ts:export`. Functionally equivalent, but the second form looks better (verify that it works for requirejs as well, I know it works for nodejs)

* Show error when `/// ts:???` is detected but no transform exists for `???`
* Update to TypeScript `0.9.7` as the default
* Add documentation for fast compile
* All tasks like `grunt-contrib-watch` are supported
* will not work with `--out`
* Fast compile needs to be more granular (https://github.com/grunt-ts/grunt-ts/issues/96#issuecomment-38987023)
* the granularity https://github.com/grunt-ts/grunt-ts/issues/96#issuecomment-38987023

@@ -5,3 +5,3 @@ {

"description": "Compile and manage your TypeScript project",
"version": "1.10.0",
"version": "1.11.0",
"homepage": "https://github.com/grunt-ts/grunt-ts",

@@ -43,3 +43,3 @@ "repository": {

"dependencies": {
"typescript": "0.9.5",
"typescript": "1.0.0",
"chokidar": "0.8.2",

@@ -49,3 +49,4 @@ "underscore": "1.5.1",

"es6-promise": "~0.1.1",
"rimraf": "2.2.6"
"rimraf": "2.2.6",
"ncp": "0.5.1"
},

@@ -52,0 +53,0 @@ "peerDependencies": {

@@ -5,3 +5,3 @@ # grunt-ts

Written from scratch TypeScript compiler task for GruntJS. It differs from grunt-typescript which is another excellent [grunt plugin for TypeScript](https://npmjs.org/package/grunt-typescript).
Written from scratch TypeScript compiler task for GruntJS.

@@ -8,0 +8,0 @@ Following are the reasons why grunt-ts was created:

@@ -11,3 +11,2 @@

amdloader: string; // if specified creates a js file to load all the generated typescript files in order using requirejs + order
index: string[]; // used to create an index folder to make external module access easier
templateCache: {

@@ -14,0 +13,0 @@ src: string[]; // if search through all the html files at this location

@@ -228,3 +228,3 @@ /// <reference path="../../defs/tsd.d.ts"/>

// Skip generated lines as these will get regenerated
if (_.some(transformers, (transformer) => transformer.isGenerated(line))) {
if (_.some(transformers, (transformer: BaseTransformer) => transformer.isGenerated(line))) {
continue;

@@ -234,3 +234,3 @@ }

// Directive line
if (_.some(transformers, (transformer) => {
if (_.some(transformers, (transformer: BaseTransformer) => {
if (transformer.isSignature(line)) {

@@ -237,0 +237,0 @@ // The code gen directive line automatically qualifies

@@ -15,3 +15,2 @@ /// <reference path="../defs/tsd.d.ts"/>

var compileModule = require('./modules/compile');
var indexModule = require('./modules/index');
var referenceModule = require('./modules/reference');

@@ -249,13 +248,2 @@ var amdLoaderModule = require('./modules/amdLoader');

///// External Module Index
// Create the index if specified
if (target.index) {
if (!_.isArray(target.index)) {
grunt.warn('Index option needs to be an array of directories');
}
indexModule.indexDirectories(_.map(target.index, function (folder) {
return path.resolve(folder);
}));
}
///// Reference File

@@ -262,0 +250,0 @@ // Generate the reference file

@@ -17,3 +17,2 @@ /// <reference path="../defs/tsd.d.ts"/>

import compileModule = require('./modules/compile');
import indexModule = require('./modules/index');
import referenceModule = require('./modules/reference');

@@ -242,3 +241,3 @@ import amdLoaderModule = require('./modules/amdLoader');

// Clear the files of output.d.ts and reference.ts and baseDirFile
files = _.filter(files, (filename) => {
files = _.filter(files, (filename: string) => {
return (!isReferenceFile(filename) && !isOutFile(filename) && !isBaseDirFile(filename, files));

@@ -271,11 +270,2 @@ });

///// External Module Index
// Create the index if specified
if (target.index) {
if (!_.isArray(target.index)) {
grunt.warn('Index option needs to be an array of directories');
}
indexModule.indexDirectories(_.map(target.index, (folder) => path.resolve(folder)));
}
///// Reference File

@@ -282,0 +272,0 @@ // Generate the reference file

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc