aboutsummaryrefslogtreecommitdiff
path: root/node_modules/babel-plugin-dynamic-import-node
diff options
context:
space:
mode:
authorruki <waruqi@gmail.com>2018-11-08 00:43:05 +0800
committerruki <waruqi@gmail.com>2018-11-07 22:18:30 +0800
commit89e95b3f143682ed9a006991bacf45c9dcba4818 (patch)
tree4f44cf41b828577d583890bdd5a1c31e8491a6ba /node_modules/babel-plugin-dynamic-import-node
parentaa7f0199255277949790b41c56e8ec97dd4f0da4 (diff)
downloadxmake-docs-vuepress.tar.gz
xmake-docs-vuepress.zip
remove node_modulesvuepress
Diffstat (limited to 'node_modules/babel-plugin-dynamic-import-node')
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/.babelrc5
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/.editorconfig20
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/.eslintignore2
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/.eslintrc5
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/.travis.yml42
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/CHANGELOG.md31
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/LICENSE21
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/README.md37
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/lib/index.js38
-rw-r--r--node_modules/babel-plugin-dynamic-import-node/package.json65
10 files changed, 0 insertions, 266 deletions
diff --git a/node_modules/babel-plugin-dynamic-import-node/.babelrc b/node_modules/babel-plugin-dynamic-import-node/.babelrc
deleted file mode 100644
index b96ead2b..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/.babelrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "presets": [
- "airbnb"
- ],
-}
diff --git a/node_modules/babel-plugin-dynamic-import-node/.editorconfig b/node_modules/babel-plugin-dynamic-import-node/.editorconfig
deleted file mode 100644
index ac29adef..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/.editorconfig
+++ /dev/null
@@ -1,20 +0,0 @@
-root = true
-
-[*]
-indent_style = tab
-indent_size = 4
-end_of_line = lf
-charset = utf-8
-trim_trailing_whitespace = true
-insert_final_newline = true
-max_line_length = 120
-
-[CHANGELOG.md]
-indent_style = space
-indent_size = 2
-
-[*.json]
-max_line_length = off
-
-[Makefile]
-max_line_length = off
diff --git a/node_modules/babel-plugin-dynamic-import-node/.eslintignore b/node_modules/babel-plugin-dynamic-import-node/.eslintignore
deleted file mode 100644
index 051cd482..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/.eslintignore
+++ /dev/null
@@ -1,2 +0,0 @@
-test/fixtures
-lib/
diff --git a/node_modules/babel-plugin-dynamic-import-node/.eslintrc b/node_modules/babel-plugin-dynamic-import-node/.eslintrc
deleted file mode 100644
index 391ada0a..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/.eslintrc
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "parser": "babel-eslint",
- "extends": "airbnb-base",
- "root": true
-}
diff --git a/node_modules/babel-plugin-dynamic-import-node/.travis.yml b/node_modules/babel-plugin-dynamic-import-node/.travis.yml
deleted file mode 100644
index 64e195a6..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/.travis.yml
+++ /dev/null
@@ -1,42 +0,0 @@
-language: node_js
-os:
- - linux
-node_js:
- - "9"
- - "8"
- - "7"
- - "6"
- - "5"
- - "4"
- - "iojs-v3"
- - "iojs-v2"
- - "iojs-v1"
- - "0.12"
-before_install:
- - 'nvm install-latest-npm'
-install:
- - 'if [ "${TRAVIS_NODE_VERSION}" = "0.6" ] || [ "${TRAVIS_NODE_VERSION}" = "0.9" ]; then nvm install --latest-npm 0.8 && npm install && nvm use "${TRAVIS_NODE_VERSION}"; else npm install; fi;'
-script:
- - 'if [ -n "${PRETEST-}" ]; then npm run pretest ; fi'
- - 'if [ -n "${POSTTEST-}" ]; then npm run posttest ; fi'
- - 'if [ -n "${COVERAGE-}" ]; then npm run coverage ; fi'
- - 'if [ -n "${TEST-}" ]; then npm run tests-only ; fi'
-sudo: false
-env:
- - TEST=true
-matrix:
- fast_finish: true
- include:
- - node_js: "lts/*"
- env: PRETEST=true
- allow_failures:
- - node_js: "9"
- - node_js: "7"
- - node_js: "5"
- - node_js: "iojs-v3"
- - node_js: "iojs-v2"
- - node_js: "iojs-v1"
- - node_js: "0.12"
- - os: osx
- - env: TEST=true ALLOW_FAILURE=true
- - env: COVERAGE=true
diff --git a/node_modules/babel-plugin-dynamic-import-node/CHANGELOG.md b/node_modules/babel-plugin-dynamic-import-node/CHANGELOG.md
deleted file mode 100644
index eb94057d..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/CHANGELOG.md
+++ /dev/null
@@ -1,31 +0,0 @@
-## Unreleased
-
-## v1.2.0
-- [New] support comments (#37)
-- [Refactor] Use template and types from the babel object (#32)
-- [Tests] on `node` `v9`; pin included builds to LTS
-- [Dev Deps] update `eslint`, `eslint-config-airbnb-base`, `mocha`, `rimraf`
-
-## v1.1.0
-- Visit Import nodes instead of CallExpressions (#30)
-- [Deps] update `babel-template`, `babel-types`
-- [Dev Deps] update `airbnb-js-shims`, `babel-cli`, `babel-core`, `babel-preset-airbnb`, `babel-register`, `chai`, `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `mocha`
-- [Tests] on `node` `v8`
-- [Tests] use `nvm install-latest-npm` so newer npm doesn’t break older node
-
-## v1.0.2
-- [Fix] Ensure it works with the ES2015 preset too (#12, #16)
-- [Deps] update `babel-template`, `babel-types`
-- [Dev Deps] update `babel-cli`, `babel-core`, `babel-eslint`, `babel-register`, `eslint`, `eslint-config-airbnb-base`, `mocha`
-
-## v1.0.1
-- [Fix] Move `in-publish` to devDeps (#11)
-- [Fix] ensure dynamic `import()` input is properly stringified (#2)
-- [Fix] async timing of dynamic import to match spec (#3)
-- [Fix] Remove spaces in template strings and update Babel (#10)
-- [Deps] update `babel-template`, `babel-types`
-- [Deps] update `babel-types` (#4, #5, #6)
-- [Dev Deps] update `babel-cli`, `babel-core`, `babel-eslint`, `babel-register`, `eslint`, `eslint-config-airbnb-base`, `eslint-plugin-import`, `mocha`, `rimraf`
-
-## v1.0.0
-- Initial full release.
diff --git a/node_modules/babel-plugin-dynamic-import-node/LICENSE b/node_modules/babel-plugin-dynamic-import-node/LICENSE
deleted file mode 100644
index 87081c13..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2016 Airbnb
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/node_modules/babel-plugin-dynamic-import-node/README.md b/node_modules/babel-plugin-dynamic-import-node/README.md
deleted file mode 100644
index 273327d0..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# babel-plugin-dynamic-import-node
-
-Babel plugin to transpile `import()` to a deferred `require()`, for node. Matches the [proposed spec](https://github.com/domenic/proposal-import-function).
-
-**NOTE:** Babylon >= v6.12.0 is required to correct parse dynamic imports.
-
-## Installation
-
-```sh
-$ npm install babel-plugin-dynamic-import-node --save-dev
-```
-
-## Usage
-
-### Via `.babelrc` (Recommended)
-
-**.babelrc**
-
-```json
-{
- "plugins": ["dynamic-import-node"]
-}
-```
-
-### Via CLI
-
-```sh
-$ babel --plugins dynamic-import-node script.js
-```
-
-### Via Node API
-
-```javascript
-require('babel-core').transform('code', {
- plugins: ['dynamic-import-node']
-});
-```
diff --git a/node_modules/babel-plugin-dynamic-import-node/lib/index.js b/node_modules/babel-plugin-dynamic-import-node/lib/index.js
deleted file mode 100644
index 0254cc9d..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/lib/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-Object.defineProperty(exports, "__esModule", {
- value: true
-});
-
-exports['default'] = function (_ref) {
- var template = _ref.template,
- t = _ref.types;
-
- var buildImport = template('\n Promise.resolve().then(() => require(SOURCE))\n ');
-
- return {
- inherits: _babelPluginSyntaxDynamicImport2['default'],
-
- visitor: {
- Import: function () {
- function Import(path) {
- var importArguments = path.parentPath.node.arguments;
- var isString = t.isStringLiteral(importArguments[0]) || t.isTemplateLiteral(importArguments[0]);
- if (isString) {
- t.removeComments(importArguments[0]);
- }
- var newImport = buildImport({
- SOURCE: isString ? importArguments : t.templateLiteral([t.templateElement({ raw: '', cooked: '' }), t.templateElement({ raw: '', cooked: '' }, true)], importArguments)
- });
- path.parentPath.replaceWith(newImport);
- }
-
- return Import;
- }()
- }
- };
-};
-
-var _babelPluginSyntaxDynamicImport = require('babel-plugin-syntax-dynamic-import');
-
-var _babelPluginSyntaxDynamicImport2 = _interopRequireDefault(_babelPluginSyntaxDynamicImport);
-
-function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } \ No newline at end of file
diff --git a/node_modules/babel-plugin-dynamic-import-node/package.json b/node_modules/babel-plugin-dynamic-import-node/package.json
deleted file mode 100644
index b1c22cf1..00000000
--- a/node_modules/babel-plugin-dynamic-import-node/package.json
+++ /dev/null
@@ -1,65 +0,0 @@
-{
- "name": "babel-plugin-dynamic-import-node",
- "version": "1.2.0",
- "description": "Babel plugin to transpile import() to a deferred require(), for node",
- "main": "lib/index.js",
- "directories": {
- "test": "test"
- },
- "scripts": {
- "clean": "rimraf lib",
- "prebuild": "npm run clean",
- "build": "babel src --out-dir lib",
- "pretest": "npm run lint",
- "test": "npm run tests-only",
- "tests-only": "mocha",
- "lint": "eslint .",
- "prepublish": "not-in-publish || (safe-publish-latest && npm run build)",
- "check-changelog": "expr $(git status --porcelain 2>/dev/null| grep \"^\\s*M.*CHANGELOG.md\" | wc -l) >/dev/null || (echo 'Please edit CHANGELOG.md' && exit 1)",
- "check-only-changelog-changed": "(expr $(git status --porcelain 2>/dev/null| grep -v \"CHANGELOG.md\" | wc -l) >/dev/null && echo 'Only CHANGELOG.md may have uncommitted changes' && exit 1) || exit 0",
- "version:major": "npm --no-git-tag-version version major",
- "version:minor": "npm --no-git-tag-version version minor",
- "version:patch": "npm --no-git-tag-version version patch",
- "postversion": "git commit package.json CHANGELOG.md -m \"v$npm_package_version\" && npm run tag && git push && git push --tags",
- "preversion": "npm run test && npm run check-changelog && npm run check-only-changelog-changed",
- "tag": "git tag v$npm_package_version"
- },
- "repository": {
- "type": "git",
- "url": "git+https://github.com/airbnb/babel-plugin-dynamic-import-node.git"
- },
- "keywords": [
- "babel",
- "plugin",
- "dynamic",
- "import",
- "node"
- ],
- "author": "Jordan Gensler <jordan.gensler@airbnb.com>",
- "license": "MIT",
- "bugs": {
- "url": "https://github.com/airbnb/babel-plugin-dynamic-import-node/issues"
- },
- "homepage": "https://github.com/airbnb/babel-plugin-dynamic-import-node#readme",
- "devDependencies": {
- "airbnb-js-shims": "^1.3.0",
- "babel-cli": "^6.26.0",
- "babel-core": "^6.26.0",
- "babel-eslint": "^7.2.3",
- "babel-plugin-transform-es2015-template-literals": "^6.22.0",
- "babel-preset-airbnb": "^2.4.0",
- "babel-preset-es2015": "^6.24.1",
- "babel-register": "^6.26.0",
- "chai": "^4.1.2",
- "eslint": "^4.11.0",
- "eslint-config-airbnb-base": "^12.1.0",
- "eslint-plugin-import": "^2.8.0",
- "in-publish": "^2.0.0",
- "mocha": "^3.5.3",
- "rimraf": "^2.6.2",
- "safe-publish-latest": "^1.1.1"
- },
- "dependencies": {
- "babel-plugin-syntax-dynamic-import": "^6.18.0"
- }
-}